Skip to content

Commit

Permalink
[FIX] purchase_stock_ux: _bom_find error during migration
Browse files Browse the repository at this point in the history
closes #158

X-original-commit: c7fb27d
Signed-off-by: Virginia Bonservizi <vib@adhoc.com.ar>
  • Loading branch information
augusto-weiss committed Dec 27, 2022
1 parent 15ab997 commit 732dcc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion purchase_stock_ux/models/purchase_order_line.py
Expand Up @@ -81,7 +81,7 @@ def button_cancel_remaining(self):
'You should correct invoice or ask for a refund'))
if bom_enable:
bom = self.env['mrp.bom']._bom_find(
product=rec.product_id)
products=rec.product_id)[rec.product_id]
if bom and bom.type == 'phantom':
raise UserError(_(
"Cancel remaining can't be called for Kit Products "
Expand Down

0 comments on commit 732dcc7

Please sign in to comment.