9
<record id="purchase.process_process_purchaseprocess0" model="process.process">
10
<field eval="1" name="active"/>
11
<field name="model_id" ref="purchase.model_purchase_order"/>
12
<field eval=""""Purchase Order"""" name="name"/>
19
<record id="purchase.process_node_packinginvoice0" model="process.node">
20
<field name="model_id" ref="stock.model_stock_picking"/>
21
<field eval=""""state"""" name="kind"/>
22
<field eval=""""Outgoing Products"""" name="name"/>
23
<field eval=""""Outgoing products to invoice"""" name="note"/>
24
<field name="process_id" ref="account.process_process_invoiceprocess0"/>
25
<field eval=""""object.state in ('assigned', 'confirmed')"""" name="model_states"/>
26
<field eval="0" name="flow_start"/>
29
<record id="purchase.process_node_purchaseorder0" model="process.node">
30
<field name="menu_id" ref="purchase.menu_purchase_form_action"/>
31
<field name="model_id" ref="purchase.model_purchase_order"/>
32
<field eval=""""subflow"""" name="kind"/>
33
<field eval=""""Purchase Order"""" name="name"/>
34
<field eval=""""Confirmed purchase order to invoice"""" name="note"/>
35
<field name="process_id" ref="process_process_supplierinvoiceprocess0"/>
36
<field name="subflow_id" ref="purchase.process_process_purchaseprocess0"/>
37
<field eval=""""object.state=='draft'"""" name="model_states"/>
38
<field eval="1" name="flow_start"/>
41
<record id="purchase.process_node_draftpurchaseorder0" model="process.node">
42
<field name="menu_id" ref="purchase.menu_purchase_form_action"/>
43
<field name="model_id" ref="purchase.model_purchase_order"/>
44
<field eval=""""state"""" name="kind"/>
45
<field eval=""""PO - draft"""" name="name"/>
46
<field eval=""""Draft state of purchase order."""" name="note"/>
47
<field name="process_id" ref="purchase.process_process_purchaseprocess0"/>
48
<field eval=""""object.state in ('draft', 'wait', 'confirmed', 'approved', 'except_picking', 'except_invoice', 'done')"""" name="model_states"/>
49
<field eval="0" name="flow_start"/>
52
<record id="purchase.process_node_draftpurchaseorder1" model="process.node">
53
<field name="menu_id" ref="purchase.menu_purchase_form_action"/>
54
<field name="model_id" ref="purchase.model_purchase_order"/>
55
<field eval=""""state"""" name="kind"/>
56
<field eval=""""PO - closed"""" name="name"/>
57
<field eval=""""Closed state of purchase order."""" name="note"/>
58
<field name="process_id" ref="purchase.process_process_purchaseprocess0"/>
59
<field eval=""""object.state == 'done'"""" name="model_states"/>
60
<field eval="0" name="flow_start"/>
63
<record id="purchase.process_node_confirmpurchaseorder0" model="process.node">
64
<field name="menu_id" ref="purchase.menu_purchase_form_action"/>
65
<field name="model_id" ref="purchase.model_purchase_order"/>
66
<field eval=""""state"""" name="kind"/>
67
<field eval=""""PO - validated"""" name="name"/>
68
<field eval=""""Validated state of purchase order."""" name="note"/>
69
<field name="process_id" ref="purchase.process_process_purchaseprocess0"/>
70
<field eval=""""object.state in ('confirmed', 'approved', 'except_picking', 'except_invoice', 'done')"""" name="model_states"/>
71
<field eval="0" name="flow_start"/>
74
<record id="purchase.process_node_approvepurchaseorder0" model="process.node">
75
<field name="menu_id" ref="purchase.menu_purchase_form_action"/>
76
<field name="model_id" ref="purchase.model_purchase_order"/>
77
<field eval=""""state"""" name="kind"/>
78
<field eval=""""PO - confirmed"""" name="name"/>
79
<field eval=""""Confirmed state of purchase order."""" name="note"/>
80
<field name="process_id" ref="purchase.process_process_purchaseprocess0"/>
81
<field eval=""""object.state in ('approved', 'except_picking', 'except_invoice', 'done')"""" name="model_states"/>
82
<field eval="0" name="flow_start"/>
85
<record id="purchase.process_node_invoicecontrol0" model="process.node">
86
<field name="menu_id" ref="account.menu_action_invoice_tree2"/>
87
<field name="model_id" ref="account.model_account_invoice"/>
88
<field eval=""""subflow"""" name="kind"/>
89
<field eval=""""Draft Invoice"""" name="name"/>
90
<field eval=""""To be reviewed by the accountant."""" name="note"/>
91
<field name="process_id" ref="purchase.process_process_purchaseprocess0"/>
92
<field name="subflow_id" ref="process_process_supplierinvoiceprocess0"/>
93
<field eval=""""object.state=='draft'"""" name="model_states"/>
94
<field eval="0" name="flow_start"/>
98
<record id="purchase.process_node_packinglist0" model="process.node">
99
<field name="menu_id" ref="stock.menu_action_picking_tree4"/>
100
<field name="model_id" ref="stock.model_stock_picking"/>
101
<field eval=""""subflow"""" name="kind"/>
102
<field eval=""""Incoming Products"""" name="name"/>
103
<field eval=""""Incoming products subflow."""" name="note"/>
104
<field name="process_id" ref="purchase.process_process_purchaseprocess0"/>
105
<field name="subflow_id" ref="stock.process_process_incoming0"/>
106
<field eval=""""object.state in ('approved', 'except_picking', 'except_invoice', 'done')"""" name="model_states"/>
107
<field eval="0" name="flow_start"/>
110
<record id="purchase.process_node_productrecept0" model="process.node">
111
<field name="model_id" ref="stock.model_stock_picking"/>
112
<field eval=""""subflow"""" name="kind"/>
113
<field eval=""""Incoming Products"""" name="name"/>
114
<field eval=""""Incoming products to control"""" name="note"/>
115
<field name="subflow_id" ref="purchase.process_process_purchaseprocess0"/>
116
<field name="process_id" ref="process_process_supplierinvoiceprocess0"/>
117
<field eval=""""object.state in ('draft', 'open', 'pending', 'close')"""" name="model_states"/>
118
<field eval="0" name="flow_start"/>
121
<delete model="process.node" id="purchase.process_node_invoiceafterpacking0"/>
127
<record id="purchase.process_condition_conditionorigin" model="process.condition">
128
<field name="model_id" ref="purchase.model_purchase_order"/>
129
<field name="node_id" ref="purchase.process_node_draftpurchaseorder1"/>
130
<field eval=""""object.origin==''"""" name="model_states"/>
131
<field eval=""""condition_origin"""" name="name"/>
135
<record id="purchase.process_condition_conditioninvoicemanual" model="process.condition">
136
<field name="model_id" ref="purchase.model_purchase_order"/>
137
<field name="node_id" ref="purchase.process_node_invoicecontrol0"/>
138
<field eval=""""object.invoice_method=='manual'"""" name="model_states"/>
139
<field eval=""""condition_invoice_manual"""" name="name"/>
143
<record id="purchase.process_condition_po_draft_not_rfq" model="process.condition">
144
<field name="model_id" ref="purchase.model_purchase_order"/>
145
<field name="node_id" ref="purchase.process_node_draftpurchaseorder0"/>
146
<field eval=""""not object.rfq_ok"""" name="model_states"/>
147
<field eval=""""condition_po_draft"""" name="name"/>
150
<record id="purchase.process_condition_po_validated_not_rfq" model="process.condition">
151
<field name="model_id" ref="purchase.model_purchase_order"/>
152
<field name="node_id" ref="purchase.process_node_confirmpurchaseorder0"/>
153
<field eval=""""not object.rfq_ok"""" name="model_states"/>
154
<field eval=""""condition_po_validated"""" name="name"/>
157
<record id="purchase.process_condition_po_confirmed_not_rfq" model="process.condition">
158
<field name="model_id" ref="purchase.model_purchase_order"/>
159
<field name="node_id" ref="purchase.process_node_approvepurchaseorder0"/>
160
<field eval=""""not object.rfq_ok"""" name="model_states"/>
161
<field eval=""""condition_po_confirmed"""" name="name"/>
164
<record id="purchase.process_condition_po_done_not_rfq" model="process.condition">
165
<field name="model_id" ref="purchase.model_purchase_order"/>
166
<field name="node_id" ref="purchase.process_node_draftpurchaseorder1"/>
167
<field eval=""""not object.rfq_ok"""" name="model_states"/>
168
<field eval=""""condition_po_done"""" name="name"/>
175
<record id="purchase.process_transition_confirmingpurchaseorder0" model="process.transition">
176
<field eval="[(6,0,[])]" name="transition_ids"/>
177
<field eval=""""Confirmation"""" name="name"/>
178
<field eval=""""The buyer has to approve the RFQ before being sent to the supplier. The RFQ becomes a confirmed Purchase Order."""" name="note"/>
179
<field model="process.node" name="target_node_id" ref="purchase.process_node_confirmpurchaseorder0"/>
180
<field model="process.node" name="source_node_id" ref="purchase.process_node_draftpurchaseorder0"/>
181
<field eval="[(6,0,[ref('purchase.trans_draft_confirmed')])]" name="transition_ids"/>
184
<record id="purchase.process_transition_confirmingpurchaseorder1" model="process.transition">
185
<field eval="[(6,0,[])]" name="transition_ids"/>
186
<field eval=""""Confirmation"""" name="name"/>
187
<field eval=""""In case there is no supplier for this product, the buyer can fill the form manually and confirm it. The RFQ becomes a confirmed Purchase Order."""" name="note"/>
188
<field model="process.node" name="source_node_id" ref="purchase.process_node_approvepurchaseorder0"/>
189
<field model="process.node" name="target_node_id" ref="purchase.process_node_draftpurchaseorder1"/>
192
<record id="purchase.process_transition_approvingpurchaseorder0" model="process.transition">
193
<field eval="[(6,0,[])]" name="transition_ids"/>
194
<field eval=""""Approbation"""" name="name"/>
195
<field eval=""""The supplier approves the Purchase Order."""" name="note"/>
196
<field model="process.node" name="target_node_id" ref="purchase.process_node_approvepurchaseorder0"/>
197
<field model="process.node" name="source_node_id" ref="purchase.process_node_confirmpurchaseorder0" />
200
<record id="purchase.process_transition_invoicefrompurchase0" model="process.transition">
201
<field eval="[(6,0,[])]" name="transition_ids"/>
202
<field eval=""""Invoice"""" name="name"/>
203
<field eval=""""The invoice is created automatically if the Invoice control of the purchase order is 'On order'. The invoice can also be generated manually by the accountant (Invoice control = Manual)."""" name="note"/>
204
<field model="process.node" name="target_node_id" ref="purchase.process_node_invoicecontrol0"/>
205
<field model="process.node" name="source_node_id" ref="purchase.process_node_approvepurchaseorder0"/>
206
<field eval="[(6,0,[ref('purchase.trans_router_invoice')])]" name="transition_ids"/>
209
<record id="purchase.process_transition_createpackinglist0" model="process.transition">
210
<field eval="[(6,0,[])]" name="transition_ids"/>
211
<field eval=""""Pick list generated"""" name="name"/>
212
<field eval=""""A pick list is generated to track the incoming products."""" name="note"/>
213
<field model="process.node" name="target_node_id" ref="purchase.process_node_packinglist0"/>
214
<field model="process.node" name="source_node_id" ref="purchase.process_node_approvepurchaseorder0"/>
217
<record id="purchase.process_transition_invoicefrompackinglist0" model="process.transition">
218
<field eval="[(6,0,[])]" name="transition_ids"/>
219
<field eval=""""Invoice"""" name="name"/>
220
<field eval=""""The invoice is created automatically if the Invoice control of the purchase order is 'On picking'. The invoice can also be generated manually by the accountant (Invoice control = Manual)."""" name="note"/>
221
<field model="process.node" name="target_node_id" ref="purchase.process_node_invoicecontrol0"/>
222
<field model="process.node" name="source_node_id" ref="purchase.process_node_packinglist0"/>
225
<record id="purchase.process_transition_purchaseinvoice0" model="process.transition">
226
<field eval="[(6,0,[])]" name="transition_ids"/>
227
<field eval=""""From a purchase order"""" name="name"/>
228
<field eval=""""A purchase order generates a supplier invoice, as soon as it is confirmed by the buyer. Depending on the Invoicing control of the purchase order, the invoice is based on received or on ordered quantities."""" name="note"/>
229
<field model="process.node" name="target_node_id" ref="process_node_supplierdraftinvoices0"/>
230
<field model="process.node" name="source_node_id" ref="purchase.process_node_purchaseorder0"/>
233
<record id="purchase.process_transition_productrecept0" model="process.transition">
234
<field eval="[(6,0,[])]" name="transition_ids"/>
235
<field eval=""""From a Pick list"""" name="name"/>
236
<field eval=""""A Pick list generates a supplier invoice. Depending on the Invoicing control of the purchase order, the invoice is based on received or on ordered quantities."""" name="note"/>
237
<field model="process.node" name="target_node_id" ref="process_node_supplierdraftinvoices0"/>
238
<field model="process.node" name="source_node_id" ref="purchase.process_node_productrecept0"/>
241
<record id="purchase.process_transition_packinginvoice0" model="process.transition">
242
<field eval="[(6,0,[])]" name="transition_ids"/>
243
<field eval=""""From a Pick list"""" name="name"/>
244
<field eval=""""A Pick list generates an invoice. Depending on the Invoicing control of the sale order, the invoice is based on delivered or on ordered quantities."""" name="note"/>
245
<field model="process.node" name="target_node_id" ref="process_node_supplierdraftinvoices0"/>
246
<field model="process.node" name="source_node_id" ref="purchase.process_node_packinginvoice0"/>
249
<record id="purchase.process_transition_openincoming0" model="process.transition">
250
<field eval="[(6,0,[])]" name="transition_ids"/>
251
<field eval=""""From a Pick list"""" name="name"/>
252
<field eval=""""A Pick list generates an invoice. Depending on the Invoicing control of the sale order, the invoice is based on delivered or on ordered quantities."""" name="note"/>
253
<field model="process.node" name="target_node_id" ref="purchase.process_node_productrecept0"/>
254
<field model="process.node" name="source_node_id" ref="purchase.process_node_purchaseorder0"/>
257
<record id="purchase.process_transition_purchasecommitment0" model="process.transition">
258
<field eval="[(6,0,[])]" name="transition_ids"/>
259
<field eval=""""From a purchase order"""" name="name"/>
260
<field eval=""""A purchase order generates a commitment voucher, as soon as it is confirmed by the buyer."""" name="note"/>
261
<field model="process.node" name="target_node_id" ref="process_node_supplierdraftcommitment0"/>
262
<field model="process.node" name="source_node_id" ref="purchase.process_node_purchaseorder0"/>
269
<record id="purchase.process_transition_action_confirmpurchaseorder0" model="process.transition.action">
270
<field eval=""""wkf_confirm_order"""" name="action"/>
271
<field eval=""""object"""" name="state"/>
272
<field eval=""""Confirm"""" name="name"/>
273
<field name="transition_id" ref="purchase.process_transition_confirmingpurchaseorder0"/>
276
<record id="purchase.process_transition_action_cancelpurchaseorder0" model="process.transition.action">
277
<field eval=""""write({'state':'cancel'})"""" name="action"/>
278
<field eval=""""object"""" name="state"/>
279
<field eval=""""Cancel"""" name="name"/>
280
<field name="transition_id" ref="purchase.process_transition_confirmingpurchaseorder0"/>
283
<record id="purchase.process_transition_action_approvingpurchaseorder0" model="process.transition.action">
284
<field eval=""""wkf_approve_order"""" name="action"/>
285
<field eval=""""object"""" name="state"/>
286
<field eval=""""Approve"""" name="name"/>
287
<field name="transition_id" ref="purchase.process_transition_approvingpurchaseorder0"/>
290
<record id="purchase.process_transition_action_approvingcancelpurchaseorder0" model="process.transition.action">
291
<field eval=""""write({'state':'cancel'})"""" name="action"/>
292
<field eval=""""object"""" name="state"/>
293
<field eval=""""Cancel"""" name="name"/>
294
<field name="transition_id" ref="purchase.process_transition_approvingpurchaseorder0"/>
297
<record id="purchase.process_transition_action_invoicefrompurchaseorder0" model="process.transition.action">
298
<field eval=""""action_invoice_create"""" name="action"/>
299
<field eval=""""object"""" name="state"/>
300
<field eval=""""Create invoice"""" name="name"/>
301
<field name="transition_id" ref="purchase.process_transition_invoicefrompurchase0"/>