<?xml version="1.0" ?>
<openerp>
	<data>
	
		<!--
			Process
		-->
	
		<record id="process_process_stockableproductprocess0" model="process.process">
			<field eval="&quot;&quot;&quot;Stockable Product Process&quot;&quot;&quot;" name="name"/>
			<field name="model_id" ref="mrp.model_mrp_procurement"/>
			<field eval="1" name="active"/>
		</record>
		
		<!--
			Process Node
		-->
		
		<record id="process_node_mts0" model="process.node">
			<field name="menu_id" ref="mrp.menu_mrp_procurement_action"/>
			<field name="model_id" ref="mrp.model_mrp_procurement"/>
			<field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;The system waits for requested products in stock.&quot;&quot;&quot;" name="note"/>
			<field eval="&quot;&quot;&quot;Make to Stock&quot;&quot;&quot;" name="name"/>
			<field name="process_id" ref="process_process_stockableproductprocess0"/>
			<field eval="&quot;&quot;&quot;object.state in ('draft', 'confirmed', 'cancel', 'exception', 'running', 'done', 'waiting')&quot;&quot;&quot;" name="model_states"/>
			<field eval="0" name="flow_start"/>
		</record>
		
		<record id="process_node_stock0" model="process.node">
			<field name="menu_id" ref="mrp.menu_mrp_procurement_action"/>
			<field name="model_id" ref="mrp.model_mrp_procurement"/>
			<field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;Wait for available products for reservation&quot;&quot;&quot;" name="note"/>
			<field eval="&quot;&quot;&quot;Stockable Stock&quot;&quot;&quot;" name="name"/>
			<field name="process_id" ref="process_process_stockableproductprocess0"/>
			<field eval="&quot;&quot;&quot;object.state in ('draft', 'confirmed', 'cancel', 'exception', 'running', 'done', 'waiting')&quot;&quot;&quot;" name="model_states"/>
			<field eval="0" name="flow_start"/>
		</record>
		
		<record id="process_node_rfq0" model="process.node">
			<field name="menu_id" ref="purchase.menu_purchase_order_draft"/>
			<field name="model_id" ref="purchase.model_purchase_order"/>
			<field eval="&quot;&quot;&quot;subflow&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;A Request for Quotation is created and sent to the supplier.&quot;&quot;&quot;" name="note"/>
			<field eval="&quot;&quot;&quot;RFQ&quot;&quot;&quot;" name="name"/>
			<field name="subflow_id" ref="purchase.process_process_purchaseprocess0"/>
			<field name="process_id" ref="process_process_stockableproductprocess0"/>
			<field eval="&quot;&quot;&quot;object.state=='draft'&quot;&quot;&quot;" name="model_states"/>
			<field eval="0" name="flow_start"/>
		</record>
	
		<record id="process_node_production0" model="process.node">
			<field name="menu_id" ref="mrp.menu_mrp_production_action"/>
			<field name="model_id" ref="mrp.model_mrp_production"/>
			<field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;Production orders are created for the product manufacturing.&quot;&quot;&quot;" name="note"/>
			<field eval="&quot;&quot;&quot;Production Order&quot;&quot;&quot;" name="name"/>
			<field name="process_id" ref="process_process_stockableproductprocess0"/>
			<field eval="&quot;&quot;&quot;object.state=='confirmed'&quot;&quot;&quot;" name="model_states"/>
			<field eval="0" name="flow_start"/>
		</record>
		
		<!--
			Process Transition
		-->
		
		<record id="process_transition_stockrfq0" model="process.transition">
			<field eval="[(6,0,[])]" name="role_ids"/>
			<field eval="[(6,0,[])]" name="transition_ids"/>
			<field eval="&quot;&quot;&quot;Stockable Request&quot;&quot;&quot;" name="name"/>
			<field eval="&quot;&quot;&quot;If Product type is Stockable and procure method is make to stock&quot;&quot;&quot;" name="note"/>
			<field model="process.node" name="target_node_id" ref="process_node_rfq0"/>
			<field model="process.node" name="source_node_id" ref="process_node_stock0"/>
		</record>
	
		<record id="process_transition_stockproduction0" model="process.transition">
			<field eval="[(6,0,[])]" name="role_ids"/>
			<field eval="[(6,0,[])]" name="transition_ids"/>
			<field eval="&quot;&quot;&quot;Stockable Production Order&quot;&quot;&quot;" name="name"/>
			<field eval="&quot;&quot;&quot;If Procure method is Make to order and supply method is produce&quot;&quot;&quot;" name="note"/>
			<field model="process.node" name="target_node_id" ref="process_node_production0"/>
			<field model="process.node" name="source_node_id" ref="process_node_stock0"/>
		</record>
	
	</data>
</openerp>