Skip to content

Commit

Permalink
Merge PR #1390 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by ivantodorovich
  • Loading branch information
OCA-git-bot committed Nov 12, 2024
2 parents 2a303f8 + ad3902f commit 43735b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mrp_bom_attribute_match/models/mrp_bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ def _onchange_component_template_id(self):
if self.product_backup_id:
self.product_id = self.product_backup_id
self.product_backup_id = False
if self.product_uom_id.category_id != self.product_id.uom_id.category_id:
if (
self.product_id.uom_id
and self.product_uom_id.category_id
!= self.product_id.uom_id.category_id
):
self.product_uom_id = self.product_id.uom_id

@api.depends("component_template_id")
Expand Down

0 comments on commit 43735b8

Please sign in to comment.