Skip to content

Commit

Permalink
[IMP] stock_inventory_import_wizard: Improve log infos for grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
unaiberis authored and anajuaristi committed Jan 2, 2025
1 parent f5cbf51 commit ac2b4af
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,7 @@ def _check_lot(self, product=False, company=False):
if product.tracking not in ("serial", "lot") and not self.inventory_lot:
return False, log_info
if product.tracking in ("serial", "lot") and not self.inventory_lot:
return False, _("Lot required for product %(product_name)s.") % {
"product_name": product.display_name,
}
return False, _("Lot required")
if self.inventory_lot_id:
return self.inventory_lot_id, log_info
lot_obj = self.env["stock.lot"].with_company(company)
Expand Down

0 comments on commit ac2b4af

Please sign in to comment.