[FIX] mrp_bom_attribute_match: modify permission error

This commit is contained in:
Alessio Renda
2024-03-18 16:32:49 +01:00
parent 14fa6717ad
commit c61395f922

View File

@@ -260,7 +260,7 @@ class MrpBom(models.Model):
)
if component_template_product:
# need to set product_id temporary
current_line.product_id = component_template_product
current_line.sudo().product_id = component_template_product
else:
# component_template_id is set, but no attribute value match.
continue