[MERGE]: Merge with lp:openobject-trunk-dev-addons2
[odoo/odoo.git] / addons / account / account_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <!--
6             Fiscal Year
7         -->
8
9         <record id="view_account_fiscalyear_form" model="ir.ui.view">
10             <field name="name">account.fiscalyear.form</field>
11             <field name="model">account.fiscalyear</field>
12             <field name="type">form</field>
13             <field name="arch" type="xml">
14                 <form string="Fiscalyear">
15                     <group>
16                     <field name="name"/>
17                     <field name="code"/>
18                     <field name="date_start"/>
19                     <field name="date_stop"/>
20                     <field name="company_id" groups="base.group_multi_company"/>
21                     <field name="end_journal_period_id" groups="base.group_extended"/>
22                     </group>
23                     <separator colspan="4" string="Periods"/>
24                     <field colspan="4" name="period_ids" nolabel="1" widget="one2many_list">
25                         <form string="Period">
26                             <field name="name"/>
27                             <field name="code"/>
28                             <field name="date_start"/>
29                             <field name="date_stop"/>
30                             <field name="special"/>
31                         </form>
32                     </field>
33                     <separator colspan="4" string="States"/>
34                     <group>
35                         <field name="state" select="1" readonly="1"/>
36                         <button name="create_period" states="draft" string="Create Monthly Periods" type="object" icon="terp-document-new"/>
37                         <button name="create_period3" states="draft" string="Create 3 Months Periods" type="object" icon="terp-document-new"/>
38                     </group>
39                 </form>
40             </field>
41         </record>
42         <record id="view_account_fiscalyear_tree" model="ir.ui.view">
43             <field name="name">account.fiscalyear.tree</field>
44             <field name="model">account.fiscalyear</field>
45             <field name="type">tree</field>
46             <field name="arch" type="xml">
47                 <tree colors="blue:state in ('draft');gray:state in ('done') " string="Fiscalyear">
48                     <field name="code"/>
49                     <field name="name"/>
50                     <field name="state"/>
51                 </tree>
52             </field>
53         </record>
54         <record id="view_account_fiscalyear_search" model="ir.ui.view">
55             <field name="name">account.fiscalyear.search</field>
56             <field name="model">account.fiscalyear</field>
57             <field name="type">search</field>
58             <field name="arch" type="xml">
59                 <search string="Search Fiscalyear">
60                     <group>
61                         <filter string="Open" domain="[('state','=','draft')]" icon="terp-camera_test"/>
62                         <filter string="Closed" domain="[('state','=','done')]" icon="terp-dialog-close"/>
63                         <separator orientation="vertical"/>
64                         <field name="code"/>
65                         <field name="name"/>
66                         <field name="state"/>
67                     </group>
68                     <newline/>
69                     <group expand="0" string="Group By...">
70                         <filter string="State" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
71                     </group>
72                 </search>
73             </field>
74         </record>
75         <record id="action_account_fiscalyear_form" model="ir.actions.act_window">
76             <field name="name">Fiscal Years</field>
77             <field name="res_model">account.fiscalyear</field>
78             <field name="view_type">form</field>
79             <field name="view_mode">tree,form,search</field>
80             <field name="help">Define your company's fiscal year depending on the period you have chosen to follow. A fiscal year is a 1 year period over which a company budgets its spending. It may run over any period of 12 months. The fiscal year is referred to by the date in which it ends. For example, if a company's fiscal year ends November 30, 2011, then everything between December 1, 2010 and November 30, 2011  would be referred to as FY 2011. Not using the actual calendar year gives many companies an advantage, allowing them to close their books at a time which is most convenient for them.</field>
81         </record>
82         <menuitem id="next_id_23" name="Periods" parent="account.menu_finance_accounting"/>
83         <menuitem action="action_account_fiscalyear_form" id="menu_action_account_fiscalyear_form" parent="next_id_23"/>
84
85         <!--
86             Period
87         -->
88
89         <record id="view_account_period_form" model="ir.ui.view">
90             <field name="name">account.period.form</field>
91             <field name="model">account.period</field>
92             <field name="type">form</field>
93             <field name="arch" type="xml">
94                 <form string="Period">
95                     <field name="name"/>
96                     <field name="code"/>
97                     <field name="date_start"/>
98                     <field name="date_stop"/>
99                     <field name="company_id" widget="selection" groups="base.group_multi_company"/>
100                     <field name="fiscalyear_id" widget="selection"/>
101                     <field name="special"/>
102                     <separator colspan="4" string="States"/>
103                     <field name="state"/>
104                     <button name="action_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert" groups="account.group_account_manager"/>
105                 </form>
106             </field>
107         </record>
108         <record id="view_account_period_tree" model="ir.ui.view">
109             <field name="name">account.period.tree</field>
110             <field name="model">account.period</field>
111             <field name="type">tree</field>
112             <field name="arch" type="xml">
113               <tree colors="blue:state in ('draft');gray:state in ('done') " string="Period">
114                     <field name="name"/>
115                     <field name="code"/>
116                     <field name="date_start"/>
117                     <field name="date_stop"/>
118                     <field name="special"/>
119                     <field name="state"/>
120                     <button name="action_draft" states="done" string="Set to Draft" type="object" icon="terp-document-new" groups="account.group_account_manager"/>
121                     <button name="%(action_account_period_close)d" states="draft" string="Close Period" type="action" icon="terp-camera_test"/>
122                 </tree>
123             </field>
124         </record>
125
126         <record id="view_account_period_search" model="ir.ui.view">
127             <field name="name">account.period.search</field>
128             <field name="model">account.period</field>
129             <field name="type">search</field>
130             <field name="arch" type="xml">
131                 <search string="Search Period">
132                     <group>
133                         <filter string="To Close" name="draft" domain="[('state','=','draft')]" icon="terp-dialog-close"/>
134                         <separator orientation="vertical"/>
135                         <field name="name"/>
136                         <field name="code"/>
137                     </group>
138                 </search>
139             </field>
140         </record>
141
142         <record id="action_account_period_form" model="ir.actions.act_window">
143             <field name="name">Periods</field>
144             <field name="res_model">account.period</field>
145             <field name="view_type">form</field>
146             <field name="view_mode">tree,form,search</field>
147             <field name="context">{'search_default_draft': 1}</field>
148             <field name="help">Here, you can define a period, an interval of time between successive closings of the books of your company. An accounting period typically is a month or a quarter, corresponding to the tax year used by the business. Create and manage them from here and decide whether a period should be left open or closed depending on your company's activities over a specific period.</field>
149         </record>
150         <menuitem action="action_account_period_form" id="menu_action_account_period_form" parent="account.next_id_23"/>
151
152
153         <!--
154             Accounts
155         -->
156         <record id="view_account_form" model="ir.ui.view">
157             <field name="name">account.account.form</field>
158             <field name="model">account.account</field>
159             <field name="type">form</field>
160             <field name="arch" type="xml">
161                 <form string="Account">
162                     <group col="6" colspan="4">
163                     <field name="name" select="1"/>
164                     <field name="code" select="1"/>
165                     <field name="company_id" widget="selection" groups="base.group_multi_company"/>
166                     <newline/>
167                     <field name="parent_id"/>
168                     <field name="type" select="1"/>
169                     <field name="user_type" select="1"/>
170                     </group>
171                     <notebook colspan="4">
172                         <page string="General Information">
173                             <group col="2" colspan="2">
174                                 <separator string="Currency" colspan="2"/>
175                                 <field name="currency_id"/>
176                                 <field name="currency_mode" attrs="{'readonly': [('currency_id','=',False)]}"/>
177                             </group>
178                             <group col="2" colspan="2">
179                                 <separator string="Reconcile" colspan="2"/>
180                                 <field name="reconcile"/>
181                             </group>
182                             <separator string="Default Taxes" colspan="4"/>
183                             <field colspan="4" name="tax_ids" nolabel="1" domain="[('parent_id','=',False)]"/>
184                             <separator string="Consolidated Children" colspan="4"/>
185                             <field name="child_consol_ids" colspan="4" nolabel="1" attrs="{'readonly':[('type','!=','consolidation')]}"/>
186                         </page>
187                         <page string="Notes">
188                             <field colspan="4" name="note" nolabel="1"/>
189                         </page>
190                     </notebook>
191                 </form>
192             </field>
193         </record>
194
195         <record id="view_account_search" model="ir.ui.view">
196             <field name="name">account.account.search</field>
197             <field name="model">account.account</field>
198             <field name="type">search</field>
199             <field name="arch" type="xml">
200                 <search string="Accounts">
201                     <group col="10" colspan="4">
202                         <filter icon="terp-sale" string="Receivable Accounts" domain="[('type','=','receivable')]"/>
203                         <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
204                         <separator orientation="vertical"/>
205                         <field name="code"/>
206                         <field name="name"/>
207                         <field name="user_type"/>
208                         <field name="type"/>
209                     </group>
210                     <newline/>
211                     <group expand="0" string="Group By...">
212                         <filter string="Parent Account" icon="terp-folder-orange" domain="" context="{'group_by':'parent_id'}"/>
213                         <separator orientation="vertical"/>
214                         <filter string="Account Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'user_type'}"/>
215                         <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'type'}"/>
216                     </group>
217                 </search>
218             </field>
219         </record>
220
221         <record id="view_account_list" model="ir.ui.view">
222             <field name="name">account.account.list</field>
223             <field name="model">account.account</field>
224             <field name="type">tree</field>
225             <field name="field_parent">child_id</field>
226             <field name="arch" type="xml">
227                 <tree colors="blue:type in ('view');black:type in ('other','receivable','payable','consolidation');gray:type in ('closed')" string="Chart of accounts" toolbar="1" >
228                     <field name="code"/>
229                     <field name="name"/>
230                     <field name="parent_id" invisible="1"/>
231                     <field name="user_type" invisible="1"/>
232                     <field name="debit"/>
233                     <field name="credit"/>
234                     <field name="balance"/>
235                     <field name="type"/>
236                     <field name="company_id" groups="base.group_multi_company"/>
237                     <field name="company_currency_id"/>
238                 </tree>
239             </field>
240         </record>
241         <record id="view_treasory_graph" model="ir.ui.view">
242            <field name="name">account.treasury.graph</field>
243            <field name="model">account.account</field>
244            <field name="type">graph</field>
245            <field name="arch" type="xml">
246                <graph string="Treasury Analysis" type="bar">
247                   <field name="name"/>
248                   <field name="balance" operator="+"/>
249                </graph>
250          </field>
251       </record>
252         <record id="action_account_form" model="ir.actions.act_window">
253             <field name="name">Accounts</field>
254             <field name="res_model">account.account</field>
255             <field name="view_type">form</field>
256             <field name="view_mode">tree,form,graph</field>
257             <field name="search_view_id" ref="view_account_search"/>
258             <field name="view_id" ref="view_account_list"/>
259             <field name="help">Create and manage accounts you will need to record financial entries in. Accounts are financial records of your company that register all financial transactions. Companies present their annual accounts in two main parts: the balance sheet and the income statement (profit and loss account). The annual accounts of a company are required by law to disclose a certain amount of information. They have to be certified by an external auditor yearly.</field>
260         </record>
261         <menuitem id="account_account_menu" name="Accounts" parent="menu_finance_accounting"/>
262         <menuitem action="action_account_form" id="menu_action_account_form" parent="account_account_menu"/>
263
264         <record id="view_account_tree" model="ir.ui.view">
265             <field name="name">account.account.tree</field>
266             <field name="model">account.account</field>
267             <field name="type">tree</field>
268             <field name="field_parent">child_id</field>
269             <field name="arch" type="xml">
270                 <tree colors="blue:type in ('view');black:type in ('other','receivable','payable','consolidation');gray:type in ('closed')" string="Chart of accounts" toolbar="1" >
271                     <field name="code"/>
272                     <field name="name"/>
273                     <field name="debit"/>
274                     <field name="credit"/>
275                     <field name="balance"/>
276                     <field name="company_currency_id"/>
277                     <field name="company_id" groups="base.group_multi_company"/>
278                     <field name="type"/>
279                 </tree>
280             </field>
281         </record>
282         <record id="action_account_tree" model="ir.actions.act_window">
283             <field name="name">Chart of Accounts</field>
284             <field name="res_model">account.account</field>
285             <field name="view_type">tree</field>
286             <field name="view_id" ref="view_account_tree"/>
287             <field name="domain">[('parent_id','=',False)]</field>
288         </record>
289
290         <!--
291         Journal
292
293         Account Journal Columns
294         -->
295
296         <record id="view_journal_column_form" model="ir.ui.view">
297             <field name="name">account.journal.column.form</field>
298             <field name="model">account.journal.column</field>
299             <field name="type">form</field>
300             <field name="arch" type="xml">
301                 <form string="Journal Column">
302                     <field colspan="4" name="name" select="1"/>
303                     <field name="field" select="1"/>
304                     <field name="sequence"/>
305                 </form>
306             </field>
307         </record>
308         <record id="view_journal_column_tree" model="ir.ui.view">
309             <field name="name">account.journal.column.tree</field>
310             <field name="model">account.journal.column</field>
311             <field name="type">tree</field>
312             <field name="arch" type="xml">
313                 <tree string="Journal Column">
314                     <field name="sequence"/>
315                     <field name="name"/>
316                 </tree>
317             </field>
318         </record>
319
320         <record id="view_account_journal_view_search" model="ir.ui.view">
321             <field name="name">account.journal.view.search</field>
322             <field name="model">account.journal.view</field>
323             <field name="type">search</field>
324             <field name="arch" type="xml">
325                 <search string="Journal View">
326                     <field name="name"/>
327                 </search>
328             </field>
329         </record>
330         <record id="view_account_journal_view_tree" model="ir.ui.view">
331             <field name="name">account.journal.view.tree</field>
332             <field name="model">account.journal.view</field>
333             <field name="type">tree</field>
334             <field name="arch" type="xml">
335                 <tree string="Journal View">
336                     <field name="name"/>
337                 </tree>
338             </field>
339         </record>
340         <record id="view_account_journal_view_form" model="ir.ui.view">
341             <field name="name">account.journal.view.form</field>
342             <field name="model">account.journal.view</field>
343             <field name="type">form</field>
344             <field name="arch" type="xml">
345                 <form string="Journal View">
346                     <field name="name"/>
347                     <field colspan="4" name="columns_id" nolabel="1" widget="one2many_list"/>
348                 </form>
349             </field>
350         </record>
351         <record id="action_account_journal_view" model="ir.actions.act_window">
352             <field name="name">Journal Views</field>
353             <field name="res_model">account.journal.view</field>
354             <field name="view_type">form</field>
355             <field name="view_mode">tree,form</field>
356             <field name="search_view_id" ref="view_account_journal_view_search"/>
357             <field name="help">Here you can personalize and create each view of your financial journals by selecting the fields you want to appear and the sequence they will appear.</field>
358         </record>
359
360         <menuitem action="action_account_journal_view" id="menu_action_account_journal_view" parent="account.menu_low_level"/>
361
362         <!--
363     # Account Journal
364     -->
365
366         <record id="view_account_journal_tree" model="ir.ui.view">
367             <field name="name">account.journal.tree</field>
368             <field name="model">account.journal</field>
369             <field name="type">tree</field>
370             <field name="arch" type="xml">
371                 <tree string="Account Journal">
372                     <field name="code"/>
373                     <field name="name"/>
374                     <field name="type"/>
375                     <field name="user_id"/>
376                     <field name="company_id" groups="base.group_multi_company"/>
377                 </tree>
378             </field>
379         </record>
380         <record id="view_account_journal_search" model="ir.ui.view">
381             <field name="name">account.journal.search</field>
382             <field name="model">account.journal</field>
383             <field name="type">search</field>
384             <field name="arch" type="xml">
385                 <tree string="Search Account Journal">
386                     <group>
387                     <filter domain="['|', ('type', '=', 'sale'), ('type', '=', 'sale_refund')]" string="Sale" icon="terp-camera_test"/>
388                     <filter domain="['|', ('type', '=', 'purchase'), ('type', '=', 'purchase_refund')]" string="Purchase" icon="terp-purchase"/>
389                    <filter domain="['|', ('type', '=', 'cash'), ('type', '=', 'bank')]" string="Liquidity" icon="terp-dolar"/>
390                     <filter domain="['|', ('type', '=', 'general'), ('type', '=', 'situation')]" string="Others" icon="terp-stock"/>
391                     <separator orientation="vertical"/>
392                     <field name="code"/>
393                     <field name="name"/>
394                     <field name="user_id"/>
395                     </group>
396                     <newline/>
397                     <group expand="0" string="Group By...">
398                     <filter string="User" context="{'group_by':'user_id'}" icon="terp-personal"/>
399                     <separator orientation="vertical"/>
400                     <filter string="Type" context="{'group_by':'type'}" icon="terp-stock_symbol-selection"/>
401                     </group>
402                 </tree>
403             </field>
404         </record>
405         <record id="view_account_journal_form" model="ir.ui.view">
406             <field name="name">account.journal.form</field>
407             <field name="model">account.journal</field>
408             <field name="type">form</field>
409             <field name="arch" type="xml">
410                 <form string="Account Journal">
411                     <group colspan="4" col="6">
412                         <field name="name" select="1" colspan="4"/>
413                         <field name="code" select="1"/>
414                         <field name="type" on_change="onchange_type(type, currency)"/>
415                     </group>
416                     <notebook colspan="4">
417                         <page string="General Information">
418                             <group col="2" colspan="2">
419                                 <group colspan="2" col="2">
420                                     <separator string="Accounts" colspan="4"/>
421                                     <field name="default_debit_account_id" attrs="{'required':[('type','=','cash')]}" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
422                                     <field name="default_credit_account_id" attrs="{'required':[('type','=','cash')]}" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
423                                 </group>
424                                 <group colspan="2" col="2">
425                                     <separator string="Journal View" colspan="4"/>
426                                     <field name="view_id" widget="selection"/>
427                                 </group>
428                             </group>
429
430                             <group colspan="2" col="2">
431                                 <separator string="Company" colspan="4"/>
432                                 <field name="company_id" groups="base.group_multi_company"/>
433                                 <field name="user_id" groups="base.group_extended"/>
434                                 <field name="currency"/>
435                             </group>
436                             <group colspan="2" col="2">
437                                 <separator string="Validations" colspan="4"/>
438                                 <field name="allow_date" groups="base.group_extended"/>
439                             </group>
440                             <group colspan="2" col="2">
441                                 <separator string="Other Configuration" colspan="4"/>
442                                 <field name="centralisation" groups="base.group_extended"/>
443                                 <field name="entry_posted"/>
444                             </group>
445                             <group colspan="2" col="2">
446                                 <separator string="Invoicing Data" colspan="4"/>
447 <!--                                <field name="invoice_sequence_id"/>-->
448                                 <field name="group_invoice_lines"/>
449                             </group>
450                             <group colspan="2" col="2" groups="base.group_extended">
451                                 <separator string="Sequence" colspan="4"/>
452                                 <field name="sequence_id" required="0"/>
453                             </group>
454                         </page>
455                         <page string="Entry Controls" groups="base.group_extended">
456                             <separator colspan="4" string="Accounts Type Allowed (empty for no control)"/>
457                             <field colspan="4" name="type_control_ids" nolabel="1"/>
458                             <separator colspan="4" string="Accounts Allowed (empty for no control)"/>
459                             <field colspan="4" name="account_control_ids" nolabel="1"/>
460                         </page>
461                     </notebook>
462                 </form>
463             </field>
464         </record>
465         <record id="action_account_journal_form" model="ir.actions.act_window">
466             <field name="name">Journals</field>
467             <field name="res_model">account.journal</field>
468             <field name="view_type">form</field>
469             <field name="view_mode">tree,form</field>
470             <field name="help">Create and manage your company's financial journals from this menu. A journal is a business diary in which all financial data related to the day to day business transactions of your company is recorded using double-entry book keeping system. Depending on the nature of its activities and number of daily transactions, a company may keep several  types of specialized journals such as a cash journal, purchases journal, and sales journal.</field>
471         </record>
472         <menuitem action="action_account_journal_form" id="menu_action_account_journal_form" parent="account_account_menu"/>
473         <record id="view_account_bank_statement_filter" model="ir.ui.view">
474             <field name="name">account.cash.statement.select</field>
475             <field name="model">account.bank.statement</field>
476             <field name="type">search</field>
477             <field name="arch" type="xml">
478                 <search string="Search Bank Statements">
479                     <group col="8" colspan="4">
480                         <filter string="Draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
481                         <filter string="Confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
482                         <separator orientation="vertical"/>
483                         <field name="date"/>
484                         <field name="name"/>
485                         <field name="journal_id" widget='selection' domain="[('type', '=', 'cash')]" />
486                     </group>
487                     <newline/>
488                     <group expand="0" string="Group By...">
489                         <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
490                         <filter string="State" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
491                         <separator orientation="vertical"/>
492                         <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
493                     </group>
494                 </search>
495             </field>
496         </record>
497         <record id="view_bank_statement_tree" model="ir.ui.view">
498             <field name="name">account.bank.statement.tree</field>
499             <field name="model">account.bank.statement</field>
500             <field name="type">tree</field>
501             <field name="arch" type="xml">
502                 <tree colors="red:balance_end_real!=balance_end and state=='draft';blue:state=='draft' and (balance_end_real==balance_end);black:state=='confirm'" string="Statement">
503                     <field name="name"/>
504                     <field name="date"/>
505                     <field name="period_id"/>
506                     <field name="journal_id"/>
507                     <field name="balance_start"/>
508                     <field name="balance_end_real"/>
509                     <field name="balance_end" invisible="1"/>
510                     <field name="state"/>
511                     <button type="object" string="Cancel" name="button_cancel" states="confirm" icon="gtk-cancel"/>
512                     <button type="object" string="Confirm" name="button_confirm_bank" states="draft" icon="terp-camera_test"/>
513                 </tree>
514             </field>
515         </record>
516         <record id="view_bank_statement_search" model="ir.ui.view">
517             <field name="name">account.bank.statement.search</field>
518             <field name="model">account.bank.statement</field>
519             <field name="type">search</field>
520             <field name="arch" type="xml">
521                 <search string="Search Bank Statements">
522                     <group col="8" colspan="4">
523                         <filter string="Draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
524                         <filter string="Confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
525                         <separator orientation="vertical"/>
526                         <field name="name"/>
527                         <field name="date"/>
528                         <field name="period_id"/>
529                         <field name="journal_id" widget="selection" domain="[('type', '=', 'bank')]" />
530                     </group>
531                     <newline/>
532                     <group expand="0" string="Group By...">
533                         <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
534                         <filter string="State" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
535                         <separator orientation="vertical"/>
536                         <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
537                     </group>
538                 </search>
539             </field>
540         </record>
541         <record id="view_bank_statement_form" model="ir.ui.view">
542             <field name="name">account.bank.statement.form</field>
543             <field name="model">account.bank.statement</field>
544             <field name="type">form</field>
545             <field name="arch" type="xml">
546                 <form string="Bank Statement">
547                     <group col="7" colspan="4">
548                         <field name="name" select="1"/>
549                         <field name="date" select="1" on_change="onchange_date(date)"/>
550                         <field name="journal_id" domain="[('type', '=', 'bank')]" on_change="onchange_journal_id(journal_id)" select="1" widget="selection"/>
551                         <newline/>
552                         <field name="period_id"/>
553                         <field name="balance_start"/>
554                         <field name="balance_end_real"/>
555                         <field name="currency" invisible="1"/>
556                     </group>
557                     <notebook colspan="4">
558                         <page string="Transaction" name="statement_line_ids">
559                             <field colspan="4" name="line_ids" nolabel="1">
560                                 <tree editable="bottom" string="Statement lines">
561                                     <field name="sequence" readonly="1" invisible="1"/>
562                                     <field name="date" groups="base.group_extended"/>
563                                     <field name="name"/>
564                                     <field name="ref"/>
565                                     <field name="partner_id" on_change="onchange_type(partner_id, type)"/>
566                                     <field name="type" on_change="onchange_type(partner_id, type)"/>
567                                     <field domain="[('journal_id','=',parent.journal_id)]" name="account_id"/>
568                                     <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '&lt;&gt;', 'view')]"/>
569                                     <field name="amount"/>
570                                 </tree>
571                                 <form string="Statement lines">
572                                     <field name="date"/>
573                                     <field name="name"/>
574                                     <field name="type" on_change="onchange_type(partner_id, type)"/>
575                                     <field name="partner_id" on_change="onchange_type(partner_id, type)"/>
576                                     <field domain="[('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view')]" name="account_id"/>
577                                     <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '&lt;&gt;', 'view')]"/>
578                                     <field name="amount"/>
579                                     <field name="ref"/>
580                                     <field name="sequence" readonly="0"/>
581                                     <separator colspan="4" string="Notes"/>
582                                     <field colspan="4" name="note" nolabel="1"/>
583                                 </form>
584                             </field>
585                         </page>
586                         <page string="Journal Entries" name="move_live_ids">
587                             <field colspan="4" name="move_line_ids" nolabel="1"/>
588                         </page>
589                     </notebook>
590                     <group col="8" colspan="4">
591                         <field name="state"/>
592                         <field name="balance_end"/>
593                         <button name="button_cancel" states="confirm" string="Cancel" type="object" icon="gtk-cancel"/>
594                         <button name="button_dummy" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific"/>
595                         <button name="button_confirm_bank" states="draft" string="Confirm" type="object"  icon="terp-camera_test"/>
596                     </group>
597                 </form>
598             </field>
599         </record>
600
601         <record id="view_bank_statement_periodic_form" model="ir.ui.view">
602             <field name="name">account.bank.statement.form</field>
603             <field name="model">account.bank.statement</field>
604             <field name="type">form</field>
605             <field name="arch" type="xml">
606                 <form string="Bank Statement">
607                     <group col="7" colspan="4">
608                         <field name="name" select="1"/>
609                         <field name="date" select="1" on_change="onchange_date(date)"/>
610                         <field name="journal_id" domain="[('type', '=', 'bank')]" on_change="onchange_journal_id(journal_id)" select="1"/>
611                         <newline/>
612                         <field name="period_id"/>
613                         <field name="balance_start"/>
614                         <field name="balance_end_real"/>
615                         <field name="currency" invisible="1"/>
616                     </group>
617                     <notebook colspan="4">
618                         <page string="Journal Entries">
619                             <field colspan="4" name="move_line_ids" nolabel="1" widget="many2many"/>
620                         </page>
621                     </notebook>
622                     <group col="8" colspan="4">
623                         <field name="state"/>
624                         <field name="balance_end"/>
625                         <button name="button_cancel" states="confirm" string="Cancel" type="object" icon="gtk-cancel"/>
626                         <button name="button_dummy" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific"/>
627                         <button name="button_confirm_bank" states="draft" string="Confirm" type="object"  icon="terp-camera_test"/>
628                     </group>
629                 </form>
630             </field>
631         </record>
632
633         <record id="action_bank_statement_tree" model="ir.actions.act_window">
634             <field name="name">Bank Statements</field>
635             <field name="res_model">account.bank.statement</field>
636             <field name="view_type">form</field>
637             <field name="view_mode">tree,form,graph</field>
638             <field name="domain">[('journal_id.type', '=', 'bank')]</field>
639             <field name="context">{'journal_type':'bank'}</field>
640             <field name="search_view_id" ref="view_bank_statement_search"/>
641             <field name="help">A bank statement is a summary of all financial transactions occurring over a given period of time on a deposit account, a credit card, or any other type of account. Start by encoding the starting and closing balance, then record all lines of your statement. When you are in the Payment column of the a line, you can press F1 to open the reconciliation form.</field>
642         </record>
643         <record model="ir.actions.act_window.view" id="action_bank_statement_tree_bank">
644             <field name="sequence" eval="1"/>
645             <field name="view_mode">tree</field>
646             <field name="view_id" ref="view_bank_statement_tree"/>
647             <field name="act_window_id" ref="action_bank_statement_tree"/>
648         </record>
649         <record model="ir.actions.act_window.view" id="action_bank_statement_form_bank">
650             <field name="sequence" eval="1"/>
651             <field name="view_mode">form</field>
652             <field name="view_id" ref="view_bank_statement_form"/>
653             <field name="act_window_id" ref="action_bank_statement_tree"/>
654         </record>
655
656     <record id="action_bank_statement_periodic_tree" model="ir.actions.act_window">
657             <field name="name">Bank Statements</field>
658             <field name="res_model">account.bank.statement</field>
659             <field name="view_type">form</field>
660             <field name="view_mode">tree,form,graph</field>
661             <field name="domain">[('journal_id.type', '=', 'bank')]</field>
662             <field name="search_view_id" ref="view_bank_statement_search"/>
663             <field name="context">{'journal_type':'bank'}</field>
664         </record>
665         <record model="ir.actions.act_window.view" id="action_bank_statement_periodic_tree_bank">
666             <field name="sequence" eval="1"/>
667             <field name="view_mode">tree</field>
668             <field name="view_id" ref="view_bank_statement_tree"/>
669             <field name="act_window_id" ref="action_bank_statement_periodic_tree"/>
670         </record>
671         <record model="ir.actions.act_window.view" id="action_bank_statement_periodic_form_bank">
672             <field name="sequence" eval="1"/>
673             <field name="view_mode">form</field>
674             <field name="view_id" ref="view_bank_statement_periodic_form"/>
675             <field name="act_window_id" ref="action_bank_statement_periodic_tree"/>
676         </record>
677
678         <menuitem string="Bank Statements" action="action_bank_statement_tree" id="menu_bank_statement_tree" parent="menu_finance_bank_and_cash" sequence="7"/>
679         <menuitem name="Statements Reconciliation" action="action_bank_statement_periodic_tree" id="menu_menu_Bank_process" parent="account.menu_account_pp_statements" sequence="7"/>
680
681
682         <record id="action_bank_statement_draft_tree" model="ir.actions.act_window">
683             <field name="name">Draft statements</field>
684             <field name="res_model">account.bank.statement</field>
685             <field name="view_type">form</field>
686             <field name="view_mode">tree,form,search</field>
687             <field name="domain">[('state','=','draft')]</field>
688             <field name="filter" eval="True"/>
689         </record>
690
691         <!--
692     Account Types
693     -->
694         <record id="view_account_type_search" model="ir.ui.view">
695             <field name="name">account.account.type.search</field>
696             <field name="model">account.account.type</field>
697             <field name="type">search</field>
698             <field name="arch" type="xml">
699                 <search string="Account Type">
700                     <field name="name"/>
701                     <field name="code"/>
702                 </search>
703             </field>
704         </record>
705
706         <record id="view_account_type_tree" model="ir.ui.view">
707             <field name="name">account.account.type.tree</field>
708             <field name="model">account.account.type</field>
709             <field name="type">tree</field>
710             <field name="arch" type="xml">
711                 <tree string="Account Type">
712                     <field name="name"/>
713                     <field name="code"/>
714                 </tree>
715             </field>
716         </record>
717
718         <record id="view_account_type_form" model="ir.ui.view">
719             <field name="name">account.account.type.form</field>
720             <field name="model">account.account.type</field>
721             <field name="type">form</field>
722             <field name="arch" type="xml">
723                 <form string="Account Type">
724                     <group col="6" colspan="4">
725                         <field name="name" select="1"/>
726                         <field name="code" select="1"/>
727                     </group>
728                     <group col="2" colspan="2">
729                         <separator string="Reporting Configuration" colspan="4"/>
730                         <field name="report_type" select="2"/>
731                         <field name="sign"/>
732                     </group>
733                     <group col="2" colspan="2">
734                         <separator string="Closing Method" colspan="4"/>
735                         <field name="close_method"/>
736                     </group>
737                     <separator string="Description" colspan="4"/>
738                     <field name="note" colspan="4" nolabel="1"/>
739                 </form>
740             </field>
741         </record>
742         <record id="action_account_type_form" model="ir.actions.act_window">
743             <field name="name">Account Types</field>
744             <field name="res_model">account.account.type</field>
745             <field name="view_type">form</field>
746             <field name="view_mode">tree,form</field>
747             <field name="search_view_id" ref="view_account_type_search"/>
748             <field name="help">An account type is a name or code given to an account that indicates its purpose. For example, the account type could be linked to an asset account, expense account or payable account. From this view, you can create and manage the account types you need to be used for your company management.</field>
749         </record>
750         <menuitem action="action_account_type_form" groups="base.group_extended,group_account_manager" id="menu_action_account_type_form" parent="menu_low_level"/>
751         <!--
752     Entries
753     -->
754         <record id="view_account_move_tree" model="ir.ui.view">
755             <field name="name">account.move.tree</field>
756             <field name="model">account.move</field>
757             <field name="type">tree</field>
758             <field name="arch" type="xml">
759                 <tree colors="blue:state in ('draft');black:state in ('posted')" string="Journal Entries">
760                     <field name="name"/>
761                     <field name="ref"/>
762                     <field name="date"/>
763                     <field name="period_id"/>
764                     <field name="journal_id"/>
765                     <field name="partner_id"/>
766                     <field name="amount" sum="Total Amount"/>
767                     <field name="state"/>
768                 </tree>
769             </field>
770         </record>
771
772         <!--
773     Reconcile
774     -->
775
776         <record id="view_move_reconcile_form" model="ir.ui.view">
777             <field name="name">account.move.reconcile.form</field>
778             <field name="model">account.move.reconcile</field>
779             <field name="type">form</field>
780             <field name="arch" type="xml">
781                 <form string="Journal Entry Reconcile">
782                     <group col="6" colspan="4">
783                         <field name="name" select="1"/>
784                         <field name="create_date" select="1"/>
785                         <field name="type" select="1"/>
786                     </group>
787                     <separator colspan="4" string="Reconcile Entries"/>
788                     <field colspan="4" name="line_id" nolabel="1"/>
789                     <separator colspan="4" string="Partial Reconcile Entries"/>
790                     <field colspan="4" name="line_partial_ids" nolabel="1"/>
791                 </form>
792             </field>
793         </record>
794
795         <!--
796     Tax Codes
797     -->
798         <record id="view_tax_code_search" model="ir.ui.view">
799             <field name="name">account.tax.code.search</field>
800             <field name="model">account.tax.code</field>
801             <field name="type">search</field>
802             <field name="arch" type="xml">
803                 <search string="Account Tax Code">
804                     <field name="name"/>
805                     <field name="code"/>
806                     <field name="parent_id"/>
807                     <field name="company_id" widget="selection" groups="base.group_multi_company"/>
808                 </search>
809             </field>
810         </record>
811         <record id="view_tax_code_tree" model="ir.ui.view">
812             <field name="name">account.tax.code.tree</field>
813             <field name="model">account.tax.code</field>
814             <field name="type">tree</field>
815             <field name="field_parent">child_ids</field>
816             <field name="priority">100</field>
817             <field name="arch" type="xml">
818                 <tree string="Account Tax Code" toolbar="1">
819                     <field name="name"/>
820                     <field name="code"/>
821                     <field name="sum_period"/>
822                     <field name="sum"/>
823                     <field name="company_id" groups="base.group_multi_company"/>
824                 </tree>
825             </field>
826         </record>
827         <record id="view_tax_code_form" model="ir.ui.view">
828             <field name="name">account.tax.code.form</field>
829             <field name="model">account.tax.code</field>
830             <field name="type">form</field>
831             <field name="arch" type="xml">
832                 <form string="Account Tax Code">
833                     <group col="6" colspan="4">
834                         <field name="name"/>
835                         <field name="code"/>
836                         <field name="parent_id"/>
837                         <field name="company_id" groups="base.group_multi_company"/>
838                     </group>
839                     <group colspan="2" col="2">
840                         <separator string="Reporting Configuration" colspan="4"/>
841                         <field name="notprintable"/>
842                         <field name="sign"/>
843                     </group>
844                     <group colspan="2" col="2">
845                         <separator string="Statistics" colspan="4"/>
846                         <field name="sum_period"/>
847                         <field name="sum"/>
848                     </group>
849                     <separator string="Description" colspan="4"/>
850                     <field colspan="4" name="info" nolabel="1"/>
851                 </form>
852             </field>
853         </record>
854         <record id="action_tax_code_list" model="ir.actions.act_window">
855             <field name="name">Tax codes</field>
856             <field name="res_model">account.tax.code</field>
857             <field name="view_type">form</field>
858             <field name="view_mode">tree,form</field>
859             <field name="view_id" ref="view_tax_code_tree"/>
860             <field name="search_view_id" ref="view_tax_code_search"/>
861             <field name="help">A tax code is a reference of a tax that will be taken out of a gross income depending on the country and sometimes industry sector. OpenERP allows you to define and manage them from this menu.</field>
862         </record>
863        <menuitem id="next_id_27" name="Taxes" parent="account.menu_finance_accounting"/>
864        <menuitem action="action_tax_code_list" id="menu_action_tax_code_list" parent="menu_low_level" sequence="12"/>
865
866
867         <!--
868     Tax
869     -->
870         <record id="view_tax_tree" model="ir.ui.view">
871             <field name="name">account.tax.tree</field>
872             <field name="model">account.tax</field>
873             <field name="type">tree</field>
874             <field name="field_parent">child_ids</field>
875             <field name="arch" type="xml">
876                 <tree string="Account Tax">
877                     <field name="name"/>
878                     <field name="price_include" groups="base.group_extended"/>
879                     <field name="description"/>
880                 </tree>
881             </field>
882         </record>
883         <record id="view_account_tax_search" model="ir.ui.view">
884             <field name="name">account.tax.search</field>
885             <field name="model">account.tax</field>
886             <field name="type">search</field>
887             <field name="arch" type="xml">
888                 <search string="Search Taxes">
889                     <group col="10" colspan="4">
890                         <field name="name"/>
891                         <field name="description"/>
892                     </group>
893                 </search>
894             </field>
895         </record>
896         <record id="view_tax_form" model="ir.ui.view">
897             <field name="name">account.tax.form</field>
898             <field name="model">account.tax</field>
899             <field name="type">form</field>
900             <field name="arch" type="xml">
901                 <form string="Account Tax">
902                     <group colspan="4" col="6">
903                         <field name="name"/>
904                         <field name="description"/>
905                         <field name="type_tax_use"/>
906                         <field name="price_include"/>
907                         <field name="active"/>
908                         <field name="company_id" widget="selection" groups="base.group_multi_company"/>
909                     </group>
910                     <notebook colspan="4">
911                         <page string="Tax Definition" >
912                           <group colspan="4" col="4">
913                                   <field name="type"/>
914                                   <field name="amount" attrs="{'readonly':[('type','in',('none', 'code', 'balance'))]}"/>
915                                   <separator colspan="4" string="Accounting Information"/>
916                                   <field name="account_collected_id" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
917                                   <label colspan="2" nolabel="1" string="Keep empty to use the income account"/>
918                                   <field name="account_paid_id" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
919                                   <label colspan="2" nolabel="1" string="Keep empty to use the expense account"/>
920                                   <separator colspan="4" string="Tax Declaration: Invoices"/>
921                                   <field name="base_code_id"/>
922                                   <field name="base_sign"/>
923                                   <field name="tax_code_id"/>
924                                   <field name="tax_sign"/>
925                                   <separator colspan="4" string="Tax Declaration: Credit Notes"/>
926                                   <field name="ref_base_code_id"/>
927                                   <field name="ref_base_sign"/>
928                                   <field name="ref_tax_code_id"/>
929                                   <field name="ref_tax_sign"/>
930                                   <separator groups="base.group_extended" colspan="4" string="Children Definition"/>
931                                   <field groups="base.group_extended" name="child_depend"/>
932                                   <field groups="base.group_extended" name="sequence"/>
933                                   <field groups="base.group_extended" name="include_base_amount"/>
934                                   <field groups="base.group_extended" colspan="4" name="child_ids"/>
935                           </group>
936                         </page>
937                         <page groups="base.group_extended" string="Special Computation">
938                             <separator colspan="4" string="Applicability Options"/>
939                             <field name="applicable_type"/>
940                             <field name="domain"/>
941                             <separator colspan="4" string="Applicable Code (if type=code)"/>
942                             <field colspan="4" name="python_applicable" nolabel="1" attrs="{'readonly':[('applicable_type','=','true')], 'required':[('applicable_type','=','code')]}"/>
943                             <separator colspan="4" string="Compute Code (if type=code)"/>
944                             <field colspan="4" name="python_compute" nolabel="1" attrs="{'readonly':[('type','!=','code')],'required':[('type','=','code')]}"/>
945                         </page>
946                     </notebook>
947                 </form>
948               </field>
949         </record>
950         <record id="action_tax_form" model="ir.actions.act_window">
951             <field name="name">Taxes</field>
952             <field name="res_model">account.tax</field>
953             <field name="view_type">form</field>
954             <field name="view_id" ref="view_tax_tree"/>
955             <field name="domain">[('parent_id','=',False)]</field>
956         </record>
957         <menuitem action="action_tax_form" id="menu_action_tax_form" parent="next_id_27"/>
958         <record id="action_tax_code_tree" model="ir.actions.act_window">
959             <field name="name">Chart of Taxes</field>
960             <field name="res_model">account.tax.code</field>
961             <field name="domain">[('parent_id','=',False)]</field>
962             <field name="view_type">tree</field>
963             <field name="view_id" ref="view_tax_code_tree"/>
964             <field name="help">The chart of taxes is used to generate your periodic tax statement. You will see here the taxes with codes related to your legal statement according to your country.</field>
965         </record>
966
967         <!--
968     Entries lines
969     -->
970
971         <record id="view_move_line_tree" model="ir.ui.view">
972             <field name="name">account.move.line.tree</field>
973             <field name="model">account.move.line</field>
974             <field name="type">tree</field>
975             <field eval="4" name="priority"/>
976             <field name="arch" type="xml">
977                 <tree colors="red:state in ('draft');black:state in ('valid')" string="Journal Items" editable="top" on_write="on_create_write">
978                     <field name="date"/>
979                     <field name="period_id"/>
980                     <field name="move_id"/>
981                     <field name="ref"/>
982                     <field name="invoice"/>
983                     <field name="name"/>
984                     <field name="partner_id" on_change="onchange_partner_id(move_id, partner_id, account_id, debit, credit, date, journal_id)"/>
985                     <field name="account_id" domain="[('journal_id','=',journal_id)]"/>
986                     <field name="journal_id"/>
987                     <field name="debit" sum="Total debit"/>
988                     <field name="credit" sum="Total credit"/>
989                     <field name="account_tax_id" groups="base.group_extended"/>
990                     <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]"/>
991                     <field name="amount_currency" groups="base.group_extended" attrs="{'readonly':[('state','=','valid')]}"/>
992                     <field name="currency_id" groups="base.group_extended" attrs="{'readonly':[('state','=','valid')]}"/>
993                     <field name="reconcile_partial_id" groups="base.group_extended"/>
994                     <field name="reconcile_id"/>
995                     <field name="state"/>
996                 </tree>
997             </field>
998         </record>
999
1000         <record id="view_move_line_form" model="ir.ui.view">
1001             <field name="name">account.move.line.form</field>
1002             <field name="model">account.move.line</field>
1003             <field name="type">form</field>
1004             <field eval="2" name="priority"/>
1005             <field name="arch" type="xml">
1006                 <form string="Journal Item">
1007                     <group col="6" colspan="4">
1008                         <field name="name" select="1"/>
1009                         <field name="ref"/>
1010                         <field name="partner_id" select="1" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1011
1012                         <field name="journal_id"/>
1013                         <field name="period_id"/>
1014                         <field name="company_id" required="1" groups="base.group_multi_company"/>
1015                     </group>
1016                     <notebook colspan="4">
1017                         <page string="Information">
1018                             <group col="2" colspan="2">
1019                                 <separator colspan="2" string="Amount"/>
1020                                 <field name="account_id" select="1" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
1021                                 <field name="debit"/>
1022                                 <field name="credit"/>
1023                                 <field name="quantity"/>
1024                             </group>
1025
1026                             <group col="2" colspan="2">
1027                                 <separator colspan="2" string="Accounting Documents"/>
1028                                 <field name="invoice" readonly="True"/>
1029                                 <field name="move_id" required="False"/>
1030                                 <field name="statement_id" readonly="True"/>
1031                             </group>
1032
1033                             <group col="2" colspan="2">
1034                                 <separator colspan="2" string="Dates"/>
1035                                 <field name="date" select="1"/>
1036                                 <field name="date_maturity"/>
1037                                 <field name="date_created" readonly="True"/>
1038                             </group>
1039
1040                             <group col="2" colspan="2">
1041                                 <separator colspan="2" string="Taxes"/>
1042                                 <field name="tax_code_id"/>
1043                                 <field name="tax_amount"/>
1044                                 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1045                             </group>
1046
1047                             <group col="2" colspan="2" attrs="{'readonly':[('state','=','valid')]}" >
1048                                 <separator colspan="2" string="Currency"/>
1049                                 <field name="currency_id"/>
1050                                 <field name="amount_currency"/>
1051                             </group>
1052
1053                             <group col="2" colspan="2">
1054                                 <separator colspan="2" string="Reconciliation"/>
1055                                 <field name="reconcile_id"/>
1056                                 <field name="reconcile_partial_id"/>
1057                             </group>
1058
1059                             <group col="2" colspan="2">
1060                                 <separator colspan="2" string="States"/>
1061                                 <field name="state"/>
1062                                 <field name="blocked"/>
1063                             </group>
1064
1065                             <group col="2" colspan="2"  groups="base.group_extended">
1066                                 <separator colspan="2" string="Analytic"/>
1067                                 <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1068                             </group>
1069                             <separator string="Narration" colspan="4"/>
1070                             <field name="narration" colspan="4" nolabel="1"/>
1071                         </page>
1072                         <page string="Analytic Lines" groups="base.group_analytic_accounting">
1073                             <field colspan="4" name="analytic_lines" nolabel="1" context="{'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}"/>
1074                         </page>
1075                     </notebook>
1076                 </form>
1077             </field>
1078         </record>
1079
1080         <record id="view_move_line_form2" model="ir.ui.view">
1081             <field name="name">account.move.line.form2</field>
1082             <field name="model">account.move.line</field>
1083             <field name="type">form</field>
1084             <field eval="9" name="priority"/>
1085             <field name="arch" type="xml">
1086                 <form string="Journal Item">
1087                     <notebook colspan="4">
1088                         <page string="Information">
1089                             <separator colspan="4" string="General Information"/>
1090                             <field name="name" select="1"/>
1091                             <field name="date"/>
1092                             <field name="journal_id" readonly="False" select="1"/>
1093                             <field name="period_id" readonly="False"/>
1094                             <field name="account_id" select="1" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
1095                             <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1096                             <newline/>
1097                             <field name="debit"/>
1098                             <field name="credit"/>
1099
1100                             <separator colspan="4" string="Optional Information"/>
1101                             <field name="currency_id"/>
1102                             <field name="amount_currency"/>
1103                             <field name="quantity" select="3"/>
1104                             <field name="move_id" required="False"/>
1105                             <newline/>
1106                             <field name="date_maturity"/>
1107                             <field name="date_created"/>
1108                             <field name="date_created"/>
1109                             <field name="blocked" select="3"/>
1110                             <newline/>
1111                             <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1112                             <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1113                             <separator colspan="4" string="State"/>
1114                             <newline/>
1115                             <field name="reconcile_id"/>
1116                             <field name="reconcile_partial_id"/>
1117                             <field name="state"/>
1118                         </page>
1119                         <page string="Analytic Lines" groups="base.group_analytic_accounting">
1120                             <field colspan="4" name="analytic_lines" nolabel="1" />
1121                         </page>
1122                     </notebook>
1123                 </form>
1124             </field>
1125         </record>
1126
1127         <record id="account_move_line_graph" model="ir.ui.view">
1128             <field name="name">account.move.line.graph</field>
1129             <field name="model">account.move.line</field>
1130             <field name="type">graph</field>
1131             <field name="arch" type="xml">
1132                 <graph string="Account Statistics" type="bar">
1133                     <field name="account_id"/>
1134                     <field name="debit" operator="+"/>
1135                     <field name="credit" operator="+"/>
1136                 </graph>
1137             </field>
1138         </record>
1139
1140         <record id="view_account_move_line_filter" model="ir.ui.view">
1141             <field name="name">Journal Items</field>
1142             <field name="model">account.move.line</field>
1143             <field name="type">search</field>
1144             <field name="arch" type="xml">
1145                 <search string="Search Journal Items">
1146                     <group col='10' colspan='4'>
1147                         <filter icon="terp-document-new" string="Unbalanced" domain="[('state','=','draft')]" help="Unbalanced Journal Items"/>
1148                         <separator orientation="vertical"/>
1149                         <filter icon="terp-document-new" string="Unposted" domain="[('move_id.state','=','draft')]" help="Unposted Journal Items"/>
1150                         <filter icon="terp-camera_test" string="Posted" domain="[('move_id.state','=','posted')]" help="Posted Journal Items"/>
1151                         <separator orientation="vertical"/>
1152                         <filter
1153                             icon="terp-dolar_ok!"
1154                             string="Unreconciled"
1155                             domain="[('reconcile_id','=',False), ('account_id.type','in',['receivable', 'payable'])]" help="Unreconciled Journal Items"
1156                             name="unreconciled"/>
1157                         <separator orientation="vertical"/>
1158                         <field name="move_id" select="1" string="Number (Move)"/>
1159                         <field name="date" select='1'/>
1160                         <field name="account_id" select='1'/>
1161                         <field name="partner_id" select='1'>
1162                             <filter help="Next Partner Entries to reconcile" name="next_partner" string="Next Partner to reconcile" context="{'next_partner_only': 1}" icon="terp-gtk-jump-to-ltr" domain="[('account_id.reconcile','=',True),('reconcile_id','=',False)]"/>
1163                         </field>
1164                     </group>
1165                     <newline/>
1166                     <group col="10" colspan="4">
1167                         <field name="journal_id" widget="selection" context="{'journal_id':self, 'visible_id':self or 0, 'normal_view':False}"/>
1168                         <field name="period_id" context="{'period_id':self, 'search_default_period_id':self}"/>
1169                     </group>
1170                     <newline/>
1171                     <group expand="0" string="Extended Filters...">
1172                         <field name="ref" select="1" string="Reference"/>
1173                         <field name="name" select="1"/>
1174                         <field name="narration" select="1"/>
1175                         <field name="balance" string="Debit/Credit" select='1'/>
1176                     </group>
1177                     <newline/>
1178                     <group expand="0" string="Group By..." colspan="12" col="10">
1179                         <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1180                         <separator orientation="vertical"/>
1181                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1182                         <filter string="Account"  icon="terp-folder-green" context="{'group_by':'account_id'}"/>
1183                         <separator orientation="vertical"/>
1184                         <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1185                     </group>
1186                     <newline/>
1187                 </search>
1188             </field>
1189         </record>
1190
1191         <record id="action_account_moves_all_a" model="ir.actions.act_window">
1192             <field name="name">Journal Items</field>
1193             <field name="res_model">account.move.line</field>
1194             <field name="view_type">form</field>
1195             <field name="view_mode">tree,form</field>
1196             <field name="search_view_id" ref="view_account_move_line_filter"/>
1197             <field name="help">This view is used by accountants in order to record entries massively in OpenERP. If you want to record a supplier invoice, start by recording the line of the expense account, OpenERP will propose to you automatically the Tax related to this account and the counter-part "Account Payable".</field>
1198         </record>
1199
1200         <menuitem
1201             action="action_account_moves_all_a"
1202             icon="STOCK_JUSTIFY_FILL"
1203             id="menu_action_account_moves_all"
1204             parent="account.menu_finance_entries"
1205             sequence="1"
1206             groups="group_account_user,group_account_manager"
1207         />
1208
1209         <record id="action_move_line_select" model="ir.actions.act_window">
1210             <field name="name">Journal Items</field>
1211             <field name="res_model">account.move.line</field>
1212             <field name="view_type">form</field>
1213             <field name="view_mode">tree,form</field>
1214             <field name="search_view_id" ref="view_account_move_line_filter"/>
1215         </record>
1216
1217         <record id="action_view_move_line" model="ir.actions.act_window">
1218             <field name="name">Lines to reconcile</field>
1219             <field name="res_model">account.move.line</field>
1220             <field name="view_type">form</field>
1221             <field name="view_mode">tree,form</field>
1222             <field name="domain">[('account_id.reconcile', '=', True),('reconcile_id','=',False)]</field>
1223             <field eval="False" name="view_id"/>
1224             <field eval="True" name="filter"/>
1225             <field name="search_view_id" ref="view_account_move_line_filter"/>
1226         </record>
1227
1228         <record id="action_move_line_select" model="ir.actions.act_window">
1229             <field name="name">Journal Items</field>
1230             <field name="res_model">account.move.line</field>
1231             <field name="view_type">form</field>
1232             <field name="view_mode">tree,form</field>
1233             <field name="view_id" ref="view_move_line_tree"/>
1234             <field name="search_view_id" ref="view_account_move_line_filter"/>
1235             <field name="domain">[('account_id', 'child_of', active_id)]</field>
1236         </record>
1237
1238         <record id="ir_account_move_line_select" model="ir.values">
1239             <field name="key2">tree_but_open</field>
1240             <field name="model">account.account</field>
1241             <field name="name">Open Journal Items</field>
1242             <field eval="'ir.actions.act_window,%d'%action_move_line_select" name="value"/>
1243             <field eval="True" name="object"/>
1244         </record>
1245         <!--
1246     Account.Entry Edition
1247     -->
1248
1249         <record id="account_move_graph" model="ir.ui.view">
1250             <field name="name">account.move.graph</field>
1251             <field name="model">account.move</field>
1252             <field name="type">graph</field>
1253             <field name="arch" type="xml">
1254                 <graph string="Account Statistics" type="bar">
1255                     <field name="period_id"/>
1256                     <field name="amount" operator="+"/>
1257                 </graph>
1258             </field>
1259          </record>
1260         <record id="view_move_tree" model="ir.ui.view">
1261             <field name="name">account.move.tree</field>
1262             <field name="model">account.move</field>
1263             <field name="type">tree</field>
1264             <field name="arch" type="xml">
1265                 <tree colors="blue:state in ('draft');black:state in ('posted')" string="Journal Entries">
1266                     <field name="name"/>
1267                     <field name="ref"/>
1268                     <field name="date"/>
1269                     <field name="period_id"/>
1270                     <field name="journal_id"/>
1271                     <field name="partner_id"/>
1272                     <field name="amount" sum="Total Amount"/>
1273                     <field name="to_check" groups="base.group_extended"/>
1274                     <field name="state"/>
1275                     <button name="button_validate" states="draft" string="Approve" type="object" icon="terp-camera_test"/>
1276                 </tree>
1277             </field>
1278         </record>
1279         <record id="view_move_form" model="ir.ui.view">
1280             <field name="name">account.move.form</field>
1281             <field name="model">account.move</field>
1282             <field name="type">form</field>
1283             <field name="arch" type="xml">
1284                 <form string="Journal Entries">
1285                     <group colspan="4" col="6">
1286                         <field name="name" readonly="True"/>
1287                         <field name="ref"/>
1288                         <field name="to_check" groups="base.group_extended"/>
1289                         <field name="journal_id"/>
1290                         <field name="period_id"/>
1291                         <field name="date"/>
1292                         <field name="company_id" required="1" groups="base.group_multi_company"/>
1293                         <field name="partner_id" invisible="1"/>
1294                         <field name="amount" invisible="1"/>
1295                     </group>
1296                     <notebook colspan="4">
1297                         <page string="Journal Items">
1298                             <field colspan="4" name="line_id" nolabel="1" height="250" widget="one2many_list" default_get="{'lines':line_id ,'journal':journal_id }">
1299                                 <form string="Journal Item">
1300                                     <group col="6" colspan="4">
1301                                         <field name="name"/>
1302                                         <field name="ref"/>
1303                                         <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1304
1305                                         <field name="journal_id"/>
1306                                         <field name="period_id"/>
1307                                         <field name="company_id" required="1" groups="base.group_multi_company"/>
1308                                     </group>
1309                                     <notebook colspan="4">
1310                                         <page string="Information">
1311                                             <group col="2" colspan="2">
1312                                                 <separator colspan="2" string="Amount"/>
1313                                                 <field name="account_id" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
1314                                                 <field name="debit"/>
1315                                                 <field name="credit"/>
1316                                                 <field name="quantity"/>
1317                                             </group>
1318
1319                                             <group col="2" colspan="2">
1320                                                 <separator colspan="2" string="Accounting Documents"/>
1321                                                 <field name="invoice"/>
1322                                                 <field name="move_id" required="False"/>
1323                                                 <field name="statement_id"/>
1324                                             </group>
1325
1326                                             <group col="2" colspan="2">
1327                                                 <separator colspan="2" string="Dates"/>
1328                                                 <field name="date"/>
1329                                                 <field name="date_maturity"/>
1330                                                 <field name="date_created"/>
1331                                             </group>
1332
1333                                             <group col="2" colspan="2">
1334                                                 <separator colspan="2" string="Taxes"/>
1335                                                 <field name="tax_code_id"/>
1336                                                 <field name="tax_amount"/>
1337                                                 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1338                                             </group>
1339
1340                                             <group col="2" colspan="2">
1341                                                 <separator colspan="2" string="Currency"/>
1342                                                 <field name="currency_id"/>
1343                                                 <field name="amount_currency"/>
1344                                             </group>
1345
1346                                             <group col="2" colspan="2">
1347                                                 <separator colspan="2" string="Reconciliation"/>
1348                                                 <field name="reconcile_id"/>
1349                                                 <field name="reconcile_partial_id"/>
1350                                             </group>
1351
1352                                             <group col="2" colspan="2">
1353                                                 <separator colspan="2" string="States"/>
1354                                                 <field name="state"/>
1355                                                 <field name="blocked"/>
1356                                             </group>
1357
1358                                             <group col="2" colspan="2" groups="base.group_extended">
1359                                                 <separator colspan="2" string="Analytic"/>
1360                                                 <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1361                                             </group>
1362                                             <separator string="Narration" colspan="4"/>
1363                                             <field name="narration" colspan="4" nolabel="1"/>
1364                                         </page>
1365                                         <page string="Analytic Lines" groups="base.group_analytic_accounting">
1366                                             <field colspan="4" name="analytic_lines" nolabel="1" context="{'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}"/>
1367                                         </page>
1368                                     </notebook>
1369                                 </form>
1370                                 <tree colors="blue:state in ('draft');black:state in ('posted')" editable="top" string="Journal Items">
1371                                     <field name="ref"/>
1372                                     <field name="invoice"/>
1373                                     <field name="name"/>
1374                                     <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,parent.date,parent.journal_id)"/>
1375                                     <field name="account_id" domain="[('journal_id','=',parent.journal_id)]"/>
1376                                     <field name="date_maturity"/>
1377                                     <field name="debit" sum="Total Debit"/>
1378                                     <field name="credit" sum="Total Credit"/>
1379                                     <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1380                                     <field name="amount_currency" groups="base.group_extended"/>
1381                                     <field name="currency_id" groups="base.group_extended"/>
1382                                     <field name="tax_code_id"/>
1383                                     <field name="tax_amount"/>
1384                                     <field name="state"/>
1385                                     <field name="reconcile_id"/>
1386                                     <field name="reconcile_partial_id" groups="base.group_extended"/>
1387                                 </tree>
1388                             </field>
1389                             <separator colspan="4" string="Narration"/>
1390                             <field name="narration" colspan="4" nolabel="1" height="50"/>
1391                             <group col="4" colspan="4">
1392                                 <field name="state" select="1"/>
1393                                 <button name="button_cancel" states="posted" string="Cancel" type="object" icon="gtk-cancel"/>
1394                                 <button name="button_validate" states="draft" string="Approve" type="object" icon="terp-camera_test"/>
1395                             </group>
1396                         </page>
1397                     </notebook>
1398                 </form>
1399             </field>
1400         </record>
1401
1402         <record id="view_account_move_filter" model="ir.ui.view">
1403             <field name="name">account.move.select</field>
1404             <field name="model">account.move</field>
1405             <field name="type">search</field>
1406             <field name="arch" type="xml">
1407                 <search string="Search Move">
1408                     <group col='8' colspan='4'>
1409                         <filter icon="terp-document-new" string="Unposted" domain="[('state','=','draft')]" help="Unposted Journal Entries"/>
1410                         <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Journal Entries"/>
1411                         <separator orientation="vertical"/>
1412                         <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('to_check','=',True)]" groups="base.group_extended" help="Journal Entries to Review"/>
1413                         <separator orientation="vertical"/>
1414                         <field name="name"/>
1415                         <field name="ref"/>
1416                         <field name="partner_id"/>
1417                         <field name="date"/>
1418                     </group>
1419                     <newline/>
1420                     <group col='8' colspan='4'>
1421                         <field name="journal_id" widget="selection"/>
1422                         <field name="period_id"/>
1423                     </group>
1424                     <newline/>
1425                     <group col="10" colspan="4">
1426                         <field name="journal_id" widget="selection" context="{'journal_id':self, 'visible_id':self or 0, 'normal_view':False}"/>
1427                         <field name="period_id" widget="selection" context="{'period_id':self}"/>
1428                     </group>
1429                     <group expand="0" string="Group By..." colspan="12" col="10">
1430                         <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1431                         <separator orientation="vertical"/>
1432                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1433                         <filter string="States" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1434                         <separator orientation="vertical"/>
1435                         <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1436                         <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1437                     </group>
1438                 </search>
1439             </field>
1440         </record>
1441
1442         <record id="action_move_journal_line" model="ir.actions.act_window">
1443             <field name="name">Journal Entries</field>
1444             <field name="res_model">account.move</field>
1445             <field name="view_type">form</field>
1446             <field name="view_mode">tree,form,graph</field>
1447             <field name="view_id" ref="view_move_tree"/>
1448             <field name="search_view_id" ref="view_account_move_filter"/>
1449             <field name="help">A journal entry consists of several journal items, each of which is either a debit or a credit. OpenERP creates automatically one journal entry per accounting document: invoices, refund, supplier payment, bank statements, etc.</field>
1450         </record>
1451
1452         <menuitem
1453             icon="STOCK_JUSTIFY_FILL"
1454             action="action_move_journal_line"
1455             id="menu_action_move_journal_line_form"
1456             parent="account.menu_finance_entries"
1457             groups="group_account_user,group_account_manager"
1458             sequence="5"/>
1459
1460         <record id="action_move_line_form" model="ir.actions.act_window">
1461             <field name="name">Entries</field>
1462             <field name="type">ir.actions.act_window</field>
1463             <field name="res_model">account.move</field>
1464             <field name="view_type">form</field>
1465             <field name="view_id" ref="view_move_tree"/>
1466             <field name="search_view_id" ref="view_account_move_filter"/>
1467         </record>
1468
1469         <act_window
1470             id="act_account_move_to_account_move_line_open"
1471             name="Journal Items"
1472             context="{'search_default_move_id':[active_id]}"
1473             res_model="account.move.line"
1474             src_model="account.move"/>
1475
1476         <record id="action_move_line_search" model="ir.actions.act_window">
1477             <field name="name">Journal Items</field>
1478             <field name="type">ir.actions.act_window</field>
1479             <field name="res_model">account.move.line</field>
1480             <field name="view_type">form</field>
1481             <field name="view_mode">tree,form</field>
1482             <field name="view_id" ref="view_move_line_tree"/>
1483             <field name="search_view_id" ref="view_account_move_line_filter"/>
1484         </record>
1485         <record id="action_move_line_search_view1" model="ir.actions.act_window.view">
1486             <field eval="10" name="sequence"/>
1487             <field name="view_mode">tree</field>
1488             <field name="view_id" ref="view_move_line_tree"/>
1489             <field name="act_window_id" ref="action_move_line_search"/>
1490         </record>
1491         <record id="action_move_line_search_view2" model="ir.actions.act_window.view">
1492             <field eval="11" name="sequence"/>
1493             <field name="view_mode">form</field>
1494             <field name="act_window_id" ref="action_move_line_search"/>
1495         </record>
1496
1497         <record id="view_bank_statement_reconcile_form" model="ir.ui.view">
1498             <field name="name">account.bank.statement.form</field>
1499             <field name="model">account.bank.statement</field>
1500             <field eval="30" name="priority"/>
1501             <field name="type">form</field>
1502             <field name="arch" type="xml">
1503                 <form string="Statement">
1504                     <group col="6" colspan="4">
1505                         <field name="name" select="1"/>
1506                         <field name="date" select="1"/>
1507                         <field name="journal_id" on_change="onchange_journal_id(journal_id)" select="1"/>
1508                         <field name="currency"/>
1509                         <field name="balance_start"/>
1510                         <field name="balance_end_real"/>
1511                     </group>
1512                     <notebook colspan="4">
1513                         <page string="Select entries">
1514                             <field colspan="4" domain="[('statement_id', '=', False), ('journal_id', '=', journal_id)]" name="move_line_ids" nolabel="1" widget="many2many"/>
1515                         </page>
1516                         <page string="Entry encoding">
1517                             <separator colspan="4" string="Entry Lines"/>
1518                             <field name="period_id"/>
1519                             <field colspan="4" name="line_ids" nolabel="1">
1520                                 <tree editable="bottom" string="Statement lines">
1521                                     <field name="date"/>
1522                                     <field name="name"/>
1523                                     <field name="type" on_change="onchange_type(partner_id, type)"/>
1524                                     <field name="partner_id" on_change="onchange_type(partner_id, type)"/>
1525                                     <field domain="[('journal_id', '=', parent.journal_id)]" name="account_id"/>
1526                                     <field name="amount"/>
1527                                     <field context="{'partner_id': partner_id, 'amount': amount, 'account_id': account_id, 'date':date}" name="reconcile_id"/>
1528                                 </tree>
1529                                 <form string="Statement lines">
1530                                     <field name="date"/>
1531                                     <field name="name"/>
1532                                     <field name="type" on_change="onchange_type(partner_id, type)"/>
1533                                     <field name="partner_id" on_change="onchange_type(partner_id, type)"/>
1534                                     <field domain="[('journal_id', '=', parent.journal_id)]" name="account_id"/>
1535                                     <field name="analytic_account_id" groups="analytic.group_analytic_accounting" />
1536                                     <field name="amount"/>
1537                                     <field context="{'partner_id': partner_id, 'amount': amount, 'account_id': account_id, 'date':date}" name="reconcile_id"/>
1538                                 </form>
1539                             </field>
1540                         </page>
1541                     </notebook>
1542                     <group col="7" colspan="4">
1543                         <field name="state"/>
1544                         <field name="balance_end"/>
1545                         <button name="button_cancel" states="confirm" string="Cancel" type="object" icon="gtk-cancel"/>
1546                         <button name="button_dummy" states="draft" string="Compute" icon="terp-stock_format-scientific"/>
1547                         <button name="button_confirm" states="draft" string="Confirm" type="object" icon="terp-camera_test"/>
1548                     </group>
1549                 </form>
1550             </field>
1551         </record>
1552         <record id="action_bank_statement_reconciliation_form" model="ir.actions.act_window">
1553             <field name="name">Statements reconciliation</field>
1554             <field name="res_model">account.bank.statement</field>
1555             <field name="view_type">form</field>
1556             <field name="view_mode">form,tree</field>
1557             <field name="search_view_id" ref="view_bank_statement_search"/>
1558             <field name="view_id" ref="view_bank_statement_reconcile_form"/>
1559         </record>
1560
1561         <act_window
1562             context="{'search_default_next_partner':1,'view_mode':True}"
1563             id="action_account_manual_reconcile" name="Journal Items"
1564             res_model="account.move.line"
1565             view_id="view_move_line_tree"/>
1566
1567
1568         <menuitem
1569              name="Manual Reconciliation" icon="STOCK_EXECUTE"
1570              action="action_account_manual_reconcile"
1571              id="menu_manual_reconcile"
1572              parent="account.periodical_processing_reconciliation"/>
1573
1574
1575         <act_window
1576             id="act_account_acount_move_line_open"
1577             name="Entries"
1578             context="{'search_default_account_id':[active_id], 'search_default_unreconciled':0}"
1579             res_model="account.move.line"
1580             src_model="account.account"/>
1581
1582         <act_window
1583             id="act_account_acount_move_line_open_unreconciled"
1584             name="Unreconciled Entries"
1585             res_model="account.move.line"
1586             context="{'search_default_account_id':[active_id], 'search_default_unreconciled':1,}"
1587             src_model="account.account"/>
1588
1589         <act_window domain="[('reconcile_id', '=', active_id)]" id="act_account_acount_move_line_reconcile_open" name="Reconciled entries" res_model="account.move.line" src_model="account.move.reconcile"/>
1590
1591
1592         <!--
1593     TODO:
1594         Print Journal (and change state)
1595         Close Journal (and verify that there is no draft Entry Lines)
1596 -->
1597
1598         <record id="view_journal_period_tree" model="ir.ui.view">
1599             <field name="name">account.journal.period.tree</field>
1600             <field name="model">account.journal.period</field>
1601             <field name="type">tree</field>
1602             <field name="arch" type="xml">
1603                 <tree colors="blue:state in ('draft');gray:state in ('done');black:state in ('printed')" string="Journals">
1604                     <field icon="icon" name="fiscalyear_id"/>
1605                     <field name="period_id"/>
1606                     <field name="journal_id"/>
1607                     <field name="state"/>
1608                     <field name="company_id" groups="base.group_multi_company"/>
1609                 </tree>
1610             </field>
1611         </record>
1612         <record id="action_account_journal_period_tree" model="ir.actions.act_window">
1613             <field name="name">Journals</field>
1614             <field name="res_model">account.journal.period</field>
1615             <field name="view_type">tree</field>
1616             <field name="help">You can look up individual account entries by searching for useful information. To search for account entries, open a journal, then select a record line.</field>
1617         </record>
1618
1619         <!--
1620         # Account Models
1621         -->
1622
1623         <record id="view_model_line_tree" model="ir.ui.view">
1624             <field name="name">account.model.line.tree</field>
1625             <field name="model">account.model.line</field>
1626             <field name="type">tree</field>
1627             <field name="arch" type="xml">
1628                 <tree string="Journal Entry Model Line" editable="bottom">
1629                     <field name="sequence"/>
1630                     <field name="name"/>
1631                     <field name="account_id"/>
1632                     <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1633                     <field name="partner_id"/>
1634                     <field name="debit"/>
1635                     <field name="credit"/>
1636                     <field name="date_maturity"/>
1637                 </tree>
1638             </field>
1639         </record>
1640
1641
1642         <record id="view_model_line_form" model="ir.ui.view">
1643             <field name="name">account.model.line.form</field>
1644             <field name="model">account.model.line</field>
1645             <field name="type">form</field>
1646             <field name="arch" type="xml">
1647                 <form string="Journal Entry Model Line">
1648                     <field colspan="4" name="name" select="1"/>
1649                     <field name="sequence"/>
1650                     <field name="account_id" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
1651                     <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1652                     <field name="partner_id"/>
1653                     <field name="debit" select="1"/>
1654                     <field name="credit" select="1"/>
1655                      <field name="quantity"/>
1656                     <field name="date_maturity"/>
1657                 </form>
1658             </field>
1659         </record>
1660
1661         <record id="view_model_form" model="ir.ui.view">
1662             <field name="name">account.model.form</field>
1663             <field name="model">account.model</field>
1664             <field name="type">form</field>
1665             <field name="arch" type="xml">
1666                 <form string="Journal Entry Model">
1667                     <field name="name"/>
1668                     <field name="journal_id"/>
1669                     <field name="company_id" widget='selection' groups="base.group_multi_company"/>
1670                     <field colspan="4" nolabel="1" name="lines_id" height="250" widget="one2many_list"/>
1671                     <separator string="Legend" colspan="4"/>
1672                     <field name="legend" colspan="4" nolabel="1"/>
1673                     <group col="1" colspan="4">
1674                         <button name="%(action_account_use_model_create_entry)d" string="Create entries" type="action" icon="gtk-execute"/>
1675                     </group>
1676                 </form>
1677             </field>
1678         </record>
1679
1680         <record id="view_model_tree" model="ir.ui.view">
1681             <field name="name">account.model.tree</field>
1682             <field name="model">account.model</field>
1683             <field name="type">tree</field>
1684             <field name="arch" type="xml">
1685                 <tree string="Journal Entry Model">
1686                     <field name="name"/>
1687                     <field name="journal_id"/>
1688                     <field name="company_id" groups="base.group_multi_company"/>
1689                 </tree>
1690             </field>
1691         </record>
1692
1693         <record id="view_model_search" model="ir.ui.view">
1694             <field name="name">account.model.search</field>
1695             <field name="model">account.model</field>
1696             <field name="type">search</field>
1697             <field name="arch" type="xml">
1698                 <search string="Journal Entry Model">
1699                   <group>
1700                     <filter string="Sale" icon="terp-camera_test" domain="[('journal_id.type', '=', 'sale')]"/>
1701                     <filter string="Purchase" icon="terp-purchase" domain="[('journal_id.type', '=', 'purchase')]"/>
1702                     <separator orientation="vertical"/>
1703                       <field name="name"/>
1704                       <field name="journal_id" widget="selection"/>
1705                       <field name="company_id" widget="selection" groups="base.group_multi_company"/>
1706                     </group>
1707                     <newline/>
1708                     <group expand="0" string="Group By...">
1709                       <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1710                     </group>
1711                 </search>
1712             </field>
1713         </record>
1714
1715         <record id="action_model_form" model="ir.actions.act_window">
1716             <field name="name">Recurring Models</field>
1717             <field name="res_model">account.model</field>
1718             <field name="view_type">form</field>
1719             <field name="view_mode">tree,form,search</field>
1720             <field name="search_view_id" ref="view_model_search"/>
1721         </record>
1722         <menuitem
1723             action="action_model_form" id="menu_action_model_form" sequence="5"
1724             parent="account.menu_configuration_misc" groups="base.group_extended,group_account_manager"/>
1725
1726         <!--
1727             # Payment Terms
1728         -->
1729
1730         <record id="view_payment_term_line_tree" model="ir.ui.view">
1731             <field name="name">account.payment.term.line.tree</field>
1732             <field name="model">account.payment.term.line</field>
1733             <field name="type">tree</field>
1734             <field name="arch" type="xml">
1735                 <tree string="Payment Term">
1736                     <field name="sequence"/>
1737                     <field name="name"/>
1738                     <field name="value"/>
1739                     <field name="value_amount"/>
1740                     <field name="days"/>
1741                     <field name="days2"/>
1742                 </tree>
1743             </field>
1744         </record>
1745
1746
1747         <record id="view_payment_term_line_form" model="ir.ui.view">
1748             <field name="name">account.payment.term.line.form</field>
1749             <field name="model">account.payment.term.line</field>
1750             <field name="type">form</field>
1751             <field name="arch" type="xml">
1752                 <form string="Payment Term">
1753                     <field name="name" select="1"/>
1754                     <field name="sequence"/>
1755                     <group colspan="2" col="4">
1756                         <separator string="Amount Computation" colspan="4"/>
1757                         <field name="value" colspan="4"/>
1758                         <field name="value_amount" colspan="4" attrs="{'readonly':[('value','=','balance')]}"/>
1759                     </group>
1760                     <group colspan="2" col="4">
1761                         <separator string="Due date Computation" colspan="4"/>
1762                         <field name="days" colspan="4"/>
1763                         <field name="days2" colspan="4"/>
1764                     </group>
1765                     <label string=""/>
1766                     <newline/>
1767                     <label string="Example: at 14 net days 2 percents, remaining amount at 30 days end of month." colspan="4"/>
1768                     <group colspan="2" col="2">
1769                         <label string="Line 1:" colspan="2"/>
1770                         <label string="  valuation: percent"/>
1771                         <label string="  number of days: 14"/>
1772                         <label string="  value amount: 0.02"/>
1773                         <label string="  day of the month: 0"/>
1774                     </group>
1775                     <newline/>
1776                     <group colspan="2" col="2">
1777                         <label string="Line 2:" colspan="2"/>
1778                         <label string="  valuation: balance"/>
1779                         <label string="  number of days: 30"/>
1780                         <label string="  value amount: n.a"/>
1781                         <label string="  day of the month= -1"/>
1782                     </group>
1783                 </form>
1784             </field>
1785         </record>
1786
1787         <record id="view_payment_term_search" model="ir.ui.view">
1788             <field name="name">account.payment.term.search</field>
1789             <field name="model">account.payment.term</field>
1790             <field name="type">search</field>
1791             <field name="arch" type="xml">
1792                 <search string="Payment Term">
1793                     <field name="name"/>
1794                     <field name="active"/>
1795                 </search>
1796             </field>
1797         </record>
1798
1799         <record id="view_payment_term_form" model="ir.ui.view">
1800             <field name="name">account.payment.term.form</field>
1801             <field name="model">account.payment.term</field>
1802             <field name="type">form</field>
1803             <field name="arch" type="xml">
1804                 <form string="Payment Term">
1805                     <separator colspan="4" string="Information"/>
1806                     <field name="name" select="1"/>
1807                     <field name="active" select="1"/>
1808                     <separator colspan="4" string="Description on invoices"/>
1809                     <field colspan="4" name="note" nolabel="1"/>
1810                     <separator colspan="4" string="Computation"/>
1811                     <field colspan="4" name="line_ids" nolabel="1"/>
1812                 </form>
1813             </field>
1814         </record>
1815
1816         <record id="action_payment_term_form" model="ir.actions.act_window">
1817             <field name="name">Payment Terms</field>
1818             <field name="res_model">account.payment.term</field>
1819             <field name="view_type">form</field>
1820             <field name="view_mode">tree,form</field>
1821             <field name="search_view_id" ref="view_payment_term_search"/>
1822         </record>
1823         <menuitem action="action_payment_term_form"
1824             id="menu_action_payment_term_form" parent="menu_configuration_misc"
1825             groups="group_account_manager"/>
1826
1827         <!--
1828         # Account Subscriptions
1829         -->
1830
1831         <record id="view_subscription_line_form" model="ir.ui.view">
1832             <field name="name">account.subscription.line.form</field>
1833             <field name="model">account.subscription.line</field>
1834             <field name="type">form</field>
1835             <field name="arch" type="xml">
1836                 <form string="Subscription lines">
1837                     <field name="date"/>
1838                     <field name="move_id"/>
1839                 </form>
1840             </field>
1841         </record>
1842
1843         <record id="view_subscription_line_tree" model="ir.ui.view">
1844             <field name="name">account.subscription.line.tree</field>
1845             <field name="model">account.subscription.line</field>
1846             <field name="type">tree</field>
1847             <field name="arch" type="xml">
1848                 <tree string="Subscription lines">
1849                     <field name="date"/>
1850                     <field name="move_id"/>
1851                 </tree>
1852             </field>
1853         </record>
1854
1855         <record id="view_subscription_tree" model="ir.ui.view">
1856             <field name="name">account.subscription.tree</field>
1857             <field name="model">account.subscription</field>
1858             <field name="type">tree</field>
1859             <field name="arch" type="xml">
1860                 <tree colors="blue:state in ('draft');gray:state in ('done');black:state in ('running')" string="Entry Subscription">
1861                     <field name="name"/>
1862                     <field name="model_id"/>
1863                     <field name="ref"/>
1864                     <field name="date_start"/>
1865                     <field name="state"/>
1866                 </tree>
1867             </field>
1868         </record>
1869
1870          <record id="view_subscription_search" model="ir.ui.view">
1871             <field name="name">account.subscription.search</field>
1872             <field name="model">account.subscription</field>
1873             <field name="type">search</field>
1874             <field name="arch" type="xml">
1875                 <search string="Entry Subscription">
1876                     <group col="8" colspan="4">
1877                         <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Subscription"/>
1878                         <filter icon="terp-camera_test" string="Running" domain="[('state','=','running')]" help="Running Subscription"/>
1879                         <separator orientation="vertical"/>
1880                         <field name="name"/>
1881                         <field name="model_id"/>
1882                         <field name="date_start"/>
1883                     </group>
1884                     <newline/>
1885                     <group expand="0" string="Group By...">
1886                         <filter string="Model" icon="terp-folder-orange" domain="[]" context="{'group_by':'model_id'}"/>
1887                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1888                     </group>
1889                 </search>
1890             </field>
1891         </record>
1892
1893         <record id="view_subscription_form" model="ir.ui.view">
1894             <field name="name">account.subscription.form</field>
1895             <field name="model">account.subscription</field>
1896             <field name="type">form</field>
1897             <field name="arch" type="xml">
1898                 <form string="Recurring">
1899                     <group col="6" colspan="4">
1900                         <field name="name" select="1"/>
1901                         <field name="model_id"/>
1902                         <field name="ref" select="1"/>
1903                     </group>
1904                     <group col="2" colspan="2">
1905                         <separator colspan="4" string="Starts on"/>
1906                         <field name="date_start" select="1"/>
1907                         <field name="period_total"/>
1908                     </group>
1909
1910                     <group col="2" colspan="2">
1911                         <separator colspan="4" string="Valid Up to"/>
1912                         <field name="period_nbr"/>
1913                         <field name="period_type"/>
1914                     </group>
1915
1916                     <group col="2" colspan="2">
1917                     </group>
1918                     <separator colspan="4" string="Subscription Lines"/>
1919                     <field colspan="4" name="lines_id" widget="one2many_list" nolabel="1"/>
1920
1921                     <group col="6" colspan="4">
1922                         <field name="state"/>
1923                         <button name="state_draft" states="done" string="Set to Draft" type="object"  icon="gtk-convert" />
1924                         <button name="compute" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific"/>
1925                         <button name="remove_line" states="running" string="Remove Lines" type="object" icon="gtk-remove"/>
1926                     </group>
1927                 </form>
1928             </field>
1929         </record>
1930         <record id="action_subscription_form" model="ir.actions.act_window">
1931             <field name="name">Recurring Lines</field>
1932             <field name="res_model">account.subscription</field>
1933             <field name="view_type">form</field>
1934             <field name="view_mode">tree,form</field>
1935             <field name="search_view_id" ref="view_subscription_search"/>
1936             <field name="help">A recurring entry is a payment related entry that occurs on a recurrent basis from a specific date corresponding to the signature of a contract or an agreement with a customer or a supplier. With Define Recurring Entries, you can create them in the system in order to automate their entries in the system.</field>
1937         </record>
1938         <menuitem
1939             name="Define Recurring Entries" action="action_subscription_form"
1940             groups="base.group_extended,group_account_manager,group_account_user"
1941             id="menu_action_subscription_form" sequence="1"
1942             parent="account.menu_finance_recurrent_entries"/>
1943
1944         <record id="action_subscription_form_running" model="ir.actions.act_window">
1945             <field name="name">Running Subscriptions</field>
1946             <field name="res_model">account.subscription</field>
1947             <field name="view_type">form</field>
1948             <field name="view_mode">tree,form</field>
1949             <field name="domain">[('state','=','running')]</field>
1950             <field name="filter" eval="True"/>
1951         </record>
1952
1953         <record id="action_subscription_form_new" model="ir.actions.act_window">
1954             <field name="name">New Subscription</field>
1955             <field name="res_model">account.subscription</field>
1956             <field name="view_type">form</field>
1957             <field name="view_mode">form,tree</field>
1958             <field name="view_id" ref="view_subscription_form"/>
1959         </record>
1960
1961         <record id="view_subscription_line_form_complete" model="ir.ui.view">
1962             <field name="name">account.subscription.line.form</field>
1963             <field name="model">account.subscription.line</field>
1964             <field name="type">form</field>
1965             <field eval="20" name="priority"/>
1966             <field name="arch" type="xml">
1967                 <form string="Subscription lines">
1968                     <field name="subscription_id"/>
1969                     <field name="date"/>
1970                     <field name="move_id"/>
1971                 </form>
1972             </field>
1973         </record>
1974
1975         <record id="action_move_line_tree1" model="ir.actions.act_window">
1976             <field name="name">Journal Items</field>
1977             <field name="res_model">account.move.line</field>
1978             <field name="view_type">form</field>
1979             <field name="view_mode">tree,form</field>
1980             <field name="domain">[('account_id','child_of', [active_id]),('state','&lt;&gt;','draft')]</field>
1981             <field name="context">{'account_id':active_id}</field>
1982         </record>
1983
1984         <record id="view_move_line_tax_tree" model="ir.ui.view">
1985             <field name="name">account.move.line.tax.tree</field>
1986             <field name="model">account.move.line</field>
1987             <field name="type">tree</field>
1988             <field eval="4" name="priority"/>
1989             <field name="arch" type="xml">
1990                 <tree colors="red:state in ('draft');black:state in ('valid')" string="Journal Items">
1991                     <field name="date"/>
1992                     <field name="move_id"/>
1993                     <field name="statement_id" string="St."/>
1994                     <field name="name"/>
1995                     <field name="partner_id"/>
1996                     <field name="account_id"/>
1997                     <field name="tax_code_id"/>
1998                     <field name="tax_amount"/>
1999                     <field name="debit" sum="Total debit"/>
2000                     <field name="credit" sum="Total credit"/>
2001                     <field name="account_tax_id"/>
2002                     <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
2003                     <field name="state"/>
2004                 </tree>
2005             </field>
2006         </record>
2007
2008         <record id="action_tax_code_line_open" model="ir.actions.act_window">
2009             <field name="name">Journal Items</field>
2010             <field name="res_model">account.move.line</field>
2011             <field name="view_type">form</field>
2012             <field name="view_mode">tree,form</field>
2013             <field name="view_id" ref="view_move_line_tax_tree"/>
2014             <field name="domain">[('tax_code_id','child_of',active_id),('state','&lt;&gt;','draft')]</field>
2015         </record>
2016         <record id="ir_open_tax_move_line" model="ir.values">
2017             <field name="key2">tree_but_open</field>
2018             <field name="model">account.tax.code</field>
2019             <field name="name">Tax Details</field>
2020             <field eval="'ir.actions.act_window,%d'%action_tax_code_line_open" name="value"/>
2021             <field eval="True" name="object"/>
2022         </record>
2023
2024
2025         <!--
2026     # Admin config
2027     -->
2028
2029         <act_window
2030            id="act_account_journal_2_account_bank_statement"
2031            name="Bank statements"
2032            context="{'search_default_journal_id':active_id,}"
2033            res_model="account.bank.statement"
2034            src_model="account.journal"/>
2035
2036         <act_window
2037            id="act_account_journal_2_account_move_line"
2038            name="Journal Items"
2039            context="{'search_default_journal_id':active_id,}"
2040            res_model="account.move.line"
2041            src_model="account.journal"/>
2042
2043         <act_window context="{'search_default_reconcile_id':False, 'search_default_partner_id':[active_id]}" domain="[('account_id.reconcile', '=', True),('account_id.type', 'in', ['receivable', 'payable'])]" id="act_account_partner_account_move_all" name="Receivables &amp; Payables" res_model="account.move.line" src_model="res.partner" groups="base.group_extended"/>
2044
2045         <act_window context="{'search_default_partner_id':[active_id]}" id="act_account_partner_account_move" name="Journal Items" res_model="account.move.line" src_model="res.partner"/>
2046
2047         <record id="view_account_addtmpl_wizard_form" model="ir.ui.view">
2048             <field name="name">Create Account</field>
2049             <field name="model">account.addtmpl.wizard</field>
2050             <field name="type">form</field>
2051             <field name="arch" type="xml">
2052                 <form string="Create Account">
2053                     <separator col="4" colspan="4" string="Create an Account based on this template"/>
2054                     <field name="cparent_id"/>
2055                     <newline/>
2056                     <group col="2" colspan="2">
2057                         <button icon="gtk-cancel" special="cancel" string="Cancel" name="action_cancel" type="object"/>
2058                         <button icon="gtk-ok" name="action_create" string="Add" type="object"/>
2059                     </group>
2060                 </form>
2061             </field>
2062         </record>
2063
2064         <act_window domain="[]" id="action_account_addtmpl_wizard_form"
2065             name="Create Account"
2066             target="new"
2067             res_model="account.addtmpl.wizard"
2068             context="{'tmpl_ids': active_id}"
2069             src_model="account.account.template"
2070             view_type="form" view_mode="form"/>
2071
2072         <!-- Account Templates -->
2073         <menuitem
2074             id="account_template_folder"
2075             name="Templates"
2076             parent="menu_finance_accounting"
2077             groups="base.group_multi_company,group_account_manager"/>
2078         <menuitem
2079             id="account_template_taxes"
2080             name="Taxes"
2081             parent="account_template_folder"
2082             groups="base.group_multi_company,group_account_manager" sequence="2"/>
2083         <menuitem
2084             id="account_template_accounts"
2085             name="Accounts"
2086             parent="account_template_folder"
2087             groups="base.group_multi_company,group_account_manager" sequence="1"/>
2088
2089
2090         <record id="view_account_template_form" model="ir.ui.view">
2091             <field name="name">account.account.template.form</field>
2092             <field name="model">account.account.template</field>
2093             <field name="type">form</field>
2094             <field name="arch" type="xml">
2095                 <form string="Account Template">
2096                     <notebook>
2097                         <page string="General Information">
2098                             <field name="name"/>
2099                             <field name="code"/>
2100                             <newline/>
2101                             <field name="parent_id"/>
2102                             <field name="shortcut"/>
2103                             <field name="type"/>
2104                             <field name="user_type"/>
2105
2106                             <field name="currency_id"/>
2107                             <field name="reconcile"/>
2108                             <separator string="Default taxes" colspan="4"/>
2109                             <field name="tax_ids" colspan="4" nolabel="1"/>
2110                         </page>
2111                         <page string="Notes">
2112                             <field colspan="4" name="note" nolabel="1"/>
2113                         </page>
2114                     </notebook>
2115                 </form>
2116             </field>
2117         </record>
2118
2119         <record id="view_account_template_tree" model="ir.ui.view">
2120             <field name="name">account.account.template.tree</field>
2121             <field name="model">account.account.template</field>
2122             <field name="type">tree</field>
2123             <field name="arch" type="xml">
2124                 <tree string="Account Template">
2125                     <field name="code"/>
2126                     <field name="name"/>
2127                     <field name="type" invisible="1"/>
2128                     <field name="user_type" invisible="1"/>
2129                 </tree>
2130             </field>
2131         </record>
2132
2133         <record id="view_account_template_search" model="ir.ui.view">
2134             <field name="name">account.account.template.search</field>
2135             <field name="model">account.account.template</field>
2136             <field name="type">search</field>
2137             <field name="arch" type="xml">
2138                 <search string="Search Account Templates">
2139                     <group>
2140                         <filter icon="terp-sale" string="Receivale Accounts" domain="[('type','=','receivable')]"/>
2141                          <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
2142                          <separator orientation="vertical"/>
2143                          <field name="code"/>
2144                         <field name="parent_id"/>
2145                         <field name="type"/>
2146                         <field name="user_type"/>
2147                     </group>
2148                     <newline/>
2149                     <group expand="0" string="Group By...">
2150                         <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
2151                         <filter string="Account Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'user_type'}"/>
2152                    </group>
2153                 </search>
2154             </field>
2155         </record>
2156
2157         <record id="action_account_template_form" model="ir.actions.act_window">
2158             <field name="name">Account Templates</field>
2159             <field name="res_model">account.account.template</field>
2160             <field name="view_type">form</field>
2161             <field name="view_mode">tree,form,search</field>
2162             <field name="search_view_id" ref="view_account_template_search"/>
2163         </record>
2164
2165         <menuitem action="action_account_template_form" id="menu_action_account_template_form" parent="account_template_accounts"/>
2166
2167         <!-- Chart of Accounts Templates -->
2168
2169         <record id="view_account_chart_template_form" model="ir.ui.view">
2170             <field name="name">account.chart.template.form</field>
2171             <field name="model">account.chart.template</field>
2172             <field name="type">form</field>
2173             <field name="arch" type="xml">
2174                 <form string="Chart of Accounts Template">
2175                     <group>
2176                     <field name="name"/>
2177                     <field name="account_root_id"/>
2178                     <field name="bank_account_view_id"/>
2179                     <field name="tax_code_root_id"/>
2180                     </group>
2181                     <field name="tax_template_ids" colspan="4" readonly="1" nolabel="1"/>
2182                     <separator string="Properties" colspan="4"/>
2183                     <group>
2184                     <field name="property_account_receivable"/>
2185                     <field name="property_account_payable"/>
2186                     <field name="property_account_expense_categ" />
2187                     <field name="property_account_income_categ"/>
2188                     <field name="property_account_expense"/>
2189                     <field name="property_account_income"/>
2190                     <field name="property_reserve_and_surplus_account"/>
2191                     </group>
2192                 </form>
2193             </field>
2194         </record>
2195         <record id="view_account_chart_template_seacrh" model="ir.ui.view">
2196             <field name="name">account.chart.template.search</field>
2197             <field name="model">account.chart.template</field>
2198             <field name="type">search</field>
2199             <field name="arch" type="xml">
2200                 <search string="Search Chart of Account Templates">
2201                       <group>
2202                           <field name="name"/>
2203                         <field name="account_root_id"/>
2204                         <field name="bank_account_view_id"/>
2205                       </group>
2206                       <newline/>
2207                       <group expand="0" string="Group By...">
2208                         <filter string="Root Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'account_root_id'}"/>
2209                         <filter string="Bank Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'bank_account_view_id'}"/>
2210                         <separator orientation="vertical"/>
2211                         <filter string="Receivable Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_receivable'}"/>
2212                         <filter string="Payable Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_payable'}"/>
2213                         <separator orientation="vertical"/>
2214                         <filter string="Income Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_income_categ'}"/>
2215                         <filter string="Expense Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_expense_categ'}"/>
2216                       </group>
2217                 </search>
2218             </field>
2219         </record>
2220         <record id="view_account_chart_template_tree" model="ir.ui.view">
2221             <field name="name">account.chart.template.tree</field>
2222             <field name="model">account.chart.template</field>
2223             <field name="type">tree</field>
2224             <field name="arch" type="xml">
2225                 <tree string="Chart of Accounts Template">
2226                     <field name="name"/>
2227                     <field name="account_root_id"/>
2228                     <field name="tax_code_root_id"/>
2229                     <field name="bank_account_view_id"/>
2230                     <field name="property_account_receivable" invisible="1"/>
2231                     <field name="property_account_payable" invisible="1"/>
2232                     <field name="property_account_expense_categ" invisible="1"/>
2233                     <field name="property_account_income_categ" invisible="1"/>
2234                 </tree>
2235             </field>
2236         </record>
2237         <record id="action_account_chart_template_form" model="ir.actions.act_window">
2238             <field name="name">Chart of Accounts Templates</field>
2239             <field name="res_model">account.chart.template</field>
2240             <field name="view_type">form</field>
2241             <field name="view_mode">tree,form,search</field>
2242         </record>
2243
2244         <menuitem action="action_account_chart_template_form" id="menu_action_account_chart_template_form" parent="account_template_accounts" sequence="1"/>
2245
2246         <!-- Account Tax Templates -->
2247
2248         <record id="view_account_tax_template_form" model="ir.ui.view">
2249             <field name="name">account.tax.template.form</field>
2250             <field name="model">account.tax.template</field>
2251             <field name="type">form</field>
2252             <field name="arch" type="xml">
2253                 <form string="Account Tax Template">
2254                     <group colspan="4">
2255                         <field name="name"/>
2256                         <field name="description"/>
2257                         <newline/>
2258                         <field name="chart_template_id"/>
2259                         <field name="type"/>
2260                         <field name="type_tax_use"/>
2261                     </group>
2262                     <notebook colspan="4">
2263                         <page string="Tax Definition">
2264                             <field name="applicable_type"/>
2265                             <field name="amount" attrs="{'readonly':[('type','=','none'),('type','=','code')]}"/>
2266                             <field groups="base.group_extended" name="include_base_amount"/>
2267                             <field groups="base.group_extended" name="domain"/>
2268                             <newline/>
2269                             <field name="account_collected_id"/>
2270                             <label colspan="2" nolabel="1" string="Keep empty to use the income account"/>
2271                             <field name="account_paid_id"/>
2272                             <label colspan="2" nolabel="1" string="Keep empty to use the expense account"/>
2273                             <field groups="base.group_extended" name="child_depend"/>
2274                             <field groups="base.group_extended" name="sequence"/>
2275                         </page>
2276                         <page string="Tax Declaration">
2277                             <separator colspan="4" string="Invoices"/>
2278                             <field name="base_code_id"/>
2279                             <field name="base_sign"/>
2280                             <field name="tax_code_id"/>
2281                             <field name="tax_sign"/>
2282
2283                             <separator colspan="4" string="Credit Notes"/>
2284                             <field name="ref_base_code_id"/>
2285                             <field name="ref_base_sign"/>
2286                             <field name="ref_tax_code_id"/>
2287                             <field name="ref_tax_sign"/>
2288                         </page>
2289                         <page groups="base.group_extended" string="Special Computation">
2290                             <separator colspan="4" string="Compute Code (if type=code)"/>
2291                             <field colspan="4" name="python_compute" nolabel="1" attrs="{'readonly':[('type','!=','code')]}"/>
2292                             <separator colspan="4" string="Compute Code for Taxes included prices"/>
2293                             <field colspan="4" name="python_compute_inv" nolabel="1"/>
2294                             <separator colspan="4" string="Applicable Code (if type=code)"/>
2295                             <field colspan="4" name="python_applicable" nolabel="1" attrs="{'readonly':[('applicable_type','=','true')]}"/>
2296                         </page>
2297                     </notebook>
2298                 </form>
2299             </field>
2300         </record>
2301         <record id="view_account_tax_template_tree" model="ir.ui.view">
2302             <field name="name">account.tax.template.tree</field>
2303             <field name="model">account.tax.template</field>
2304             <field name="type">tree</field>
2305             <field name="arch" type="xml">
2306                 <tree string="Account Tax Template">
2307                     <field name="name" />
2308                     <field name="description"/>
2309                 </tree>
2310             </field>
2311         </record>
2312         <record id="view_account_tax_template_search" model="ir.ui.view">
2313             <field name="name">account.tax.template.search</field>
2314             <field name="model">account.tax.template</field>
2315             <field name="type">search</field>
2316             <field name="arch" type="xml">
2317                 <search string="Search Tax Templates">
2318                     <group col="10" colspan="4">
2319                         <filter icon="terp-sale" string="Sale" domain="[('type_tax_use','=','sale')]" help="Taxes used in Sales"/>
2320                         <filter icon="terp-purchase" string="Purchase" domain="[('type_tax_use','=','purchase')]" help="Taxes used in Purchases"/>
2321                         <separator orientation="vertical"/>
2322                         <field name="name"/>
2323                         <field name="description"/>
2324                         <field name="chart_template_id"/>
2325                     </group>
2326                 </search>
2327             </field>
2328         </record>
2329
2330         <record id="action_account_tax_template_form" model="ir.actions.act_window">
2331             <field name="name">Tax Templates</field>
2332             <field name="res_model">account.tax.template</field>
2333             <field name="view_type">form</field>
2334             <field name="view_mode">tree,form</field>
2335             <field name="search_view_id" ref="view_account_tax_template_search"/>
2336         </record>
2337
2338         <menuitem action="action_account_tax_template_form" id="menu_action_account_tax_template_form" parent="account_template_taxes" sequence="13"/>
2339
2340         <!-- Account Tax Code Templates -->
2341         <record id="view_tax_code_template_tree" model="ir.ui.view">
2342             <field name="name">account.tax.code.template.tree</field>
2343             <field name="model">account.tax.code.template</field>
2344             <field name="type">tree</field>
2345             <field name="field_parent">child_ids</field>
2346             <field name="arch" type="xml">
2347                 <tree string="Account Tax Code Template" toolbar="1">
2348                     <field name="name"/>
2349                     <field name="code"/>
2350                     <field name="parent_id" invisible="1"/>
2351                 </tree>
2352             </field>
2353         </record>
2354
2355         <record id="view_tax_code_template_search" model="ir.ui.view">
2356             <field name="name">account.tax.code.template.search</field>
2357             <field name="model">account.tax.code.template</field>
2358             <field name="type">search</field>
2359             <field name="arch" type="xml">
2360                 <search string="Search tax template">
2361                     <group>
2362                         <field name="name"/>
2363                         <field name="code"/>
2364                         <field name="parent_id"/>
2365                     </group>
2366                     <newline/>
2367                     <group expand="0" string="Group By...">
2368                         <filter string="Parent Code" icon="terp-folder-orange" domain="[]" context="{'group_by':'parent_id'}"/>
2369                     </group>
2370                 </search>
2371             </field>
2372         </record>
2373
2374         <record id="view_tax_code_template_form" model="ir.ui.view">
2375             <field name="name">account.tax.code.template.form</field>
2376             <field name="model">account.tax.code.template</field>
2377             <field name="type">form</field>
2378             <field name="arch" type="xml">
2379                 <form string="Account Tax Code Template">
2380                     <field name="name" select="1"/>
2381                     <field name="code" select="1"/>
2382                     <field name="parent_id" select="1"/>
2383                     <field name="sign"/>
2384                     <newline/>
2385                     <separator string="Description" colspan="4"/>
2386                     <field colspan="4" name="info" nolabel="1"/>
2387                 </form>
2388             </field>
2389         </record>
2390
2391         <record id="action_account_tax_code_template_form" model="ir.actions.act_window">
2392             <field name="name">Tax Code Templates</field>
2393             <field name="res_model">account.tax.code.template</field>
2394             <field name="view_type">form</field>
2395             <field name="view_mode">tree,form,search</field>
2396             <field name="search_view_id" ref="view_tax_code_template_search"/>
2397         </record>
2398         <menuitem action="action_account_tax_code_template_form" id="menu_action_account_tax_code_template_form" parent="account_template_taxes" sequence="14"/>
2399
2400
2401         <!--  Wizard for Multi Charts of Accounts -->
2402
2403         <record id="view_wizard_multi_chart" model="ir.ui.view">
2404             <field name="name">Generate Chart of Accounts from a Chart Template</field>
2405             <field name="model">wizard.multi.charts.accounts</field>
2406             <field name="type">form</field>
2407             <field name="inherit_id" ref="base.res_config_view_base"/>
2408             <field name="arch" type="xml">
2409               <data>
2410                 <form position="attributes">
2411                   <attribute name="string">Accounting Application Configuration</attribute>
2412                 </form>
2413                 <separator string="title" position="attributes">
2414                 <attribute name="string"
2415                        >Generate Your Accounting Chart from a Chart Template</attribute>
2416                   </separator>
2417                   <xpath expr="//label[@string='description']" position="attributes">
2418                     <attribute name="string">This will automatically configure your chart of accounts, bank accounts, taxes and journals according to the selected template</attribute>
2419                     <attribute name="width">150</attribute>
2420                   </xpath>
2421                   <xpath expr='//separator[@string="vsep"]' position='attributes'>
2422                           <attribute name='rowspan'>15</attribute>
2423                           <attribute name='string'></attribute>
2424                   </xpath>
2425                 <group string="res_config_contents" position="replace">
2426                     <field name="company_id" widget="selection"/>
2427                     <field name ="code_digits" groups="base.group_extended"/>
2428                     <field name="chart_template_id" widget="selection" on_change="onchange_chart_template_id(chart_template_id)"/>
2429                     <field name ="seq_journal" groups="base.group_extended"/>
2430                   <field name="sale_tax" domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"/>
2431                   <field name="purchase_tax" domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"/>
2432                     <field colspan="4" mode="tree" name="bank_accounts_id" nolabel="1" widget="one2many_list">
2433                         <form string="Bank Information">
2434                             <field name="acc_name"/>
2435                             <field name="account_type"/>
2436                             <field name="currency_id" widget="selection" groups="base.group_extended"/>
2437                         </form>
2438                         <tree editable="bottom" string="Bank Information">
2439                             <field name="acc_name"/>
2440                             <field name="account_type"/>
2441                             <field name="currency_id" widget="selection" groups="base.group_extended"/>
2442                         </tree>
2443                     </field>
2444                 </group>
2445               </data>
2446             </field>
2447         </record>
2448
2449         <record id="action_wizard_multi_chart" model="ir.actions.act_window">
2450             <field name="name">Generate Chart of Accounts from a Chart Template</field>
2451             <field name="type">ir.actions.act_window</field>
2452             <field name="res_model">wizard.multi.charts.accounts</field>
2453             <field name="view_id" ref="view_wizard_multi_chart"/>
2454             <field name="view_type">form</field>
2455             <field name="view_mode">form</field>
2456             <field name="target">new</field>
2457         </record>
2458         <record id="ir_actions_server_action_wizard_multi_chart" model="ir.actions.server">
2459             <field name="type">ir.actions.server</field>
2460             <field name="condition">True</field>
2461             <field name="state">code</field>
2462             <field name="model_id" ref="base.model_ir_actions_todo"/>
2463             <field eval="5" name="sequence"/>
2464             <field name="code">
2465 act_window_ids = self.pool.get('ir.actions.act_window').search(cr, uid,[('name', 'in', ('Accounting Chart Configuration', 'Generate Chart of Accounts from a Chart Template'))], context=context)
2466 todo_ids = self.pool.get('ir.actions.todo').search(cr, uid, [('action_id', 'in', act_window_ids)], context=context)
2467 self.pool.get('ir.actions.todo').write(cr, uid, todo_ids, {'state':'open'}, context=context)
2468 action = self.pool.get('res.config').next(cr, uid, [], context)
2469 </field>
2470            <field name="name">New Company Financial Setting</field>
2471         </record>
2472
2473
2474         <record id="menu_act_ir_actions_bleble" model="ir.ui.menu">
2475             <field name="name">New Company Financial Setting</field>
2476             <field eval="1" name="sequence"/>
2477             <field name="parent_id" ref="account.menu_finance_accounting"/>
2478             <field name="icon">STOCK_EXECUTE</field>
2479             <field name="action" ref="ir_actions_server_action_wizard_multi_chart"/>
2480         </record>
2481
2482         <record id="account_account_graph" model="ir.ui.view">
2483             <field name="name">account.account.graph</field>
2484             <field name="model">account.account</field>
2485             <field name="type">graph</field>
2486             <field name="arch" type="xml">
2487                 <graph string="Account Statistics" type="bar">
2488                     <field name="name"/>
2489                     <field name="balance" operator="+"/>
2490                 </graph>
2491             </field>
2492          </record>
2493
2494          <!-- Fiscal Position Templates -->
2495
2496         <record id="view_account_position_template_search" model="ir.ui.view">
2497             <field name="name">account.fiscal.position.template.search</field>
2498             <field name="model">account.fiscal.position.template</field>
2499             <field name="type">search</field>
2500             <field name="arch" type="xml">
2501                 <search string="Fiscal Position">
2502                     <field name="name"/>
2503                 </search>
2504             </field>
2505         </record>
2506
2507         <record id="view_account_position_template_form" model="ir.ui.view">
2508             <field name="name">account.fiscal.position.template.form</field>
2509             <field name="model">account.fiscal.position.template</field>
2510             <field name="type">form</field>
2511             <field name="arch" type="xml">
2512                 <form string="Fiscal Position Template">
2513                     <field name="name"/>
2514                     <field name="chart_template_id"/>
2515                     <newline/>
2516                     <field name="tax_ids" colspan="4" nolabel="1">
2517                         <tree string="Taxes Mapping" editable="bottom">
2518                             <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2519                             <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2520                         </tree>
2521                         <form string="Taxes Mapping">
2522                             <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2523                             <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2524                         </form>
2525                     </field>
2526                     <field name="account_ids" colspan="4" nolabel="1">
2527                         <tree string="Accounts Mapping" editable="bottom">
2528                             <field name="account_src_id"/>
2529                             <field name="account_dest_id"/>
2530                         </tree>
2531                         <form string="Accounts Mapping">
2532                             <field name="account_src_id"/>
2533                             <field name="account_dest_id"/>
2534                         </form>
2535                     </field>
2536                 </form>
2537             </field>
2538         </record>
2539         <record id="view_account_position_template_tree" model="ir.ui.view">
2540             <field name="name">account.fiscal.position.template.tree</field>
2541             <field name="model">account.fiscal.position.template</field>
2542             <field name="type">tree</field>
2543             <field name="arch" type="xml">
2544                 <tree string="Fiscal Position">
2545                     <field name="name"/>
2546                 </tree>
2547             </field>
2548         </record>
2549
2550         <record id="action_account_fiscal_position_template_form" model="ir.actions.act_window">
2551             <field name="name">Fiscal Position Templates</field>
2552             <field name="res_model">account.fiscal.position.template</field>
2553             <field name="view_type">form</field>
2554             <field name="view_mode">tree,form</field>
2555             <field name="search_view_id" ref="view_account_position_template_search"/>
2556         </record>
2557
2558         <menuitem
2559             action="action_account_fiscal_position_template_form"
2560             id="menu_action_account_fiscal_position_form_template"
2561             parent="account_template_taxes" sequence="20"/>
2562
2563         <!-- Cash Statement -->
2564         <record id="view_cash_statement_tree" model="ir.ui.view">
2565             <field name="name">account.bank.statement.tree</field>
2566             <field name="model">account.bank.statement</field>
2567             <field name="type">tree</field>
2568             <field name="arch" type="xml">
2569                 <tree colors="red:balance_end_real!=balance_end;blue:state=='draft' and (balance_end_real==balance_end);black:state in ('open')" string="Statement">
2570                     <field name="name"/>
2571                     <field name="date"/>
2572                     <field name="period_id"/>
2573                     <field name="journal_id"/>
2574                     <field name="balance_start"/>
2575                     <field name="balance_end_real"/>
2576                     <field name="balance_end"/>
2577                     <field name="state"/>
2578                     <button type="object" string="Cancel" name="button_cancel" states="confirm" icon="gtk-cancel"/>
2579                     <button type="object" string="Open" name="button_open" states="draft" icon="terp-camera_test"/>
2580                     <button type="object" string="Confirm" name="button_confirm_bank" states="open" icon="terp-gtk-go-back-rtl"/>
2581                 </tree>
2582             </field>
2583         </record>
2584         <record id="view_bank_statement_form2" model="ir.ui.view">
2585             <field name="name">account.bank.statement.form</field>
2586             <field name="model">account.bank.statement</field>
2587             <field name="type">form</field>
2588             <field name="arch" type="xml">
2589                 <form string="Statement">
2590                     <group col="6" colspan="4">
2591                         <field name="name" select="1"/>
2592                         <field name="company_id" select="1" groups="base.group_multi_company"/>
2593                         <field name="journal_id" on_change="onchange_journal_id(journal_id)" domain="[('type','=','cash')]" select="1" widget="selection"/>
2594                         <field name="user_id" select="1" readonly="1"/>
2595                         <field name="period_id" select="1"/>
2596                         <field name="currency" invisible="1"/>
2597                     </group>
2598                     <notebook colspan="4">
2599                         <page string="Cash Transactions" attrs="{'invisible': [('state','=','draft')]}">
2600                             <field colspan="4" name="line_ids" nolabel="1">
2601                                 <tree editable="bottom" string="Statement lines">
2602                                     <field name="sequence" invisible="1"/>
2603                                     <field name="date" groups="base.group_extended"/>
2604                                     <field name="name"/>
2605                                     <field name="ref"/>
2606                                     <field name="partner_id" on_change="onchange_type(partner_id, type)"/>
2607                                     <field name="type" on_change="onchange_type(partner_id, type)"/>
2608                                     <field domain="[('journal_id','=',parent.journal_id)]" name="account_id"/>
2609                                     <field name="analytic_account_id" groups="analytic.group_analytic_accounting" />
2610                                     <field name="amount"/>
2611                                 </tree>
2612                                 <form string="Statement lines">
2613                                     <field name="date"/>
2614                                     <field name="name"/>
2615                                     <field name="type" on_change="onchange_type(partner_id, type)"/>
2616                                     <field name="partner_id" on_change="onchange_type(partner_id, type)"/>
2617                                     <field domain="[('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view')]" name="account_id"/>
2618                                     <field name="analytic_account_id" groups="analytic.group_analytic_accounting" />
2619                                     <field name="amount"/>
2620                                     <field name="ref"/>
2621                                     <field name="sequence"/>
2622                                     <separator colspan="4" string="Notes"/>
2623                                     <field colspan="4" name="note" nolabel="1"/>
2624                                 </form>
2625                             </field>
2626                         </page>
2627                         <page string="CashBox">
2628                             <group col="2" colspan="2" expand="1">
2629                                 <field name="starting_details_ids" nolabel="1" colspan="2" attrs="{'readonly':[('state','!=','draft')]}">
2630                                     <tree string = "Opening Balance" editable="bottom">
2631                                         <field name="pieces"/>
2632                                         <field name="number" on_change="on_change_sub(pieces,number, parent.balance_end)"/>
2633                                         <field name="subtotal" sum="Total"/>
2634                                     </tree>
2635                                     <form string = "Opening Balance">
2636                                         <field name="pieces"/>
2637                                         <field name="number" on_change="on_change_sub(pieces,number, parent.balance_end)"/>
2638                                         <field name="subtotal"/>
2639                                     </form>
2640                                 </field>
2641                             </group>
2642                             <group col="2" colspan="2" expand="1">
2643                                 <field name="ending_details_ids" nolabel="1" colspan="2" attrs="{'readonly':[('state','!=','open')]}">
2644                                     <tree string = "Closing Balance" editable="bottom">
2645                                         <field name="pieces"/>
2646                                         <field name="number" on_change="on_change_sub(pieces,number, parent.balance_end)"/>
2647                                         <field name="subtotal" sum="Total"/>
2648                                     </tree>
2649                                     <form string = "Closing Balance">
2650                                         <field name="pieces"/>
2651                                         <field name="number" on_change="on_change_sub(pieces,number, parent.balance_end)"/>
2652                                         <field name="subtotal"/>
2653                                     </form>
2654                                 </field>
2655                             </group>
2656                         </page>
2657                         <page string="Journal Entries" attrs="{'invisible': [('state','!=','confirm')]}">
2658                             <field colspan="4" name="move_line_ids" nolabel="1" string="Journal Entries"/>
2659                         </page>
2660                     </notebook>
2661                     <group col="6" colspan="4">
2662                         <group col="2" colspan="2">
2663                             <separator string="Dates" colspan="4"/>
2664                             <field name="date" select="1" attrs="{'readonly':[('state','!=','draft')]}"  on_change="onchange_date(date)"/>
2665                             <field name="closing_date" select="1" readonly="1"/>
2666                         </group>
2667                         <group col="2" colspan="2">
2668                             <separator string="Opening Balance" colspan="4"/>
2669                             <field name="balance_start" readonly="1" string="Opening Balance"/>
2670                             <field name="total_entry_encoding"/>
2671                         </group>
2672                         <group col="2" colspan="2">
2673                             <separator string="Closing Balance" colspan="4"/>
2674                             <field name="balance_end" string="Calculated Balance"/>
2675                             <field name="balance_end_cash" string="CashBox Balance"/>
2676                         </group>
2677                     </group>
2678                     <group col="8" colspan="4">
2679                         <field name="state" colspan="4"/>
2680                         <button name="button_cancel" states="confirm,open" string="Cancel" icon="terp-gtk-stop" type="object" groups="base.group_extended"/>
2681                         <button name="button_confirm_cash" states="open" string="Close CashBox" icon="terp-dialog-close" type="object"/>
2682                         <button name="button_open" states="draft" string="Open CashBox" icon="gtk-go-forward" type="object"/>
2683                     </group>
2684                 </form>
2685             </field>
2686         </record>
2687         <record id="account_cash_statement_graph" model="ir.ui.view">
2688             <field name="name">account.bank.statement.graph</field>
2689             <field name="model">account.bank.statement</field>
2690             <field name="type">graph</field>
2691             <field name="arch" type="xml">
2692                 <graph string="Account Statistics" type="bar">
2693                     <field name="date"/>
2694                     <field name="balance_start" operator="+"/>
2695                     <field name="balance_end" operator="+"/>
2696                 </graph>
2697             </field>
2698          </record>
2699         <record id="action_view_bank_statement_tree" model="ir.actions.act_window">
2700             <field name="name">Cash Registers</field>
2701             <field name="type">ir.actions.act_window</field>
2702             <field name="res_model">account.bank.statement</field>
2703             <field name="view_type">form</field>
2704             <field name="view_mode">tree,form,graph</field>
2705             <field name="view_id" ref="view_cash_statement_tree"/>
2706             <field name="search_view_id" ref="view_account_bank_statement_filter"/>
2707             <field name="domain">[('journal_id.type', '=', 'cash')]</field>
2708             <field name="context">{'journal_type':'cash'}</field>
2709             <field name="help">Cash Register allows you to manage cash entries in your cash journals.</field>
2710         </record>
2711         <record model="ir.actions.act_window.view" id="act_cash_statement1_all">
2712             <field name="sequence" eval="1"/>
2713             <field name="view_mode">tree</field>
2714             <field name="view_id" ref="view_cash_statement_tree"/>
2715             <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2716         </record>
2717         <record model="ir.actions.act_window.view" id="act_cash_statement2_all">
2718             <field name="sequence" eval="1"/>
2719             <field name="view_mode">form</field>
2720             <field name="view_id" ref="view_bank_statement_form2"/>
2721             <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2722         </record>
2723         <record model="ir.actions.act_window.view" id="act_cash_statement3_all">
2724             <field name="sequence" eval="1"/>
2725             <field name="view_mode">graph</field>
2726             <field name="view_id" ref="account_cash_statement_graph"/>
2727             <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2728         </record>
2729         <menuitem action="action_view_bank_statement_tree" id="journal_cash_move_lines" parent="menu_finance_bank_and_cash"
2730             groups="group_account_user,group_account_manager"/>
2731
2732     </data>
2733 </openerp>