Skip to content

Commit

Permalink
Merge PR #370 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by rafaelbn
  • Loading branch information
OCA-git-bot committed Feb 24, 2025
2 parents 4613c3a + b8ecf19 commit 5ece2f3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions stock_picking_report_product_sticker/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def _compute_sticker_ids(self):
for picking in self:
if not picking.show_product_stickers:
continue
products = picking.move_line_ids.product_id
stickers = products.get_product_stickers()
if stickers:
picking.sticker_ids = stickers
picking.sticker_ids = picking.move_line_ids.product_id.get_product_stickers(
extra_domain=[
"|",
("available_model_ids.model", "in", [self._name]),
("available_model_ids", "=", False),
]
)

0 comments on commit 5ece2f3

Please sign in to comment.