~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to msf_processes/process/procurement_process.xml

  • Committer: chloups208
  • Date: 2011-09-07 12:58:12 UTC
  • mto: (307.2.1 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 311.
  • Revision ID: chloups208@chloups208-laptop-20110907125812-dsb1jt93ae6bgfe2
[UF-390]pro forma invoice + shipment object refactoring + pack family object refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" ?>
2
 
<openerp>
3
 
    <data>
4
 
 
5
 
                <!-- Process process -->
6
 
        
7
 
        <record id="procurement.process_process_procurementprocess0" model="process.process">
8
 
            <field eval="&quot;&quot;&quot;Procurement&quot;&quot;&quot;" name="name"/>
9
 
            <field name="model_id" ref="procurement.model_procurement_order"/>
10
 
            <field eval="1" name="active"/>
11
 
        </record>
12
 
        
13
 
        <!-- Process Node -->
14
 
        
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="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
19
 
            <field eval="&quot;&quot;&quot;Draft state of procurement order.&quot;&quot;&quot;" name="note"/>
20
 
            <field eval="&quot;&quot;&quot;Proc - draft&quot;&quot;&quot;" name="name"/>
21
 
            <field name="process_id" ref="procurement.process_process_procurementprocess0"/>
22
 
            <field eval="&quot;&quot;&quot;object.state in ('draft', 'confirmed', 'exception', 'running', 'ready', 'done', 'waiting')&quot;&quot;&quot;" name="model_states"/>
23
 
            <field eval="1" name="flow_start"/>
24
 
        </record>
25
 
        
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="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
30
 
            <field eval="&quot;&quot;&quot;Confirmed state of procurement order.&quot;&quot;&quot;" name="note"/>
31
 
            <field eval="&quot;&quot;&quot;Proc - confirmed&quot;&quot;&quot;" name="name"/>
32
 
            <field name="process_id" ref="procurement.process_process_procurementprocess0"/>
33
 
            <field eval="&quot;&quot;&quot;object.state in ('confirmed', 'exception', 'running', 'ready', 'done', 'waiting')&quot;&quot;&quot;" name="model_states"/>
34
 
            <field eval="0" name="flow_start"/>
35
 
        </record>
36
 
        
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="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
41
 
            <field eval="&quot;&quot;&quot;Exception state of procurement order.&quot;&quot;&quot;" name="note"/>
42
 
            <field eval="&quot;&quot;&quot;Proc - exception&quot;&quot;&quot;" name="name"/>
43
 
            <field name="process_id" ref="procurement.process_process_procurementprocess0"/>
44
 
            <field eval="&quot;&quot;&quot;object.state == 'exception'&quot;&quot;&quot;" name="model_states"/>
45
 
            <field eval="0" name="flow_start"/>
46
 
        </record>
47
 
        
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="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
52
 
            <field eval="&quot;&quot;&quot;Converted state of procurement order.&quot;&quot;&quot;" name="note"/>
53
 
            <field eval="&quot;&quot;&quot;Proc - converted&quot;&quot;&quot;" name="name"/>
54
 
            <field name="process_id" ref="procurement.process_process_procurementprocess0"/>
55
 
            <field eval="&quot;&quot;&quot;object.state in ('running', 'ready', 'done', 'waiting')&quot;&quot;&quot;" name="model_states"/>
56
 
            <field eval="0" name="flow_start"/>
57
 
        </record>
58
 
        
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="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
63
 
            <field eval="&quot;&quot;&quot;Closed state of procurement order.&quot;&quot;&quot;" name="note"/>
64
 
            <field eval="&quot;&quot;&quot;Proc - closed&quot;&quot;&quot;" name="name"/>
65
 
            <field name="process_id" ref="procurement.process_process_procurementprocess0"/>
66
 
            <field eval="&quot;&quot;&quot;object.state == 'done'&quot;&quot;&quot;" name="model_states"/>
67
 
            <field eval="0" name="flow_start"/>
68
 
        </record>
69
 
        
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="&quot;&quot;&quot;subflow&quot;&quot;&quot;" name="kind"/>
74
 
            <field eval="&quot;&quot;&quot;Tender&quot;&quot;&quot;" name="name"/>
75
 
            <field eval="&quot;&quot;&quot;Tender subflow.&quot;&quot;&quot;" 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="&quot;&quot;&quot;object.state == 'draft'&quot;&quot;&quot;" name="model_states"/> -->
79
 
            <field eval="0" name="flow_start"/>
80
 
        </record>
81
 
        
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="&quot;&quot;&quot;subflow&quot;&quot;&quot;" name="kind"/>
86
 
            <field eval="&quot;&quot;&quot;Purchase Order&quot;&quot;&quot;" name="name"/>
87
 
            <field eval="&quot;&quot;&quot;Purchase Order subflow.&quot;&quot;&quot;" 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="&quot;&quot;&quot;object.state == 'draft'&quot;&quot;&quot;" name="model_states"/> -->
91
 
            <field eval="0" name="flow_start"/>
92
 
        </record>
93
 
        
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="&quot;&quot;&quot;subflow&quot;&quot;&quot;" name="kind"/>
98
 
            <field eval="&quot;&quot;&quot;Incoming Products&quot;&quot;&quot;" name="name"/>
99
 
            <field eval="&quot;&quot;&quot;Incoming products subflow.&quot;&quot;&quot;" 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="&quot;&quot;&quot;object.state in ('comparison', 'done')&quot;&quot;&quot;" name="model_states"/> -->
103
 
            <field eval="0" name="flow_start"/>
104
 
        </record>
105
 
        
106
 
        <!-- transitions -->
107
 
        
108
 
        <record id="procurement.process_transition_draft_confirmed" model="process.transition">
109
 
            <field eval="[(6,0,[])]" name="transition_ids"/>
110
 
            <field eval="&quot;&quot;&quot;Confirm Procurement Order&quot;&quot;&quot;" name="name"/>
111
 
            <field eval="&quot;&quot;&quot;The procurement order is being confirmed.&quot;&quot;&quot;" 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"/>
115
 
        </record>
116
 
        
117
 
        <record id="procurement.process_transition_confirmed_exception" model="process.transition">
118
 
            <field eval="[(6,0,[])]" name="transition_ids"/>
119
 
            <field eval="&quot;&quot;&quot;The Procurement Order goes in exception&quot;&quot;&quot;" name="name"/>
120
 
            <field eval="&quot;&quot;&quot;The procurement order goes in exception.&quot;&quot;&quot;" 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"/>
124
 
        </record>
125
 
        
126
 
        <record id="procurement.process_transition_exception_confirmed" model="process.transition">
127
 
            <field eval="[(6,0,[])]" name="transition_ids"/>
128
 
            <field eval="&quot;&quot;&quot;The Procurement Order goes in confirmed&quot;&quot;&quot;" name="name"/>
129
 
            <field eval="&quot;&quot;&quot;The procurement order goes in confirmed.&quot;&quot;&quot;" 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"/>
133
 
        </record>
134
 
        
135
 
        <record id="procurement.process_transition_confirmed_running" model="process.transition">
136
 
            <field eval="[(6,0,[])]" name="transition_ids"/>
137
 
            <field eval="&quot;&quot;&quot;The Procurement Order goes in exception&quot;&quot;&quot;" name="name"/>
138
 
            <field eval="&quot;&quot;&quot;The procurement order goes in exception.&quot;&quot;&quot;" 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"/>
142
 
        </record>
143
 
        
144
 
        <record id="procurement.process_transition_running_done" model="process.transition">
145
 
            <field eval="[(6,0,[])]" name="transition_ids"/>
146
 
            <field eval="&quot;&quot;&quot;The Procurement Order goes in closed&quot;&quot;&quot;" name="name"/>
147
 
            <field eval="&quot;&quot;&quot;The procurement order goes in closed.&quot;&quot;&quot;" 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"/>
151
 
        </record>
152
 
        
153
 
        <record id="procurement.process_transition_running_tender" model="process.transition">
154
 
            <field eval="[(6,0,[])]" name="transition_ids"/>
155
 
            <field eval="&quot;&quot;&quot;Tender is created&quot;&quot;&quot;" name="name"/>
156
 
            <field eval="&quot;&quot;&quot;Tender is created&quot;&quot;&quot;" 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"/>
160
 
        </record>
161
 
        
162
 
        <record id="procurement.process_transition_running_po" model="process.transition">
163
 
            <field eval="[(6,0,[])]" name="transition_ids"/>
164
 
            <field eval="&quot;&quot;&quot;Tender is created&quot;&quot;&quot;" name="name"/>
165
 
            <field eval="&quot;&quot;&quot;Tender is created&quot;&quot;&quot;" 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"/>
169
 
        </record>
170
 
        
171
 
        <record id="procurement.process_transition_tender_po" model="process.transition">
172
 
            <field eval="[(6,0,[])]" name="transition_ids"/>
173
 
            <field eval="&quot;&quot;&quot;Purchase Order is created.&quot;&quot;&quot;" name="name"/>
174
 
            <field eval="&quot;&quot;&quot;Purchase Order is created.&quot;&quot;&quot;" 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"/>
178
 
        </record>
179
 
        
180
 
        <record id="procurement.process_transition_po_in" model="process.transition">
181
 
            <field eval="[(6,0,[])]" name="transition_ids"/>
182
 
            <field eval="&quot;&quot;&quot;Incoming Products is created.&quot;&quot;&quot;" name="name"/>
183
 
            <field eval="&quot;&quot;&quot;Incoming Products is created.&quot;&quot;&quot;" 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"/>
187
 
        </record>
188
 
        
189
 
        <!-- Process process Service -->
190
 
        
191
 
                <record id="procurement.process_process_serviceproductprocess0" model="process.process">
192
 
                        <field eval="&quot;&quot;&quot;Service&quot;&quot;&quot;" name="name"/>
193
 
                        <field name="model_id" ref="procurement.model_procurement_order"/>
194
 
                        <field eval="0" name="active"/>
195
 
                </record>
196
 
                
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="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
201
 
                        <field eval="&quot;&quot;&quot;Assignment from Production or Purchase Order.&quot;&quot;&quot;" name="note"/>
202
 
                        <field eval="&quot;&quot;&quot;Make to Order&quot;&quot;&quot;" name="name"/>
203
 
                        <field name="process_id" ref="procurement.process_process_serviceproductprocess0"/>
204
 
                        <field eval="&quot;&quot;&quot;object.state in ('draft', 'confirmed', 'cancel', 'exception', 'running', 'done', 'waiting')&quot;&quot;&quot;" name="model_states"/>
205
 
                        <field eval="0" name="flow_start"/>
206
 
                </record>
207
 
        
208
 
    </data>
209
 
</openerp>