diff options
| author | William Henrotin <whe@odoo.com> | 2020-04-27 11:56:02 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2020-06-15 16:59:41 +0200 |
| commit | 0e2765f5fd0ca0079f1f024ec3a1448b6d2ea3db (patch) | |
| tree | 90ea03d1aca1bf87a080775e7db07977b645c5cc /addons/mrp/data | |
| parent | 1b6421285c6bc4c61be3242cea30c2813251cbc7 (diff) | |
[REF] mrp: no more produce wizard
Use a view similar as the pickings one.
task-2241471
Diffstat (limited to 'addons/mrp/data')
| -rw-r--r-- | addons/mrp/data/mrp_demo.xml | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/addons/mrp/data/mrp_demo.xml b/addons/mrp/data/mrp_demo.xml index da787db79cd..3ef43e55024 100644 --- a/addons/mrp/data/mrp_demo.xml +++ b/addons/mrp/data/mrp_demo.xml @@ -684,29 +684,18 @@ <value eval="[ref('mrp.mrp_production_laptop_cust')]"/> </function> - <function model="mrp.production" name="action_assign"> + <function model="mrp.production" name="write"> <value eval="[ref('mrp.mrp_production_laptop_cust')]"/> + <value eval="{'qty_producing': 5, 'lot_producing_id': ref('mrp.lot_product_27_0')}"/> </function> - <function model="mrp.product.produce" name="create"> - <value model="mrp.product.produce" eval="dict( - obj().with_context(active_id=ref('mrp.mrp_production_laptop_cust')).default_get(list(obj().fields_get())), - **{ - 'qty_producing': obj().env.ref('mrp.mrp_production_laptop_cust').product_qty, - 'finished_lot_id': ref('mrp.lot_product_27_0'), - } - )"/> - </function> - - <function model="mrp.product.produce.line" name="create"> - <value model="mrp.product.produce.line" eval="[dict(item, - **{ - 'raw_product_produce_id': obj().env['mrp.product.produce'].search([('production_id', '=', obj().env.ref('mrp.mrp_production_laptop_cust').id)]).id - }) for item in obj().env['mrp.product.produce'].search([('production_id', '=', obj().env.ref('mrp.mrp_production_laptop_cust').id)])._update_workorder_lines()['to_create']]"/> + <function model="mrp.production" name="action_assign"> + <value eval="[ref('mrp.mrp_production_laptop_cust')]"/> </function> - <function model="mrp.product.produce" name="do_produce"> - <value model="mrp.product.produce" search="[('production_id', '=', obj().env.ref('mrp.mrp_production_laptop_cust').id)]"/> + <function model="stock.move" name="write"> + <value model="stock.move" eval="obj().env['stock.move'].search([('raw_material_production_id', '=', obj().env.ref('mrp.mrp_production_laptop_cust').id)]).ids"/> + <value eval="{'quantity_done': 5}"/> </function> <function model="mrp.production" name="post_inventory"> |
