Permalink
Browse files

[IMP] repair: Hide lot_id when product is not tracked

Remove unnecessary field when product is not tracked

TaskId: 1909413
  • Loading branch information...
aprieels committed Feb 11, 2019
1 parent ceb0548 commit decc4e388d8ade59057db0bfbe6fd5da25ccaf79
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/repair/views/repair_views.xml
@@ -58,7 +58,7 @@
<field name="product_qty"/>
<field name="product_uom" groups="uom.group_uom"/>
</div>
<field name="lot_id" domain="[('product_id', '=', product_id)]" context="{'default_product_id': product_id}" groups="stock.group_production_lot" attrs="{'required': [('tracking', '!=', 'none')], 'readonly': [('state', '=', 'done')]}"/>
<field name="lot_id" domain="[('product_id', '=', product_id)]" context="{'default_product_id': product_id}" groups="stock.group_production_lot" attrs="{'required': [('tracking', '!=', 'none')], 'invisible': [('tracking', 'in', ['none', False])], 'readonly': [('state', '=', 'done')]}"/>
<field name="partner_id" widget="res_partner_many2one" attrs="{'required':[('invoice_method','!=','none')]}" context="{'show_vat': True}"/>
<field name="address_id" groups="sale.group_delivery_invoice_address"/>
</group>

0 comments on commit decc4e3

Please sign in to comment.