Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
mboscolo committed Sep 16, 2024
1 parent dcb3083 commit 5b662fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plm_engineering/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def get_previous_normal_bom(bomBrws, exclude_bom_id=False):
('type', '=', 'phantom')], order='engineering_revision DESC', limit=1):
return []
bom_brws_list = bom_type.search([('product_tmpl_id', '=', product_template_id),
('type', '=', new_bom_type)], order='engineering_revision DESC', limit=1)
('type', '=', new_bom_type)])
if bom_brws_list:
for bom_brws in bom_brws_list:
for bom_line in bom_brws.bom_line_ids:
Expand Down

0 comments on commit 5b662fb

Please sign in to comment.