diff options
| author | Josse Colpaert <jco@odoo.com> | 2016-09-28 11:01:38 +0200 |
|---|---|---|
| committer | Josse Colpaert <jco@odoo.com> | 2016-09-28 12:38:13 +0200 |
| commit | bf8ac7c9d34cfc2ab72d2e87e83fb330197efd89 (patch) | |
| tree | 7262c337524091bc2d596fd4fcd53d9d4646531e | |
| parent | 153a6d08148488cd1532b967ca387c793cb01313 (diff) | |
[FIX] mrp: default product when creating lots in produce wizard
| -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 90419a896be..9a22d279766 100644 --- a/addons/mrp/wizard/mrp_product_produce_views.xml +++ b/addons/mrp/wizard/mrp_product_produce_views.xml @@ -27,7 +27,7 @@ <field name="quantity" readonly="1"/> <field name="plus_visible" invisible="1"/> <field name="quantity_done"/> - <field name="lot_id"/> + <field name="lot_id" context="{'default_product_id': product_id}"/> <field name="move_id" invisible="1"/> <button name="do_minus" type="object" icon="fa-minus-square" attrs="{'invisible': [('quantity_done', '<=', 0.99)]}" invisible="context.get('state_done')"/> <button name="do_plus" type="object" icon="fa-plus-square" attrs="{'invisible': [('plus_visible', '=', False)]}" invisible="context.get('state_done')"/> |
