[WIP] Add stock location routes
bzr revid: jco@openerp.com-20130715095344-rx3qw65u75m6hyyu
This commit is contained in:
@@ -0,0 +1,118 @@
|
||||
<?xml version="1.0"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<!--Pack location
|
||||
-->
|
||||
|
||||
-
|
||||
<record id="location_pack_zone" model="stock.location">
|
||||
<field name="name">Pack zone</field>
|
||||
<field name="location_id" ref="stock.stock_location_company"/>
|
||||
<field name="usage">internal</field>
|
||||
</record>
|
||||
|
||||
<!--
|
||||
Procurement rules
|
||||
-->
|
||||
|
||||
<record id="route_warehouse0_mts" model='stock.location.route'>
|
||||
<field name="name">Stock → Customer</field>
|
||||
<field name="sequence">20</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="procurement_rule_customer0_mts" model="procurement.rule">
|
||||
<field name="name">Stock → output</field>
|
||||
<field name="action">move</field>
|
||||
<field name="location_id" ref="stock.stock_location_output"/>
|
||||
<field name="location_src_id" ref="stock.stock_location_stock"/>
|
||||
<field name="procure_method">make_to_stock</field>
|
||||
<field name="route_id" ref="route_warehouse0_mts"/>
|
||||
</record>
|
||||
|
||||
<record id="procurement_rule_customer1_mts" model="procurement.rule">
|
||||
<field name="name">Output → Customer</field>
|
||||
<field name="action">move</field>
|
||||
<field name="location_id" ref="stock.stock_location_customers"/>
|
||||
<field name="location_src_id" ref="stock.stock_location_output"/>
|
||||
<field name="procure_method">make_to_order</field>
|
||||
<field name="route_id" ref="route_warehouse0_mts"/>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="route_warehouse0_mto" model='stock.location.route'>
|
||||
<field name="name">MTO</field>
|
||||
<field name="sequence">10</field>
|
||||
</record>
|
||||
|
||||
<record id="procurement_rule_customer0_mto" model="procurement.rule">
|
||||
<field name="name">Stock → output</field>
|
||||
<field name="action">move</field>
|
||||
<field name="location_id" ref="stock.stock_location_output"/>
|
||||
<field name="location_src_id" ref="stock.stock_location_stock"/>
|
||||
<field name="procure_method">make_to_order</field>
|
||||
<field name="route_id" ref="route_warehouse0_mto"/>
|
||||
</record>
|
||||
|
||||
<record id="route_warehouse0_crossdock" model='stock.location.route'>
|
||||
<field name="name">Crossdock</field>
|
||||
<field name="sequence">9</field>
|
||||
</record>
|
||||
|
||||
<record id="procurement_rule_customer0_xdock" model="procurement.rule">
|
||||
<field name="name"> Output > Customer</field>
|
||||
<field name="action">move</field>
|
||||
<field name="location_id" ref="stock.stock_location_customers"/>
|
||||
<field name="location_src_id" ref="stock.stock_location_output"/>
|
||||
<field name="procure_method">make_to_order</field>
|
||||
<field name="route_id" ref="route_warehouse0_crossdock"/>
|
||||
</record>
|
||||
|
||||
<!--TODO: pack zone must be in data of stock_location, not demo -->
|
||||
|
||||
<record id="route_warehouse0_pack" model='stock.location.route'>
|
||||
<field name="name">Stock → Pack → Customer</field>
|
||||
<field name="sequence">15</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="procurement_rule_customer0_pack" model="procurement.rule">
|
||||
<field name="name">Stock → Pack</field>
|
||||
<field name="action">move</field>
|
||||
<field name="location_id" ref="location_pack_zone"/>
|
||||
<field name="location_src_id" ref="stock.stock_location_stock"/>
|
||||
<field name="procure_method">make_to_stock</field>
|
||||
<field name="route_id" ref="route_warehouse0_pack"/>
|
||||
</record>
|
||||
|
||||
<record id="procurement_rule_customer1_pack" model="procurement.rule">
|
||||
<field name="name">Output → Customer</field>
|
||||
<field name="action">move</field>
|
||||
<field name="location_id" ref="stock.stock_location_customers"/>
|
||||
<field name="location_src_id" ref="stock.stock_location_output"/>
|
||||
<field name="procure_method">make_to_order</field>
|
||||
<field name="route_id" ref="route_warehouse0_pack"/>
|
||||
</record>
|
||||
|
||||
<record id="procurement_rule_customer2_pack" model="procurement.rule">
|
||||
<field name="name">Pack → Output</field>
|
||||
<field name="action">move</field>
|
||||
<field name="location_id" ref="stock.stock_location_output"/>
|
||||
<field name="location_src_id" ref="location_pack_zone"/>
|
||||
<field name="procure_method">make_to_order</field>
|
||||
<field name="route_id" ref="route_warehouse0_pack"/>
|
||||
</record>
|
||||
|
||||
|
||||
|
||||
|
||||
<record id="procurement_rule_customer0_mto_pack" model="procurement.rule">
|
||||
<field name="name">Stock → pack</field>
|
||||
<field name="action">move</field>
|
||||
<field name="location_id" ref="location_pack_zone"/>
|
||||
<field name="location_src_id" ref="stock.stock_location_stock"/>
|
||||
<field name="procure_method">make_to_order</field>
|
||||
<field name="route_id" ref="route_warehouse0_mto"/>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user