[REF] mrp: produce wizard mobile friendly

This commit is contained in:
Simon Lejeune
2019-09-09 15:17:03 +00:00
parent ef30bd438c
commit 916b49381b
@@ -40,6 +40,46 @@
<field name="product_uom_id" readonly="1" force_save="1" groups="uom.group_uom"/>
<field name="move_id" invisible="1"/>
</tree>
<kanban class="o_kanban_mobile">
<field name="product_id"/>
<field name="lot_id"/>
<field name="qty_to_consume"/>
<field name="qty_reserved"/>
<field name="qty_done"/>
<field name="product_uom_id"/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_global_click">
<div class="o_kanban_record_top">
<div class="o_kanban_record_headings">
<strong class="o_kanban_record_title"><span><field name="product_id"/></span></strong>
</div>
</div>
<div class="o_kanban_record_body">
<span>Lot <field name="lot_id"/></span><br/>
<span>Quantity To Consume <field name="qty_to_consume"/></span><br/>
<span>Quantity Reserved <field name="qty_reserved"/></span><br/>
<span>Quantity Done <field name="qty_done"/></span><br/>
</div>
</div>
</t>
</templates>
</kanban>
<form>
<group>
<group>
<field name="company_id" invisible="1"/>
<field name="product_id"/>
<field name="product_tracking" invisible="1"/>
<field name="lot_id" />
<field name="qty_to_consume" readonly="1" />
<field name="qty_reserved" readonly="1" force_save="1" optional="show"/>
<field name="qty_done"/>
<field name="product_uom_id" readonly="1" force_save="1" groups="uom.group_uom"/>
<field name="move_id" invisible="1"/>
</group>
</group>
</form>
</field>
</group>
<h4 attrs="{'invisible': [('finished_workorder_line_ids', '=', [])]}">By-products</h4>