[IMP] mrp: allow create component in demo

This commit ticks the 'Create component lot' checkbox for
the demo manufacturing operation type of first warehouse.
This change will leave the default behaviour for all warehouses
but tests with demo data are now more straightforward and do
not demand too much parametrization

Task : 1970450

closes odoo/odoo#32772

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
William Henrotin
2019-04-19 12:16:54 +00:00
parent 644474cb93
commit 19a5780dd1
+13
View File
@@ -722,5 +722,18 @@
<value eval="[ref('mrp.mrp_production_laptop_cust')]"/>
</function>
<!-- set 'create component' as True for the demo manufacturing picking type
while leaving the default value to False for the others -->
<function model="stock.warehouse" name="write">
<value model="stock.warehouse" eval="obj().env['stock.warehouse'].search([]).ids"/>
<value eval="{'manufacture_to_resupply': True}"/>
</function>
<function model="stock.picking.type" name="write">
<value model="stock.picking.type" eval="obj().env['stock.picking.type'].search([('code', '=', 'mrp_operation')]).ids"/>
<value eval="{'use_create_components_lots': True}"/>
</function>
</data>
</odoo>