diff options
| author | Pratima Gupta <pgu@odoo.com> | 2020-04-13 09:16:10 +0000 |
|---|---|---|
| committer | Pratima Gupta <pgu@odoo.com> | 2020-04-13 09:16:25 +0000 |
| commit | 55b8207b34a3c41d33b05b5aefbf9365e46905e6 (patch) | |
| tree | 3e388506af50fd01df640151788e15c76ba8a7b4 | |
| parent | d007b6a6d6905b792eee54bdf3be05370fe69b86 (diff) | |
[FIX] mrp: set default company for stock production lot
Before this, unable to quick create production lot from
produce wizard in components, as default company was not
set correctly.
Fixes-2234784
closes odoo/odoo#49455
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
| -rw-r--r-- | addons/mrp/wizard/mrp_product_produce_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mrp/wizard/mrp_product_produce_views.xml b/addons/mrp/wizard/mrp_product_produce_views.xml index 4d9d1598c3d..a83950c123e 100644 --- a/addons/mrp/wizard/mrp_product_produce_views.xml +++ b/addons/mrp/wizard/mrp_product_produce_views.xml @@ -33,7 +33,7 @@ <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', '=', parent.company_id)]" force_save="1"/> <field name="product_tracking" invisible="1"/> - <field name="lot_id" attrs="{'readonly': [('product_tracking', '=', 'none')]}" context="{'default_product_id': product_id, 'active_mo_id': parent.production_id, 'default_company_id': company_id}" groups="stock.group_production_lot"/> + <field name="lot_id" attrs="{'readonly': [('product_tracking', '=', 'none')]}" context="{'default_product_id': product_id, 'active_mo_id': parent.production_id, 'default_company_id': parent.company_id}" groups="stock.group_production_lot"/> <field name="qty_to_consume" readonly="1" force_save="1"/> <field name="qty_reserved" readonly="1" force_save="1" optional="show"/> <field name="qty_done"/> |
