diff options
| author | William Henrotin <whe@odoo.com> | 2019-09-27 12:45:53 +0000 |
|---|---|---|
| committer | William Henrotin <whe@odoo.com> | 2019-09-27 13:03:05 +0000 |
| commit | bb017e64d4d08df38207410384ce3f06d168d132 (patch) | |
| tree | 02e0a8be4010f11440af6083bf97afd2fa3ea540 | |
| parent | 6378c8fb257161fa513fb3e16a3632470f97aa8d (diff) | |
[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>
| -rw-r--r-- | addons/mrp/wizard/mrp_product_produce_views.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mrp/wizard/mrp_product_produce_views.xml b/addons/mrp/wizard/mrp_product_produce_views.xml index 89fb9216471..58c63e66520 100644 --- a/addons/mrp/wizard/mrp_product_produce_views.xml +++ b/addons/mrp/wizard/mrp_product_produce_views.xml @@ -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"/> |
