Skip to content

Commit

Permalink
FIX FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
mboscolo committed Sep 16, 2024
1 parent 5b662fb commit f817d23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plm_engineering/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def get_previous_normal_bom(bomBrws, exclude_bom_id=False):
raise UserError(_("Could not convert source bom to %r" % new_bom_type))
product_template_id = obj_product_product_brw.product_tmpl_id.id
if bom_type.search_count([('product_tmpl_id', '=', product_template_id),
('type', '=', 'phantom')], order='engineering_revision DESC', limit=1):
('type', '=', 'phantom')]):
return []
bom_brws_list = bom_type.search([('product_tmpl_id', '=', product_template_id),
('type', '=', new_bom_type)])
('type', '=', new_bom_type)], order='engineering_revision DESC', limit=1)
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 f817d23

Please sign in to comment.