Skip to content
Permalink
Browse files

[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
  • Loading branch information...
Whenrow committed Apr 17, 2019
1 parent 8c402ca commit b25ec83e58172d1d6ac9f029d52b70991e2cd57d
Showing with 9 additions and 0 deletions.
  1. +9 −0 addons/mrp/data/mrp_demo.xml
@@ -722,5 +722,14 @@
<value eval="[ref('mrp.mrp_production_laptop_cust')]"/>
</function>

<!-- set 'create component' as True for the demo manufacturing picking while
leaving the default value to False -->
<function model="stock.picking.type" name="write">
<value model="stock.picking.type" search="[
('id', '=', obj().env.ref('stock.warehouse0').manu_type_id.id)]"/>
<value eval="{
'use_create_components_lots': True}"/>
</function>

</data>
</odoo>

0 comments on commit b25ec83

Please sign in to comment.
You can’t perform that action at this time.