Skip to content

Commit

Permalink
Merge PR #1223 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by yajo
  • Loading branch information
OCA-git-bot committed Mar 7, 2024
2 parents cfbdbe6 + 22a450b commit 8ba0959
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mrp_packaging_default/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def _packaging_vals_from_bom_line(self, vals):
except KeyError:
# No BoM line, nothing to do
return
# If bom_line_id is False in vals
if not bom_line:
return
vals.update(
{
"product_packaging_id": bom_line.product_packaging_id.id,
Expand Down

0 comments on commit 8ba0959

Please sign in to comment.