Skip to content

Commit

Permalink
[IMP] stock_barcodes: Discard product packaging with empty product
Browse files Browse the repository at this point in the history
TT49951
  • Loading branch information
carlosdauden committed Jul 5, 2024
1 parent 18ee526 commit 4004446
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stock_barcodes/wizard/stock_barcodes_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ def set_info_from_quants(self, quants):
def process_barcode_packaging_id(self):
domain = self._barcode_domain(self.barcode)
if self.env.user.has_group("product.group_stock_packaging"):
domain.append(("product_id", "!=", False))
packaging = self.env["product.packaging"].search(domain)
if packaging:
if len(packaging) > 1:
Expand Down

0 comments on commit 4004446

Please sign in to comment.