[FIX] mrp_exception: correct type of product to validate

This commit is contained in:
Jorge Che
2022-10-21 14:43:25 +00:00
parent 3bfc3f5ce4
commit d7a05348f4

View File

@@ -6,7 +6,7 @@
<field name="description">Please, ensure thet the finished product is of Storable type.</field> <field name="description">Please, ensure thet the finished product is of Storable type.</field>
<field name="sequence">50</field> <field name="sequence">50</field>
<field name="model">mrp.production</field> <field name="model">mrp.production</field>
<field name="code">failed = self.product_id.detailed_type != 'storable'</field> <field name="code">failed = self.product_id.detailed_type != 'product'</field>
<field name="active" eval="True"/> <field name="active" eval="True"/>
</record> </record>