PageRenderTime 13ms CodeModel.GetById 1ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/addons/account/process/customer_invoice_process.xml

http://hornerp.googlecode.com/
XML | 217 lines | 178 code | 27 blank | 12 comment | 0 complexity | e2e693b182bec3d231254fb21f2ae378 MD5 | raw file
  1<?xml version="1.0" ?>
  2<openerp>
  3    <data>
  4        
  5        <!--    
  6            Process    
  7        -->
  8        
  9        <record id="process_process_invoiceprocess0" model="process.process">
 10            <field eval="1" name="active"/>
 11             <field name="model_id" ref="account.model_account_invoice"/>
 12            <field eval="&quot;&quot;&quot;Customer Invoice Process&quot;&quot;&quot;" name="name"/>
 13        </record>
 14        
 15        <!--    
 16            Process Node
 17        -->
 18        
 19        <record id="process_node_analytic0" model="process.node">
 20            <field name="menu_id" ref="account.account_analytic_def_account"/>
 21            <field name="model_id" ref="account.model_account_analytic_account"/>
 22            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
 23            <field eval="&quot;&quot;&quot;Analytic&quot;&quot;&quot;" name="name"/>
 24            <field eval="&quot;&quot;&quot;Analytic costs to reinvoice purchases, timesheets, ...&quot;&quot;&quot;" name="note"/>
 25            <field name="process_id" ref="process_process_invoiceprocess0"/>
 26            <field eval="&quot;&quot;&quot;object.state in ('draft', 'open', 'pending', 'close')&quot;&quot;&quot;" name="model_states"/>
 27            <field eval="1" name="flow_start"/>
 28        </record>
 29        
 30        <record id="process_node_draftinvoices0" model="process.node">
 31            <field name="menu_id" ref="account.menu_invoice_draft"/>
 32            <field name="model_id" ref="account.model_account_invoice"/>
 33            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
 34            <field eval="&quot;&quot;&quot;Draft Invoices&quot;&quot;&quot;" name="name"/>
 35            <field eval="&quot;&quot;&quot;Proposed invoice to be checked, validated and printed&quot;&quot;&quot;" name="note"/>
 36            <field name="process_id" ref="process_process_invoiceprocess0"/>
 37            <field eval="&quot;&quot;&quot;object.state=='draft'&quot;&quot;&quot;" name="model_states"/>
 38            <field eval="0" name="flow_start"/>
 39        </record>
 40    
 41        <record id="process_node_invoiceinvoice0" model="process.node">
 42            <field name="menu_id" ref="account.menu_finance_invoice"/>
 43            <field name="model_id" ref="account.model_account_invoice"/>
 44            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
 45            <field eval="&quot;&quot;&quot;Create Invoice&quot;&quot;&quot;" name="name"/>
 46            <field eval="&quot;&quot;&quot;Have a number and entries are generated&quot;&quot;&quot;" name="note"/>
 47            <field name="process_id" ref="process_process_invoiceprocess0"/>
 48            <field eval="&quot;&quot;&quot;object.state=='draft'&quot;&quot;&quot;" name="model_states"/>
 49            <field eval="0" name="flow_start"/>
 50        </record>
 51    
 52        <record id="process_node_accountingentries0" model="process.node">
 53            <field name="menu_id" ref="account.menu_action_move_line_form"/>
 54            <field name="model_id" ref="account.model_account_move"/>
 55            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
 56            <field eval="&quot;&quot;&quot;Accounting Entries&quot;&quot;&quot;" name="name"/>
 57            <field eval="&quot;&quot;&quot;Validated accounting entries.&quot;&quot;&quot;" name="note"/>
 58            <field name="process_id" ref="process_process_invoiceprocess0"/>
 59            <field eval="0" name="flow_start"/>
 60        </record>
 61    
 62        <record id="process_node_bankstatement0" model="process.node">
 63            <field name="menu_id" ref="account.menu_bank_statement_tree"/>
 64            <field name="model_id" ref="account.model_account_bank_statement"/>
 65            <field eval="&quot;&quot;&quot;subflow&quot;&quot;&quot;" name="kind"/>
 66            <field eval="&quot;&quot;&quot;Bank Statement&quot;&quot;&quot;" name="name"/>
 67            <field eval="&quot;&quot;&quot;Statement encoding produces payment entries&quot;&quot;&quot;" name="note"/>
 68            <field name="process_id" ref="process_process_invoiceprocess0"/>
 69            <field name="subflow_id" ref="process_process_statementprocess0"/>
 70            <field eval="&quot;&quot;&quot;object.state=='draft'&quot;&quot;&quot;" name="model_states"/>
 71            <field eval="1" name="flow_start"/>
 72  		</record>
 73    
 74        <record id="process_node_paymententries0" model="process.node">
 75            <field name="menu_id" ref="account.menu_action_move_line_form"/>
 76            <field name="model_id" ref="account.model_account_move_line"/>
 77            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
 78            <field eval="&quot;&quot;&quot;Payment Entries&quot;&quot;&quot;" name="name"/>
 79            <field eval="&quot;&quot;&quot;Can be draft or validated&quot;&quot;&quot;" name="note"/>
 80            <field name="process_id" ref="process_process_invoiceprocess0"/>
 81            <field eval="&quot;&quot;&quot;object.state in ('draft', 'valid')&quot;&quot;&quot;" name="model_states"/>
 82            <field eval="0" name="flow_start"/>
 83        </record>
 84    
 85        <record id="process_node_reconciliation0" model="process.node">
 86            <field name="menu_id" ref="account.menu_action_move_line_search"/>
 87            <field name="model_id" ref="account.model_account_move_reconcile"/>
 88            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
 89            <field eval="&quot;&quot;&quot;Reconciliation&quot;&quot;&quot;" name="name"/>
 90            <field eval="&quot;&quot;&quot;Reconciliation of entries from invoice(s) and payment(s)&quot;&quot;&quot;" name="note"/>
 91            <field name="process_id" ref="process_process_invoiceprocess0"/>
 92            <field eval="&quot;&quot;&quot;object.state=='valid'&quot;&quot;&quot;" name="model_states"/>
 93            <field eval="0" name="flow_start"/>
 94        </record>
 95    
 96        <record id="process_node_paidinvoice0" model="process.node">
 97            <field name="menu_id" ref="account.menu_action_invoice_tree1"/>
 98            <field name="model_id" ref="account.model_account_invoice"/>
 99            <field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
100            <field eval="&quot;&quot;&quot;Paid invoice&quot;&quot;&quot;" name="name"/>
101            <field eval="&quot;&quot;&quot;Paid invoice when reconciled.&quot;&quot;&quot;" name="note"/>
102            <field name="process_id" ref="process_process_invoiceprocess0"/>
103            <field eval="&quot;&quot;&quot;object.state=='paid'&quot;&quot;&quot;" name="model_states"/>
104            <field eval="0" name="flow_start"/>
105        </record>
106        
107        <record id="process_node_accountingstatemententries0" model="process.node">
108            <field name="menu_id" ref="account.menu_action_move_line_search"/>
109            <field name="model_id" ref="account.model_account_move_line"/>
110            <field eval="&quot;&quot;&quot;subflow&quot;&quot;&quot;" name="kind"/>
111            <field eval="&quot;&quot;&quot;Accounting Statement&quot;&quot;&quot;" name="name"/>
112            <field eval="&quot;&quot;&quot;Accounting entries at statement's confirmation&quot;&quot;&quot;" name="note"/>
113            <field name="subflow_id" ref="account.process_process_invoiceprocess0"/>
114            <field name="process_id" ref="process_process_statementprocess0"/>
115            <field eval="&quot;&quot;&quot;object.state in ('draft', 'valid')&quot;&quot;&quot;" name="model_states"/>
116            <field eval="0" name="flow_start"/>
117        </record>
118        
119
120        <!--    
121            Process Transition
122        -->
123        
124        <record id="res_roles_invoice0" model="res.roles">
125            <field eval="&quot;&quot;&quot;Invoice&quot;&quot;&quot;" name="name"/>
126        </record>
127        
128        <record id="account.t5" model="workflow.transition">
129            <field name="role_id" ref="res_roles_invoice0"/>
130        </record>
131        
132        <record id="process_transition_confirmstatementfromdraft0" model="process.transition">
133            <field eval="[(6,0,[])]" name="role_ids"/>
134            <field eval="[(6,0,[])]" name="transition_ids"/>
135            <field eval="&quot;&quot;&quot;Confirm statement from draft&quot;&quot;&quot;" name="name"/>
136            <field eval="&quot;&quot;&quot;Confirm statement with/without reconciliation from draft statement&quot;&quot;&quot;" name="note"/>
137            <field model="process.node" name="target_node_id" ref="process_node_accountingstatemententries0"/>
138            <field model="process.node" name="source_node_id" ref="account.process_node_draftstatement0"/>
139        </record>
140    
141        <record id="process_transition_analyticinvoice0" model="process.transition">
142            <field eval="[(6,0,[])]" name="role_ids"/>
143            <field eval="[(6,0,[])]" name="transition_ids"/>
144            <field eval="&quot;&quot;&quot;analytic Invoice&quot;&quot;&quot;" name="name"/>
145            <field eval="&quot;&quot;&quot;From analytic accounts, Create invoice.&quot;&quot;&quot;" name="note"/>
146            <field model="process.node" name="target_node_id" ref="process_node_draftinvoices0"/>
147            <field model="process.node" name="source_node_id" ref="process_node_analytic0"/>
148        </record>
149        
150        <record id="process_transition_customerinvoice0" model="process.transition">
151            <field eval="[(6,0,[])]" name="role_ids"/>
152            <field eval="[(6,0,[])]" name="transition_ids"/>
153            <field eval="&quot;&quot;&quot;Customer Invoice&quot;&quot;&quot;" name="name"/>
154            <field eval="&quot;&quot;&quot;Number of entries are generated&quot;&quot;&quot;" name="note"/>
155            <field model="process.node" name="target_node_id" ref="process_node_invoiceinvoice0"/>
156            <field model="process.node" name="source_node_id" ref="process_node_draftinvoices0"/>
157            <field eval="[(6,0,[ref('account.t5')])]" name="transition_ids"/>
158        </record>
159    
160        <record id="process_transition_validentries0" model="process.transition">
161            <field eval="[(6,0,[])]" name="role_ids"/>
162            <field eval="[(6,0,[])]" name="transition_ids"/>
163            <field eval="&quot;&quot;&quot;Valid Entries&quot;&quot;&quot;" name="name"/>
164            <field eval="&quot;&quot;&quot;Valid entries from invoice&quot;&quot;&quot;" name="note"/>
165            <field model="process.node" name="target_node_id" ref="process_node_accountingentries0"/>
166            <field model="process.node" name="source_node_id" ref="process_node_invoiceinvoice0"/>
167        </record>
168    
169        <record id="process_transition_entriesreconcile0" model="process.transition">
170            <field eval="[(6,0,[])]" name="role_ids"/>
171            <field eval="[(6,0,[])]" name="transition_ids"/>
172            <field eval="&quot;&quot;&quot;Entries Reconcile&quot;&quot;&quot;" name="name"/>
173            <field eval="&quot;&quot;&quot;Reconcile Entries.&quot;&quot;&quot;" name="note"/>
174            <field model="process.node" name="target_node_id" ref="process_node_reconciliation0"/>
175            <field model="process.node" name="source_node_id" ref="process_node_accountingentries0"/>
176        </record>
177    
178        <record id="process_transition_statemententries0" model="process.transition">
179            <field eval="[(6,0,[])]" name="role_ids"/>
180            <field eval="[(6,0,[])]" name="transition_ids"/>
181            <field eval="&quot;&quot;&quot;Statement Entries&quot;&quot;&quot;" name="name"/>
182            <field eval="&quot;&quot;&quot;From statement, create entries&quot;&quot;&quot;" name="note"/>
183            <field model="process.node" name="target_node_id" ref="process_node_paymententries0"/>
184            <field model="process.node" name="source_node_id" ref="process_node_bankstatement0"/>
185        </record>
186    
187        <record id="process_transition_paymentreconcile0" model="process.transition">
188            <field eval="[(6,0,[])]" name="role_ids"/>
189            <field eval="[(6,0,[])]" name="transition_ids"/>
190            <field eval="&quot;&quot;&quot;Payment Reconcile&quot;&quot;&quot;" name="name"/>
191            <field eval="&quot;&quot;&quot;Reconcilate the entries from payment&quot;&quot;&quot;" name="note"/>
192            <field model="process.node" name="target_node_id" ref="process_node_reconciliation0"/>
193            <field model="process.node" name="source_node_id" ref="process_node_paymententries0"/>
194        </record>
195    
196        <record id="process_transition_reconcilepaid0" model="process.transition">
197            <field eval="[(6,0,[])]" name="role_ids"/>
198            <field eval="[(6,0,[])]" name="transition_ids"/>
199            <field eval="&quot;&quot;&quot;Reconcile Paid&quot;&quot;&quot;" name="name"/>
200            <field eval="&quot;&quot;&quot;Paid invoice when reconciled.&quot;&quot;&quot;" name="note"/>
201            <field model="process.node" name="target_node_id" ref="process_node_paidinvoice0"/>
202            <field model="process.node" name="source_node_id" ref="process_node_reconciliation0"/>
203        </record>
204        
205        <!--    
206            Process Action
207        -->
208        
209        <record id="process_transition_action_createentries0" model="process.transition.action">
210            <field eval="&quot;&quot;&quot;action_move_create&quot;&quot;&quot;" name="action"/>
211            <field eval="&quot;&quot;&quot;object&quot;&quot;&quot;" name="state"/>
212            <field eval="&quot;&quot;&quot;Create entry&quot;&quot;&quot;" name="name"/>
213            <field name="transition_id" ref="process_transition_customerinvoice0"/>
214        </record>
215    
216    </data>
217</openerp>