Skip to content

Commit

Permalink
[FIX] mrp: attrs lot_id required in produce wizard
Browse files Browse the repository at this point in the history
Commit b2cf955e made the lot_id always required in the
produce wizard of the manufacturing order (without work orders).

It should only be required when the finished product is tracked by lot.
  • Loading branch information
pgu-odoo authored and jco-odoo committed Feb 14, 2017
1 parent 6d9bf4e commit c1c519a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/mrp/wizard/mrp_product_produce_views.xml
Expand Up @@ -17,7 +17,7 @@
<field name="product_uom_id" readonly="1"/>
</div>
<field name="product_tracking" invisible="1"/>
<field name="lot_id" required="1" attrs="{'invisible': [('product_tracking', '=', 'none')]}" domain="[('product_id','=',product_id)]" context="{'default_product_id': product_id}"/>
<field name="lot_id" attrs="{'invisible': [('product_tracking', '=', 'none')], 'required': [('product_tracking', '!=', 'none')]}" domain="[('product_id','=',product_id)]" context="{'default_product_id': product_id}"/>
</group>
</group>
<group>
Expand Down

0 comments on commit c1c519a

Please sign in to comment.