@@ -107,6 +107,9 @@ class MrpRoutingWorkcenter(models.Model):
|
||||
custom control.
|
||||
"""
|
||||
self.ensure_one()
|
||||
# skip operation line if archived
|
||||
if not self.active:
|
||||
return True
|
||||
if product._name == 'product.template':
|
||||
return False
|
||||
return not product._match_all_variant_values(self.bom_product_template_attribute_value_ids)
|
||||
|
||||
Reference in New Issue
Block a user