5
<!-- Process process -->
7
<record id="procurement.process_process_procurementprocess0" model="process.process">
8
<field eval=""""Procurement"""" name="name"/>
9
<field name="model_id" ref="procurement.model_procurement_order"/>
10
<field eval="1" name="active"/>
15
<record id="procurement.process_node_procureproducts0" model="process.node">
16
<field name="menu_id" ref="procurement.menu_stock_procurement_action"/>
17
<field name="model_id" ref="procurement.model_procurement_order"/>
18
<field eval=""""state"""" name="kind"/>
19
<field eval=""""Draft state of procurement order."""" name="note"/>
20
<field eval=""""Proc - draft"""" name="name"/>
21
<field name="process_id" ref="procurement.process_process_procurementprocess0"/>
22
<field eval=""""object.state in ('draft', 'confirmed', 'exception', 'running', 'ready', 'done', 'waiting')"""" name="model_states"/>
23
<field eval="1" name="flow_start"/>
26
<record id="procurement.process_node_procure_confirmed" model="process.node">
27
<field name="menu_id" ref="procurement.menu_stock_procurement_action"/>
28
<field name="model_id" ref="procurement.model_procurement_order"/>
29
<field eval=""""state"""" name="kind"/>
30
<field eval=""""Confirmed state of procurement order."""" name="note"/>
31
<field eval=""""Proc - confirmed"""" name="name"/>
32
<field name="process_id" ref="procurement.process_process_procurementprocess0"/>
33
<field eval=""""object.state in ('confirmed', 'exception', 'running', 'ready', 'done', 'waiting')"""" name="model_states"/>
34
<field eval="0" name="flow_start"/>
37
<record id="procurement.process_node_procure_exception" model="process.node">
38
<field name="menu_id" ref="procurement.menu_stock_procurement_action"/>
39
<field name="model_id" ref="procurement.model_procurement_order"/>
40
<field eval=""""state"""" name="kind"/>
41
<field eval=""""Exception state of procurement order."""" name="note"/>
42
<field eval=""""Proc - exception"""" name="name"/>
43
<field name="process_id" ref="procurement.process_process_procurementprocess0"/>
44
<field eval=""""object.state == 'exception'"""" name="model_states"/>
45
<field eval="0" name="flow_start"/>
48
<record id="procurement.process_node_procure_running" model="process.node">
49
<field name="menu_id" ref="procurement.menu_stock_procurement_action"/>
50
<field name="model_id" ref="procurement.model_procurement_order"/>
51
<field eval=""""state"""" name="kind"/>
52
<field eval=""""Converted state of procurement order."""" name="note"/>
53
<field eval=""""Proc - converted"""" name="name"/>
54
<field name="process_id" ref="procurement.process_process_procurementprocess0"/>
55
<field eval=""""object.state in ('running', 'ready', 'done', 'waiting')"""" name="model_states"/>
56
<field eval="0" name="flow_start"/>
59
<record id="procurement.process_node_procure_done" model="process.node">
60
<field name="menu_id" ref="procurement.menu_stock_procurement_action"/>
61
<field name="model_id" ref="procurement.model_procurement_order"/>
62
<field eval=""""state"""" name="kind"/>
63
<field eval=""""Closed state of procurement order."""" name="note"/>
64
<field eval=""""Proc - closed"""" name="name"/>
65
<field name="process_id" ref="procurement.process_process_procurementprocess0"/>
66
<field eval=""""object.state == 'done'"""" name="model_states"/>
67
<field eval="0" name="flow_start"/>
70
<record id="procurement.process_node_procure_tender" model="process.node">
71
<field name="menu_id" ref="tender_flow.menu_tender"/>
72
<!-- <field name="model_id" ref="tender_flow.model_tender"/> -->
73
<field eval=""""subflow"""" name="kind"/>
74
<field eval=""""Tender"""" name="name"/>
75
<field eval=""""Tender subflow."""" name="note"/>
76
<field name="subflow_id" ref="tender_flow.process_process_tender"/>
77
<field name="process_id" ref="procurement.process_process_procurementprocess0"/>
78
<!-- <field eval=""""object.state == 'draft'"""" name="model_states"/> -->
79
<field eval="0" name="flow_start"/>
82
<record id="procurement.process_node_procure_po" model="process.node">
83
<field name="menu_id" ref="purchase.menu_purchase_form_action"/>
84
<!-- <field name="model_id" ref="purchase.model_purchase_order"/> -->
85
<field eval=""""subflow"""" name="kind"/>
86
<field eval=""""Purchase Order"""" name="name"/>
87
<field eval=""""Purchase Order subflow."""" name="note"/>
88
<field name="subflow_id" ref="purchase.process_process_purchaseprocess0"/>
89
<field name="process_id" ref="procurement.process_process_procurementprocess0"/>
90
<!-- <field eval=""""object.state == 'draft'"""" name="model_states"/> -->
91
<field eval="0" name="flow_start"/>
94
<record id="procurement.process_node_procure_in" model="process.node">
95
<field name="menu_id" ref="stock.menu_action_picking_tree4"/>
96
<!-- <field name="model_id" ref="purchase.model_stock_picking"/> -->
97
<field eval=""""subflow"""" name="kind"/>
98
<field eval=""""Incoming Products"""" name="name"/>
99
<field eval=""""Incoming products subflow."""" name="note"/>
100
<field name="process_id" ref="procurement.process_process_procurementprocess0"/>
101
<field name="subflow_id" ref="stock.process_process_incoming0"/>
102
<!-- <field eval=""""object.state in ('comparison', 'done')"""" name="model_states"/> -->
103
<field eval="0" name="flow_start"/>
108
<record id="procurement.process_transition_draft_confirmed" model="process.transition">
109
<field eval="[(6,0,[])]" name="transition_ids"/>
110
<field eval=""""Confirm Procurement Order"""" name="name"/>
111
<field eval=""""The procurement order is being confirmed."""" name="note"/>
112
<field model="process.node" name="source_node_id" ref="procurement.process_node_procureproducts0"/>
113
<field model="process.node" name="target_node_id" ref="procurement.process_node_procure_confirmed"/>
114
<field eval="[(6,0,[ref('sale.trans_draft_router')])]" name="transition_ids"/>
117
<record id="procurement.process_transition_confirmed_exception" model="process.transition">
118
<field eval="[(6,0,[])]" name="transition_ids"/>
119
<field eval=""""The Procurement Order goes in exception"""" name="name"/>
120
<field eval=""""The procurement order goes in exception."""" name="note"/>
121
<field model="process.node" name="source_node_id" ref="procurement.process_node_procure_confirmed"/>
122
<field model="process.node" name="target_node_id" ref="procurement.process_node_procure_exception"/>
123
<field eval="[(6,0,[ref('sale.trans_draft_router')])]" name="transition_ids"/>
126
<record id="procurement.process_transition_exception_confirmed" model="process.transition">
127
<field eval="[(6,0,[])]" name="transition_ids"/>
128
<field eval=""""The Procurement Order goes in confirmed"""" name="name"/>
129
<field eval=""""The procurement order goes in confirmed."""" name="note"/>
130
<field model="process.node" name="source_node_id" ref="procurement.process_node_procure_exception"/>
131
<field model="process.node" name="target_node_id" ref="procurement.process_node_procure_confirmed"/>
132
<field eval="[(6,0,[ref('sale.trans_draft_router')])]" name="transition_ids"/>
135
<record id="procurement.process_transition_confirmed_running" model="process.transition">
136
<field eval="[(6,0,[])]" name="transition_ids"/>
137
<field eval=""""The Procurement Order goes in exception"""" name="name"/>
138
<field eval=""""The procurement order goes in exception."""" name="note"/>
139
<field model="process.node" name="source_node_id" ref="procurement.process_node_procure_confirmed"/>
140
<field model="process.node" name="target_node_id" ref="procurement.process_node_procure_running"/>
141
<field eval="[(6,0,[ref('sale.trans_draft_router')])]" name="transition_ids"/>
144
<record id="procurement.process_transition_running_done" model="process.transition">
145
<field eval="[(6,0,[])]" name="transition_ids"/>
146
<field eval=""""The Procurement Order goes in closed"""" name="name"/>
147
<field eval=""""The procurement order goes in closed."""" name="note"/>
148
<field model="process.node" name="source_node_id" ref="procurement.process_node_procure_running"/>
149
<field model="process.node" name="target_node_id" ref="procurement.process_node_procure_done"/>
150
<field eval="[(6,0,[ref('sale.trans_draft_router')])]" name="transition_ids"/>
153
<record id="procurement.process_transition_running_tender" model="process.transition">
154
<field eval="[(6,0,[])]" name="transition_ids"/>
155
<field eval=""""Tender is created"""" name="name"/>
156
<field eval=""""Tender is created"""" name="note"/>
157
<field model="process.node" name="source_node_id" ref="procurement.process_node_procure_running"/>
158
<field model="process.node" name="target_node_id" ref="procurement.process_node_procure_tender"/>
159
<field eval="[(6,0,[ref('sale.trans_draft_router')])]" name="transition_ids"/>
162
<record id="procurement.process_transition_running_po" model="process.transition">
163
<field eval="[(6,0,[])]" name="transition_ids"/>
164
<field eval=""""Tender is created"""" name="name"/>
165
<field eval=""""Tender is created"""" name="note"/>
166
<field model="process.node" name="source_node_id" ref="procurement.process_node_procure_running"/>
167
<field model="process.node" name="target_node_id" ref="procurement.process_node_procure_po"/>
168
<field eval="[(6,0,[ref('sale.trans_draft_router')])]" name="transition_ids"/>
171
<record id="procurement.process_transition_tender_po" model="process.transition">
172
<field eval="[(6,0,[])]" name="transition_ids"/>
173
<field eval=""""Purchase Order is created."""" name="name"/>
174
<field eval=""""Purchase Order is created."""" name="note"/>
175
<field model="process.node" name="source_node_id" ref="procurement.process_node_procure_tender"/>
176
<field model="process.node" name="target_node_id" ref="procurement.process_node_procure_po"/>
177
<field eval="[(6,0,[ref('sale.trans_draft_router')])]" name="transition_ids"/>
180
<record id="procurement.process_transition_po_in" model="process.transition">
181
<field eval="[(6,0,[])]" name="transition_ids"/>
182
<field eval=""""Incoming Products is created."""" name="name"/>
183
<field eval=""""Incoming Products is created."""" name="note"/>
184
<field model="process.node" name="source_node_id" ref="procurement.process_node_procure_po"/>
185
<field model="process.node" name="target_node_id" ref="procurement.process_node_procure_in"/>
186
<field eval="[(6,0,[ref('sale.trans_draft_router')])]" name="transition_ids"/>
189
<!-- Process process Service -->
191
<record id="procurement.process_process_serviceproductprocess0" model="process.process">
192
<field eval=""""Service"""" name="name"/>
193
<field name="model_id" ref="procurement.model_procurement_order"/>
194
<field eval="0" name="active"/>
197
<record id="procurement.process_node_serviceonorder0" model="process.node">
198
<field name="menu_id" ref="procurement.menu_stock_procurement_action"/>
199
<field name="model_id" ref="procurement.model_procurement_order"/>
200
<field eval=""""state"""" name="kind"/>
201
<field eval=""""Assignment from Production or Purchase Order."""" name="note"/>
202
<field eval=""""Make to Order"""" name="name"/>
203
<field name="process_id" ref="procurement.process_process_serviceproductprocess0"/>
204
<field eval=""""object.state in ('draft', 'confirmed', 'cancel', 'exception', 'running', 'done', 'waiting')"""" name="model_states"/>
205
<field eval="0" name="flow_start"/>