[FIX] mrp: add new line by the bottom in produce wizard
Any new line (components or by products) in the produce wizard will be now added from the bottom of the One2many widget. closes odoo/odoo#37514 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
<h4 attrs="{'invisible': [('raw_workorder_line_ids', '=', [])]}">Components</h4>
|
||||
<group>
|
||||
<field name="raw_workorder_line_ids" attrs="{'invisible': [('raw_workorder_line_ids', '=', [])]}" nolabel="1" context="{'w_production': True, 'active_id': production_id, 'default_finished_lot_id': finished_lot_id}">
|
||||
<tree editable="top" delete="0" decoration-danger="(qty_to_consume < qty_done)">
|
||||
<tree editable="bottom" delete="0" decoration-danger="(qty_to_consume < qty_done)">
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="product_id" attrs="{'readonly': [('move_id', '!=', False)]}" required="1" domain="[('id', '!=', parent.product_id), ('type', 'in', ['product', 'consu']), '|', ('company_id', '=', False), ('company_id', '=', company_id)]" force_save="1"/>
|
||||
<field name="product_tracking" invisible="1"/>
|
||||
@@ -45,7 +45,7 @@
|
||||
<h4 attrs="{'invisible': [('finished_workorder_line_ids', '=', [])]}">By-products</h4>
|
||||
<group>
|
||||
<field name="finished_workorder_line_ids" attrs="{'invisible': [('finished_workorder_line_ids', '=', [])]}" nolabel="1" context="{'w_production': True, 'active_id': production_id, 'default_finished_lot_id': finished_lot_id}">
|
||||
<tree editable="top" delete="0" decoration-danger="(qty_to_consume < qty_done)">
|
||||
<tree editable="bottom" delete="0" decoration-danger="(qty_to_consume < qty_done)">
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="product_id" attrs="{'readonly': [('move_id', '!=', False)]}" required="1" domain="[('id', '!=', parent.product_id), ('type', 'in', ['product', 'consu']), '|', ('company_id', '=', False), ('company_id', '=', company_id)]" force_save="1"/>
|
||||
<field name="product_tracking" invisible="1"/>
|
||||
|
||||
Reference in New Issue
Block a user