<?xml version="1.0" ?>
<openerp>
	<data>

		<!--
			Process
		-->

		<record id="process_process_stockableproductprocess0" model="process.process">
			<field eval="&quot;&quot;&quot;Stockable Product&quot;&quot;&quot;" name="name"/>
			<field name="model_id" ref="mrp.model_procurement_order"/>
			<field eval="1" name="active"/>
		</record>

		<!--
			Process Node
		-->

		<record id="process_node_mts0" model="process.node">
			<field name="menu_id" ref="procurement.menu_stock_procurement_action"/>
			<field name="model_id" ref="mrp.model_procurement_order"/>
			<field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;Assignment from 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="procurement.menu_stock_procurement_action"/>
			<field name="model_id" ref="mrp.model_procurement_order"/>
			<field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;Assignment from Production or Purchase Order.&quot;&quot;&quot;" name="note"/>
			<field eval="&quot;&quot;&quot;Make to Order&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_form_action"/>
			<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;Request for Quotation.&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;Manufacturing Plan.&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="transition_ids"/>
			<field eval="&quot;&quot;&quot;To Buy&quot;&quot;&quot;" name="name"/>
			<field eval="&quot;&quot;&quot;In case the Supply method of the product is Buy, the system creates a purchase order.&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="transition_ids"/>
			<field eval="&quot;&quot;&quot;To Produce&quot;&quot;&quot;" name="name"/>
			<field eval="&quot;&quot;&quot;In case the Supply method of the product is Produce, the system creates a production order.&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>
