1 <?xml version="1.0" encoding="utf-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">
16 <button name="create_period" states="draft" string="Create Monthly Periods" type="object" class="oe_highlight"/>
17 <button name="create_period3" states="draft" string="Create 3 Months Periods" type="object" class="oe_highlight"/>
18 <field name="state" widget="statusbar" nolabel="1" />
24 <field name="company_id" groups="base.group_multi_company"/>
25 <field name="end_journal_period_id"/>
28 <field name="date_start"/>
29 <field name="date_stop"/>
32 <field colspan="4" name="period_ids" nolabel="1" widget="one2many_list">
33 <form string="Period" version="7.0">
37 <field name="date_start"/>
38 <field name="date_stop"/>
39 <field name="special"/>
40 <field name="state" invisible="1"/>
47 <record id="view_account_fiscalyear_tree" model="ir.ui.view">
48 <field name="name">account.fiscalyear.tree</field>
49 <field name="model">account.fiscalyear</field>
50 <field name="type">tree</field>
51 <field name="arch" type="xml">
52 <tree colors="blue:state == 'draft';gray:state == 'done' " string="Fiscalyear">
55 <field name="company_id" groups="base.group_multi_company"/>
60 <record id="view_account_fiscalyear_search" model="ir.ui.view">
61 <field name="name">account.fiscalyear.search</field>
62 <field name="model">account.fiscalyear</field>
63 <field name="type">search</field>
64 <field name="arch" type="xml">
65 <search string="Search Fiscalyear">
66 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Fiscal Year"/>
67 <filter string="Open" domain="[('state','=','draft')]" icon="terp-camera_test"/>
68 <filter string="Closed" domain="[('state','=','done')]" icon="terp-dialog-close"/>
70 <group expand="0" string="Group By...">
71 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
76 <record id="action_account_fiscalyear_form" model="ir.actions.act_window">
77 <field name="name">Fiscal Years</field>
78 <field name="res_model">account.fiscalyear</field>
79 <field name="view_type">form</field>
80 <field name="view_mode">tree,form</field>
81 <field name="help" type="html">
82 <p class="oe_view_nocontent_create">
83 Click to start a new fiscal year.
85 Define your company's financial year according to your needs. A
86 financial year is a period at the end of which a company's
87 accounts are made up (usually 12 months). The financial year is
88 usually referred to by the date in which it ends. For example,
89 if a company's financial year ends November 30, 2011, then
90 everything between December 1, 2010 and November 30, 2011
91 would be referred to as FY 2011.
95 <menuitem id="next_id_23" name="Periods" parent="account.menu_finance_configuration" sequence="5" />
96 <menuitem action="action_account_fiscalyear_form" id="menu_action_account_fiscalyear_form" parent="next_id_23"/>
102 <record id="view_account_period_form" model="ir.ui.view">
103 <field name="name">account.period.form</field>
104 <field name="model">account.period</field>
105 <field name="type">form</field>
106 <field name="arch" type="xml">
109 <button name="action_draft" states="done" string="Set to Draft" type="object" groups="account.group_account_manager"/>
110 <field name="state" widget="statusbar" nolabel="1"/>
116 <field name="fiscalyear_id" widget="selection"/>
117 <label for="date_start" string="Duration"/>
119 <field name="date_start" class="oe_inline" nolabel="1"/> -
120 <field name="date_stop" nolabel="1" class="oe_inline"/>
125 <field name="special"/>
126 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
133 <record id="view_account_period_tree" model="ir.ui.view">
134 <field name="name">account.period.tree</field>
135 <field name="model">account.period</field>
136 <field name="type">tree</field>
137 <field name="arch" type="xml">
138 <tree colors="blue:state == 'draft';gray:state == 'done' " string="Period">
141 <field name="date_start"/>
142 <field name="date_stop"/>
143 <field name="special"/>
144 <field name="company_id" groups="base.group_multi_company"/>
145 <field name="state"/>
150 <record id="view_account_period_search" model="ir.ui.view">
151 <field name="name">account.period.search</field>
152 <field name="model">account.period</field>
153 <field name="type">search</field>
154 <field name="arch" type="xml">
155 <search string="Search Period">
156 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Period"/>
157 <filter string="To Close" name="draft" domain="[('state','=','draft')]" icon="terp-dialog-close"/>
162 <record id="action_account_period_form" model="ir.actions.act_window">
163 <field name="name">Periods</field>
164 <field name="res_model">account.period</field>
165 <field name="view_type">form</field>
166 <field name="view_mode">tree,form</field>
167 <field name="context">{'search_default_draft': 1}</field>
168 <field name="help" type="html">
169 <p class="oe_view_nocontent_create">
170 Click to add a fiscal period.
172 An accounting period typically is a month or a quarter. It
173 usually corresponds to the periods of the tax declaration.
177 <menuitem action="action_account_period_form" id="menu_action_account_period_form" parent="account.next_id_23" groups="base.group_no_one"/>
183 <record id="view_account_form" model="ir.ui.view">
184 <field name="name">account.account.form</field>
185 <field name="model">account.account</field>
186 <field name="type">form</field>
187 <field name="arch" type="xml">
188 <form string="Account" version="7.0">
189 <label for="code" class="oe_edit_only" string="Account Code and Name"/>
191 <field name="code" class="oe_inline" placeholder="Account code" style="width: 6em"/> -
192 <field name="name" class="oe_inline" placeholder="Account name"/>
196 <field name="parent_id"/>
198 <field name="user_type"/>
199 <field name="active"/>
200 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
203 <field name="debit" attrs="{'readonly':[('type','=','view')]}"/>
204 <field name="credit" attrs="{'readonly':[('type','=','view')]}"/>
205 <field name="balance"/>
208 <field name="tax_ids" domain="[('parent_id','=',False)]" widget="many2many_tags"/>
209 <field name="reconcile"/>
210 <field name="child_consol_ids"
211 attrs="{'invisible':[('type','!=','consolidation')]}"
212 widget="many2many_tags"/>
215 <field name="currency_id"/>
216 <field name="currency_mode" attrs="{'readonly': [('currency_id','=',False)]}"/>
225 <record id="view_account_search" model="ir.ui.view">
226 <field name="name">account.account.search</field>
227 <field name="model">account.account</field>
228 <field name="type">search</field>
229 <field name="arch" type="xml">
230 <search string="Accounts">
231 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account"/>
232 <filter icon="terp-sale" string="Receivable Accounts" domain="[('type','=','receivable')]"/>
233 <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
234 <field name="user_type"/>
235 <group expand="0" string="Group By...">
236 <filter string="Parent Account" icon="terp-folder-orange" domain="" context="{'group_by':'parent_id'}"/>
237 <filter string="Account Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'user_type'}"/>
238 <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'type'}"/>
244 <record id="view_account_list" model="ir.ui.view">
245 <field name="name">account.account.list</field>
246 <field name="model">account.account</field>
247 <field name="type">tree</field>
248 <field name="field_parent">child_id</field>
249 <field name="arch" type="xml">
250 <tree colors="blue:type == 'view';black:type in ('other','receivable','payable','consolidation');gray:type == 'closed'" string="Chart of accounts" toolbar="1" >
253 <field name="parent_id" invisible="1"/>
254 <field name="user_type" invisible="1"/>
255 <field name="debit"/>
256 <field name="credit"/>
257 <field name="balance"/>
259 <field name="company_id" groups="base.group_multi_company"/>
260 <field name="company_currency_id"/>
264 <record id="view_treasory_graph" model="ir.ui.view">
265 <field name="name">account.treasury.graph</field>
266 <field name="model">account.account</field>
267 <field name="type">graph</field>
268 <field name="arch" type="xml">
269 <graph string="Treasury Analysis" type="bar">
271 <field name="balance" operator="+"/>
275 <record id="action_account_form" model="ir.actions.act_window">
276 <field name="name">Accounts</field>
277 <field name="res_model">account.account</field>
278 <field name="view_type">form</field>
279 <field name="view_mode">tree,form,graph</field>
280 <field name="search_view_id" ref="view_account_search"/>
281 <field name="view_id" ref="view_account_list"/>
282 <field name="help" type="html">
283 <p class="oe_view_nocontent_create">
284 Click to add an account.
286 An account is part of a ledger allowing your company
287 to register all kinds of debit and credit transactions.
288 Companies present their annual accounts in two main parts: the
289 balance sheet and the income statement (profit and loss
290 account). The annual accounts of a company are required by law
291 to disclose a certain amount of information.
295 <menuitem id="account_account_menu" name="Accounts" parent="account.menu_finance_configuration" sequence="15"/>
296 <menuitem action="action_account_form" id="menu_action_account_form" parent="account_account_menu"/>
298 <record id="view_account_tree" model="ir.ui.view">
299 <field name="name">account.account.tree</field>
300 <field name="model">account.account</field>
301 <field name="type">tree</field>
302 <field name="field_parent">child_id</field>
303 <field name="arch" type="xml">
304 <tree colors="blue:type == 'view';black:type in ('other','receivable','payable','consolidation');gray:type == 'closed'" string="Chart of accounts" toolbar="1" >
307 <field name="debit"/>
308 <field name="credit"/>
309 <field name="balance"/>
310 <field name="company_currency_id"/>
311 <field name="company_id" groups="base.group_multi_company"/>
313 <field name="parent_id" invisible="1"/>
317 <record id="action_account_tree" model="ir.actions.act_window">
318 <field name="name">Chart of Accounts</field>
319 <field name="res_model">account.account</field>
320 <field name="view_type">tree</field>
321 <field name="view_id" ref="view_account_tree"/>
322 <field name="domain">[('parent_id','=',False)]</field>
325 <record id="view_account_gain_loss_tree" model="ir.ui.view">
326 <field name="name">Unrealized Gain or Loss</field>
327 <field name="model">account.account</field>
328 <field name="type">tree</field>
329 <field name="arch" type="xml">
330 <tree string="Unrealized Gains and losses">
333 <field name="parent_id" invisible="1"/>
334 <field name="user_type" invisible="1"/>
335 <field name="type" invisible="1"/>
336 <field name="currency_id"/>
337 <field name="exchange_rate"/>
338 <field name="foreign_balance"/>
339 <field name="adjusted_balance"/>
340 <field name="balance"/>
341 <field name="unrealized_gain_loss"/>
346 <record id="action_account_gain_loss" model="ir.actions.act_window">
347 <field name="name">Unrealized Gain or Loss</field>
348 <field name="res_model">account.account</field>
349 <field name="view_type">form</field>
350 <field name="view_mode">tree</field>
351 <field name="view_id" ref="view_account_gain_loss_tree"/>
352 <field name="domain">[('currency_id','!=',False)]</field>
353 <field name="help" type="html">
354 <p class="oe_view_nocontent_create">
355 Click to add an account.
357 When doing multi-currency transactions, you may loose or gain
358 some amount due to changes of exchange rate. This menu gives
359 you a forecast of the Gain or Loss you'd realized if those
360 transactions were ended today. Only for accounts having a
361 secondary currency set.
367 name="Unrealized Gain or Loss"
368 action="action_account_gain_loss"
369 groups="account.group_account_user"
370 id="menu_unrealized_gains_losses"
371 parent="account.menu_multi_currency"/>
376 Account Journal Columns
379 <record id="view_journal_column_form" model="ir.ui.view">
380 <field name="name">account.journal.column.form</field>
381 <field name="model">account.journal.column</field>
382 <field name="type">form</field>
383 <field name="arch" type="xml">
384 <form string="Journal Column" version="7.0">
386 <field name="field"/>
387 <field name="sequence"/>
391 <record id="view_journal_column_tree" model="ir.ui.view">
392 <field name="name">account.journal.column.tree</field>
393 <field name="model">account.journal.column</field>
394 <field name="type">tree</field>
395 <field name="arch" type="xml">
396 <tree string="Journal Column">
397 <field name="sequence"/>
403 <record id="view_account_journal_view_search" model="ir.ui.view">
404 <field name="name">account.journal.view.search</field>
405 <field name="model">account.journal.view</field>
406 <field name="type">search</field>
407 <field name="arch" type="xml">
408 <search string="Journal View">
409 <field name="name" string="Journal View"/>
413 <record id="view_account_journal_view_tree" model="ir.ui.view">
414 <field name="name">account.journal.view.tree</field>
415 <field name="model">account.journal.view</field>
416 <field name="type">tree</field>
417 <field name="arch" type="xml">
418 <tree string="Journal View">
423 <record id="view_account_journal_view_form" model="ir.ui.view">
424 <field name="name">account.journal.view.form</field>
425 <field name="model">account.journal.view</field>
426 <field name="type">form</field>
427 <field name="arch" type="xml">
428 <form string="Journal View" version="7.0">
430 <field name="columns_id"/>
434 <record id="action_account_journal_view" model="ir.actions.act_window">
435 <field name="name">Journal Views</field>
436 <field name="res_model">account.journal.view</field>
437 <field name="view_type">form</field>
438 <field name="view_mode">tree,form</field>
439 <field name="search_view_id" ref="view_account_journal_view_search"/>
440 <field name="help" type="html">
441 <p class="oe_view_nocontent_create">
442 Click to specify lists of columns to display for a type of journal.
444 Journal views determine the way you can record entries in
445 your journal. Select the fields you want to appear in a journal
446 and determine the sequence in which they will appear.
448 On the journal definition form, you can select the view you
449 want to use to display journal items related to this journal.
454 <menuitem action="action_account_journal_view" id="menu_action_account_journal_view" parent="account.menu_journals" sequence="20"/>
460 <record id="view_account_journal_tree" model="ir.ui.view">
461 <field name="name">account.journal.tree</field>
462 <field name="model">account.journal</field>
463 <field name="type">tree</field>
464 <field name="arch" type="xml">
465 <tree string="Account Journal">
469 <field name="user_id"/>
470 <field name="company_id" groups="base.group_multi_company"/>
474 <record id="view_account_journal_search" model="ir.ui.view">
475 <field name="name">account.journal.search</field>
476 <field name="model">account.journal</field>
477 <field name="type">search</field>
478 <field name="arch" type="xml">
479 <search string="Search Account Journal">
480 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Journal"/>
481 <filter domain="['|', ('type', '=', 'sale'), ('type', '=', 'sale_refund')]" string="Sale" icon="terp-camera_test"/>
482 <filter domain="['|', ('type', '=', 'purchase'), ('type', '=', 'purchase_refund')]" string="Purchase" icon="terp-purchase"/>
483 <filter domain="['|', ('type', '=', 'cash'), ('type', '=', 'bank')]" string="Liquidity" icon="terp-dolar"/>
484 <filter domain="['|', ('type', '=', 'general'), ('type', '=', 'situation')]" string="Others" icon="terp-stock"/>
485 <field name="user_id"/>
486 <group expand="0" string="Group By...">
487 <filter string="User" context="{'group_by':'user_id'}" icon="terp-personal"/>
488 <filter string="Type" context="{'group_by':'type'}" icon="terp-stock_symbol-selection"/>
494 <record id="view_account_journal_form" model="ir.ui.view">
495 <field name="name">account.journal.form</field>
496 <field name="model">account.journal</field>
497 <field name="type">form</field>
498 <field name="arch" type="xml">
499 <form string="Account Journal" version="7.0">
500 <div class="oe_title">
501 <label for="name" class="oe_edit_only"/>
502 <h1><field name="name"/></h1>
507 <field name="type" on_change="onchange_type(type, currency, context)"/>
510 <field name="default_debit_account_id" attrs="{'required':[('type','in', ('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
511 <field name="default_credit_account_id" attrs="{'required':[('type','in',('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
512 <field name="currency"/>
513 <field name="company_id" groups="base.group_multi_company"/>
517 <page string="Advanced Settings">
520 <field name="user_id"/>
521 <field name="view_id" widget="selection"/>
522 <field name="sequence_id" required="0"/>
525 <field name="centralisation"/>
526 <field name="entry_posted"/>
527 <field name="allow_date"/>
528 <field name="group_invoice_lines"/>
532 <page string="Entry Controls">
533 <separator colspan="4" string="Accounts Type Allowed (empty for no control)"/>
534 <field colspan="4" name="type_control_ids" nolabel="1"/>
535 <separator colspan="4" string="Accounts Allowed (empty for no control)"/>
536 <field colspan="4" name="account_control_ids" nolabel="1"/>
538 <page string="Cash Registers" attrs="{'invisible':[('type', '!=', 'cash')]}">
540 <group string="Accounts">
541 <field name="profit_account_id"/>
542 <field name="loss_account_id"/>
543 <field name="internal_account_id"/>
545 <group string="Miscellaneous">
546 <field name="with_last_closing_balance"/>
549 <separator string="Available Coins" colspan="4" />
550 <field name="cashbox_line_ids" nolabel="1" string="Unit Of Currency Definition" colspan="4">
551 <tree string="CashBox Lines" editable="bottom">
552 <field name="pieces" />
561 <record id="action_account_journal_form" model="ir.actions.act_window">
562 <field name="name">Journals</field>
563 <field name="res_model">account.journal</field>
564 <field name="view_type">form</field>
565 <field name="view_mode">tree,form</field>
566 <field name="help" type="html">
567 <p class="oe_view_nocontent_create">
568 Click to add a journal.
570 A journal is used to record transactions of all accounting data
571 related to the day-to-day business.
573 A typical company may use one journal per payment method (cash,
574 bank accounts, checks), one purchase journal, one sale journal
575 and one for miscellaneous information.
579 <menuitem action="action_account_journal_form" id="menu_action_account_journal_form" parent="menu_journals"/>
581 <record id="view_account_bank_statement_filter" model="ir.ui.view">
582 <field name="name">account.cash.statement.select</field>
583 <field name="model">account.bank.statement</field>
584 <field name="type">search</field>
585 <field name="arch" type="xml">
586 <search string="Search Bank Statements">
587 <field name="name" string="Bank Statement"/>
589 <filter string="Draft" name="state_draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
590 <filter string="Open" name="state_open" domain="[('state','=','open')]" icon="terp-check"/>
591 <filter string="Confirmed" name="state_confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
592 <field name="journal_id" domain="[('type', '=', 'cash')]" />
593 <group expand="0" string="Group By...">
594 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
595 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
596 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
602 <record id="view_bank_statement_tree" model="ir.ui.view">
603 <field name="name">account.bank.statement.tree</field>
604 <field name="model">account.bank.statement</field>
605 <field name="type">tree</field>
606 <field name="arch" type="xml">
607 <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">
610 <field name="period_id"/>
611 <field name="journal_id"/>
612 <field name="balance_start"/>
613 <field name="balance_end_real"/>
614 <field name="balance_end" invisible="1"/>
615 <field name="state"/>
619 <record id="view_bank_statement_search" model="ir.ui.view">
620 <field name="name">account.bank.statement.search</field>
621 <field name="model">account.bank.statement</field>
622 <field name="type">search</field>
623 <field name="arch" type="xml">
624 <search string="Search Bank Statements">
625 <field name="name" string="Bank Statement"/>
627 <filter string="Draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
628 <filter string="Confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
629 <field name="period_id"/>
630 <field name="journal_id" domain="[('type', '=', 'bank')]" />
631 <group expand="0" string="Group By...">
632 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
633 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
634 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
639 <record id="view_bank_statement_form" model="ir.ui.view">
640 <field name="name">account.bank.statement.form</field>
641 <field name="model">account.bank.statement</field>
642 <field name="type">form</field>
643 <field name="arch" type="xml">
644 <form string="Bank Statement" version="7.0">
646 <button name="button_confirm_bank" states="draft" string="Confirm" type="object" class="oe_highlight"/>
647 <button name="button_dummy" states="draft" string="Compute" type="object" class="oe_highlight"/>
648 <button name="button_cancel" states="confirm" string="Cancel" type="object"/>
649 <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/>
652 <div class="oe_right oe_button_box" name="import_buttons">
653 <!-- Put here related buttons -->
655 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
657 <field name="name" attrs="{'invisible':[('name','=','/')]}"/>
661 <field name="journal_id" domain="[('type', '=', 'bank')]" on_change="onchange_journal_id(journal_id)" widget="selection"/>
662 <label for="date" string="Date / Period"/>
664 <field name="date" on_change="onchange_date(date, company_id)" class="oe_inline"/>
665 <field name="period_id" class="oe_inline"/>
667 <field name='company_id' widget="selection" groups="base.group_multi_company" />
669 <label for="balance_start"/>
671 <field name="balance_start" class="oe_inline"/>
672 <field name="currency" class="oe_inline"/>
674 <field name="balance_end_real"/>
679 <page string="Transactions" name="statement_line_ids">
680 <field name="line_ids" context="{'date':date}">
681 <tree editable="bottom" string="Statement lines">
682 <field name="sequence" readonly="1" invisible="1"/>
686 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
687 <field name="type" on_change="onchange_type(partner_id, type)"/>
688 <field domain="[('journal_id','=',parent.journal_id), ('company_id', '=', parent.company_id)]" name="account_id"/>
689 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]"/>
690 <field name="amount"/>
692 <form string="Statement lines" version="7.0">
697 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
698 <field name="type" on_change="onchange_type(partner_id, type)"/>
699 <field domain="[('journal_id', '=', parent.journal_id), ('type', '<>', 'view'), ('company_id', '=', parent.company_id)]" name="account_id"/>
700 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]"/>
701 <field name="amount"/>
702 <field name="sequence" readonly="0"/>
704 <separator string="Notes"/>
709 <page string="Journal Entries" name="move_live_ids">
710 <field name="move_line_ids"/>
719 <record id="action_bank_statement_tree" model="ir.actions.act_window">
720 <field name="name">Bank Statements</field>
721 <field name="res_model">account.bank.statement</field>
722 <field name="view_type">form</field>
723 <field name="view_mode">tree,form,graph</field>
724 <field name="domain">[('journal_id.type', '=', 'bank')]</field>
725 <field name="context">{'journal_type':'bank'}</field>
726 <field name="search_view_id" ref="view_bank_statement_search"/>
727 <field name="help" type="html">
728 <p class="oe_view_nocontent_create">
729 Click to register a bank statement.
731 A bank statement is a summary of all financial transactions
732 occurring over a given period of time on a bank account. You
733 should receive this periodicaly from your bank.
735 OpenERP allows you to reconcile a statement line directly with
736 the related sale or puchase invoices.
740 <record model="ir.actions.act_window.view" id="action_bank_statement_tree_bank">
741 <field name="sequence" eval="1"/>
742 <field name="view_mode">tree</field>
743 <field name="view_id" ref="view_bank_statement_tree"/>
744 <field name="act_window_id" ref="action_bank_statement_tree"/>
746 <record model="ir.actions.act_window.view" id="action_bank_statement_form_bank">
747 <field name="sequence" eval="1"/>
748 <field name="view_mode">form</field>
749 <field name="view_id" ref="view_bank_statement_form"/>
750 <field name="act_window_id" ref="action_bank_statement_tree"/>
753 <menuitem string="Bank Statements" action="action_bank_statement_tree" id="menu_bank_statement_tree" parent="menu_finance_bank_and_cash" sequence="7"/>
755 <record id="action_bank_statement_draft_tree" model="ir.actions.act_window">
756 <field name="name">Draft statements</field>
757 <field name="res_model">account.bank.statement</field>
758 <field name="view_type">form</field>
759 <field name="view_mode">tree,form</field>
760 <field name="domain">[('state','=','draft')]</field>
761 <field name="filter" eval="True"/>
767 <record id="view_account_type_search" model="ir.ui.view">
768 <field name="name">account.account.type.search</field>
769 <field name="model">account.account.type</field>
770 <field name="type">search</field>
771 <field name="arch" type="xml">
772 <search string="Account Type">
773 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account Type"/>
778 <record id="view_account_type_tree" model="ir.ui.view">
779 <field name="name">account.account.type.tree</field>
780 <field name="model">account.account.type</field>
781 <field name="type">tree</field>
782 <field name="arch" type="xml">
783 <tree string="Account Type">
790 <record id="view_account_type_form" model="ir.ui.view">
791 <field name="name">account.account.type.form</field>
792 <field name="model">account.account.type</field>
793 <field name="type">form</field>
794 <field name="arch" type="xml">
795 <form string="Account Type" version="7.0">
802 <field name="report_type"/>
803 <field name="close_method"/>
806 <separator string="Description"/>
811 <record id="action_account_type_form" model="ir.actions.act_window">
812 <field name="name">Account Types</field>
813 <field name="res_model">account.account.type</field>
814 <field name="view_type">form</field>
815 <field name="view_mode">tree,form</field>
816 <field name="search_view_id" ref="view_account_type_search"/>
817 <field name="help" type="html">
818 <p class="oe_view_nocontent_create">
819 Click to define a new account type.
821 An account type is used to determine how an account is used in
822 each journal. The deferral method of an account type determines
823 the process for the annual closing. Reports such as the Balance
824 Sheet and the Profit and Loss report use the category
825 (profit/loss or balance sheet).
829 <menuitem action="action_account_type_form" sequence="20" id="menu_action_account_type_form" parent="account_account_menu" groups="base.group_no_one"/>
833 <record id="view_account_move_tree" model="ir.ui.view">
834 <field name="name">account.move.tree</field>
835 <field name="model">account.move</field>
836 <field name="type">tree</field>
837 <field name="arch" type="xml">
838 <tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries">
842 <field name="period_id"/>
843 <field name="journal_id"/>
844 <field name="partner_id"/>
845 <field name="amount" sum="Total Amount"/>
846 <field name="state"/>
855 <record id="view_move_reconcile_form" model="ir.ui.view">
856 <field name="name">account.move.reconcile.form</field>
857 <field name="model">account.move.reconcile</field>
858 <field name="type">form</field>
859 <field name="arch" type="xml">
860 <form string="Journal Entry Reconcile" version="7.0">
863 <field name="create_date"/>
866 <separator string="Reconcile Entries"/>
867 <field name="line_id"/>
868 <separator string="Partial Reconcile Entries"/>
869 <field name="line_partial_ids"/>
877 <record id="view_tax_code_search" model="ir.ui.view">
878 <field name="name">account.tax.code.search</field>
879 <field name="model">account.tax.code</field>
880 <field name="type">search</field>
881 <field name="arch" type="xml">
882 <search string="Account Tax Code">
883 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Tax Code"/>
884 <field name="parent_id"/>
885 <field name="company_id" groups="base.group_multi_company"/>
889 <record id="view_tax_code_tree" model="ir.ui.view">
890 <field name="name">account.tax.code.tree</field>
891 <field name="model">account.tax.code</field>
892 <field name="type">tree</field>
893 <field name="field_parent">child_ids</field>
894 <field name="priority">100</field>
895 <field name="arch" type="xml">
896 <tree string="Account Tax Code" toolbar="1">
899 <field name="sum_period"/>
901 <field name="company_id" groups="base.group_multi_company"/>
905 <record id="view_tax_code_form" model="ir.ui.view">
906 <field name="name">account.tax.code.form</field>
907 <field name="model">account.tax.code</field>
908 <field name="type">form</field>
909 <field name="arch" type="xml">
910 <form string="Account Tax Code" version="7.0">
912 <group col="4" colspan="2">
915 <field name="parent_id"/>
916 <field name="company_id" groups="base.group_multi_company"/>
918 <group string="Reporting Configuration">
919 <field name="notprintable"/>
922 <group string="Statistics">
923 <field name="sum_period"/>
927 <separator string="Description"/>
932 <record id="action_tax_code_list" model="ir.actions.act_window">
933 <field name="name">Tax codes</field>
934 <field name="res_model">account.tax.code</field>
935 <field name="view_type">form</field>
936 <field name="view_mode">tree,form</field>
937 <field name="view_id" ref="view_tax_code_tree"/>
938 <field name="search_view_id" ref="view_tax_code_search"/>
939 <field name="help" type="html">
940 <p class="oe_view_nocontent_create">
941 Click to define a new tax code.
943 Depending on the country, a tax code is usually a cell to fill
944 in your legal tax statement. OpenERP allows you to define the
945 tax structure and each tax computation will be registered in
946 one or several tax code.
950 <menuitem id="next_id_27" name="Taxes" parent="account.menu_finance_configuration" sequence="20"/>
951 <menuitem action="action_tax_code_list" id="menu_action_tax_code_list" parent="next_id_27" sequence="12" groups="base.group_no_one"/>
957 <record id="view_tax_tree" model="ir.ui.view">
958 <field name="name">account.tax.tree</field>
959 <field name="model">account.tax</field>
960 <field name="type">tree</field>
961 <field name="field_parent">child_ids</field>
962 <field name="arch" type="xml">
963 <tree string="Account Tax">
965 <field name="price_include"/>
966 <field name="description"/>
967 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
971 <record id="view_account_tax_search" model="ir.ui.view">
972 <field name="name">account.tax.search</field>
973 <field name="model">account.tax</field>
974 <field name="type">search</field>
975 <field name="arch" type="xml">
976 <search string="Search Taxes">
977 <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax"/>
978 <field name="company_id" groups="base.group_multi_company"/>
982 <record id="view_tax_form" model="ir.ui.view">
983 <field name="name">account.tax.form</field>
984 <field name="model">account.tax</field>
985 <field name="type">form</field>
986 <field name="arch" type="xml">
987 <form string="Account Tax" version="7.0">
991 <field name="description"/>
994 <field name="type_tax_use"/>
995 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
996 <field name="active"/>
1000 <page string="Tax Definition">
1002 <group string="Tax Computation">
1005 <field name="type"/>
1006 <field name="amount" class="oe_inline"
1007 attrs="{'invisible':[('type','in',('none', 'code', 'balance'))]}"/>
1008 <label string="%%" attrs="{'invisible':[('type','<>','percent')]}"/>
1010 <field name="python_compute" attrs="{'invisible':[('type','!=','code')],'required':[('type','=','code')]}"/>
1011 <field name="python_compute_inv" attrs="{'invisible':[('type','!=','code')],'required':[('type','=','code')]}"/>
1012 <field name="price_include"/>
1014 <group string="Misc">
1015 <field name="sequence"/>
1016 <field name="include_base_amount"/>
1017 <field name="child_depend"/>
1019 <group string="Invoices">
1020 <field name="account_collected_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
1021 <field name="account_analytic_collected_id" domain="[('type','<>','view'), ('company_id', '=', company_id), ('parent_id', '<>', False)]" groups="analytic.group_analytic_accounting"/>
1023 <field name="base_code_id"/>
1024 <field name="base_sign"/>
1025 <field name="tax_code_id"/>
1026 <field name="tax_sign"/>
1029 <group string="Refunds">
1030 <field name="account_paid_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
1031 <field name="account_analytic_paid_id" domain="[('type','<>','view'), ('company_id', '=', company_id), ('parent_id', '<>', False)]" groups="analytic.group_analytic_accounting"/>
1033 <field name="ref_base_code_id"/>
1034 <field name="ref_base_sign"/>
1035 <field name="ref_tax_code_id"/>
1036 <field name="ref_tax_sign"/>
1038 <group string="Children/Sub Taxes" colspan="2">
1039 <field name="child_depend" class="oe_inline"/>
1040 <field name="child_ids" nolabel="1" colspan="2">
1041 <tree string="Account Tax">
1042 <field name="sequence"/>
1043 <field name="name"/>
1044 <field name="price_include"/>
1045 <field name="description"/>
1051 <page string="Special Computation">
1053 <separator colspan="4" string="Applicability Options"/>
1054 <field name="applicable_type"/>
1055 <field name="domain"/>
1056 <separator colspan="4" string="Applicable Code (if type=code)"/>
1057 <field colspan="4" name="python_applicable" nolabel="1" attrs="{'readonly':[('applicable_type','=','true')], 'required':[('applicable_type','=','code')]}"/>
1064 <record id="action_tax_form" model="ir.actions.act_window">
1065 <field name="name">Taxes</field>
1066 <field name="res_model">account.tax</field>
1067 <field name="view_type">form</field>
1068 <field name="view_id" ref="view_tax_tree"/>
1069 <field name="domain">[('parent_id','=',False)]</field>
1071 <menuitem action="action_tax_form" id="menu_action_tax_form" parent="next_id_27"/>
1073 <record id="action_tax_code_tree" model="ir.actions.act_window">
1074 <field name="name">Chart of Taxes</field>
1075 <field name="res_model">account.tax.code</field>
1076 <field name="domain">[('parent_id','=',False)]</field>
1077 <field name="view_type">tree</field>
1078 <field name="view_id" ref="view_tax_code_tree"/>
1085 <record id="view_move_line_tree" model="ir.ui.view">
1086 <field name="name">account.move.line.tree</field>
1087 <field name="model">account.move.line</field>
1088 <field name="type">tree</field>
1089 <field eval="4" name="priority"/>
1090 <field name="arch" type="xml">
1091 <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" editable="top" on_write="on_create_write">
1092 <field name="date"/>
1093 <field name="period_id"/>
1094 <field name="move_id"/>
1096 <field name="invoice"/>
1097 <field name="name"/>
1098 <field name="partner_id" on_change="onchange_partner_id(move_id, partner_id, account_id, debit, credit, date, journal_id)"/>
1099 <field name="account_id" domain="[('journal_id','=',journal_id), ('company_id', '=', company_id)]"/>
1100 <field name="journal_id"/>
1101 <field name="debit" sum="Total debit"/>
1102 <field name="credit" sum="Total credit"/>
1103 <field name="account_tax_id"/>
1104 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]"/>
1105 <field name="amount_currency" attrs="{'readonly':[('state','=','valid')]}"/>
1106 <field name="currency_id" attrs="{'readonly':[('state','=','valid')]}"/>
1107 <field name="reconcile_partial_id"/>
1108 <field name="reconcile_id"/>
1109 <field name="state"/>
1114 <record id="view_move_line_form" model="ir.ui.view">
1115 <field name="name">account.move.line.form</field>
1116 <field name="model">account.move.line</field>
1117 <field name="type">form</field>
1118 <field eval="2" name="priority"/>
1119 <field name="arch" type="xml">
1120 <form string="Journal Item" version="7.0">
1124 <field name="name"/>
1126 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1129 <field name="journal_id"/>
1130 <field name="period_id"/>
1131 <field name="company_id" required="1" groups="base.group_multi_company"/>
1134 <notebook colspan="4">
1135 <page string="Information">
1137 <group string="Amount">
1138 <field name="account_id" domain="[('company_id', '=', company_id), ('type','<>','view'), ('type','<>','consolidation')]"/>
1139 <field name="debit"/>
1140 <field name="credit"/>
1141 <field name="quantity"/>
1143 <group string="Accounting Documents">
1144 <field name="invoice" readonly="True"/>
1145 <field name="move_id" required="False"/>
1146 <field name="statement_id" readonly="True"/>
1148 <group string="Dates">
1149 <field name="date"/>
1150 <field name="date_maturity"/>
1151 <field name="date_created" readonly="True"/>
1153 <group string="Taxes">
1154 <field name="tax_code_id"/>
1155 <field name="tax_amount"/>
1156 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1158 <group attrs="{'readonly':[('state','=','valid')]}" string="Currency">
1159 <field name="currency_id"/>
1160 <field name="amount_currency"/>
1162 <group string="Reconciliation">
1163 <field name="reconcile_id"/>
1164 <field name="reconcile_partial_id"/>
1166 <group string="States">
1167 <field name="state"/>
1168 <field name="blocked"/>
1170 <group groups="analytic.group_analytic_accounting" string="Analytic">
1171 <field name="analytic_account_id" domain="[('parent_id','!=',False)]"/>
1174 <field name="narration" colspan="4" nolabel="1" placeholder="Add an internal note..."/>
1176 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1177 <field name="analytic_lines" context="{'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}"/>
1185 <record id="view_move_line_form2" model="ir.ui.view">
1186 <field name="name">account.move.line.form2</field>
1187 <field name="model">account.move.line</field>
1188 <field name="type">form</field>
1189 <field eval="9" name="priority"/>
1190 <field name="arch" type="xml">
1191 <form string="Journal Item" version="7.0">
1192 <notebook colspan="4">
1193 <page string="Information">
1195 <separator colspan="4" string="General Information"/>
1196 <field name="name"/>
1197 <field name="date"/>
1198 <field name="journal_id" readonly="False"/>
1199 <field name="period_id" readonly="False"/>
1200 <field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation'),('company_id', '=', company_id)]"/>
1201 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1203 <field name="debit"/>
1204 <field name="credit"/>
1206 <separator colspan="4" string="Optional Information"/>
1207 <field name="currency_id"/>
1208 <field name="amount_currency"/>
1209 <field name="quantity"/>
1210 <field name="move_id" required="False"/>
1212 <field name="date_maturity"/>
1213 <field name="date_created"/>
1214 <field name="date_created"/>
1215 <field name="blocked"/>
1217 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1218 <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1219 <separator colspan="4" string="Status"/>
1221 <field name="reconcile_id"/>
1222 <field name="reconcile_partial_id"/>
1223 <field name="state"/>
1226 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1227 <field name="analytic_lines"/>
1234 <record id="account_move_line_graph" model="ir.ui.view">
1235 <field name="name">account.move.line.graph</field>
1236 <field name="model">account.move.line</field>
1237 <field name="type">graph</field>
1238 <field name="arch" type="xml">
1239 <graph string="Account Statistics" type="bar">
1240 <field name="account_id"/>
1241 <field name="debit" operator="+"/>
1242 <field name="credit" operator="+"/>
1247 <record id="view_account_move_line_filter" model="ir.ui.view">
1248 <field name="name">Journal Items</field>
1249 <field name="model">account.move.line</field>
1250 <field name="type">search</field>
1251 <field name="arch" type="xml">
1252 <search string="Search Journal Items">
1253 <field name="date"/>
1254 <filter icon="terp-document-new" string="Unbalanced" domain="[('state','=','draft')]" help="Unbalanced Journal Items"/>
1256 <filter icon="terp-document-new" string="Unposted" domain="[('move_id.state','=','draft')]" help="Unposted Journal Items"/>
1257 <filter name="posted" icon="terp-camera_test" string="Posted" domain="[('move_id.state','=','posted')]" help="Posted Journal Items"/>
1259 <filter icon="terp-dolar_ok!" string="Unreconciled" domain="[('reconcile_id','=',False), ('account_id.reconcile','=',True)]" help="Unreconciled Journal Items" name="unreconciled"/>
1261 <filter string="Next Partner to Reconcile" help="Next Partner Entries to reconcile" name="next_partner" context="{'next_partner_only': 1}" icon="terp-gtk-jump-to-ltr" domain="[('account_id.reconcile','=',True),('reconcile_id','=',False)]"/>
1262 <field name="move_id" string="Number (Move)"/>
1263 <field name="account_id"/>
1264 <field name="partner_id"/>
1265 <field name="journal_id" context="{'journal_id':self}"/>
1266 <field name="period_id" context="{'period_id':self}"/>
1267 <group expand="0" string="Group By...">
1268 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1269 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1270 <filter string="Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
1271 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1277 <record id="action_account_moves_all_a" model="ir.actions.act_window">
1278 <field name="name">Journal Items</field>
1279 <field name="res_model">account.move.line</field>
1280 <field name="view_type">form</field>
1281 <field name="view_mode">tree,form</field>
1282 <field name="context">{}</field>
1283 <field name="search_view_id" ref="view_account_move_line_filter"/>
1284 <field name="help" type="html">
1285 <p class="oe_view_nocontent_create">
1286 Click to register a new journal item.
1288 This view can be used by accountants in order to quickly record
1289 entries in OpenERP. If you want to record a supplier invoice,
1290 start by recording the line of the expense account. OpenERP
1291 will propose to you automatically the Tax related to this
1292 account and the counterpart "Account Payable".
1298 action="action_account_moves_all_a"
1299 icon="STOCK_JUSTIFY_FILL"
1300 id="menu_action_account_moves_all"
1301 parent="account.menu_finance_entries"
1303 groups="group_account_user"
1306 <record id="action_view_move_line" model="ir.actions.act_window">
1307 <field name="name">Lines to reconcile</field>
1308 <field name="res_model">account.move.line</field>
1309 <field name="view_type">form</field>
1310 <field name="view_mode">tree,form</field>
1311 <field name="domain">[('account_id.reconcile', '=', True),('reconcile_id','=',False)]</field>
1312 <field eval="False" name="view_id"/>
1313 <field eval="True" name="filter"/>
1314 <field name="search_view_id" ref="view_account_move_line_filter"/>
1317 <record id="action_move_line_select" model="ir.actions.act_window">
1318 <field name="name">Journal Items</field>
1319 <field name="res_model">account.move.line</field>
1320 <field name="view_type">form</field>
1321 <field name="view_mode">tree,form</field>
1322 <field name="view_id" ref="view_move_line_tree"/>
1323 <field name="search_view_id" ref="view_account_move_line_filter"/>
1324 <field name="context">{'search_default_account_id': [active_id]}</field>
1327 <record id="ir_account_move_line_select" model="ir.values">
1328 <field name="key2">tree_but_open</field>
1329 <field name="model">account.account</field>
1330 <field name="name">Open Journal Items</field>
1331 <field eval="'ir.actions.act_window,%d'%action_move_line_select" name="value"/>
1334 Account.Entry Edition
1337 <record id="account_move_graph" model="ir.ui.view">
1338 <field name="name">account.move.graph</field>
1339 <field name="model">account.move</field>
1340 <field name="type">graph</field>
1341 <field name="arch" type="xml">
1342 <graph string="Account Statistics" type="bar">
1343 <field name="period_id"/>
1344 <field name="amount" operator="+"/>
1348 <record id="view_move_tree" model="ir.ui.view">
1349 <field name="name">account.move.tree</field>
1350 <field name="model">account.move</field>
1351 <field name="type">tree</field>
1352 <field name="arch" type="xml">
1353 <tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries">
1354 <field name="name"/>
1356 <field name="date"/>
1357 <field name="period_id"/>
1358 <field name="journal_id"/>
1359 <field name="partner_id"/>
1360 <field name="amount" sum="Total Amount"/>
1361 <field name="to_check"/>
1362 <field name="state"/>
1366 <record id="view_move_form" model="ir.ui.view">
1367 <field name="name">account.move.form</field>
1368 <field name="model">account.move</field>
1369 <field name="type">form</field>
1370 <field name="arch" type="xml">
1371 <form version="7.0">
1373 <button name="button_validate" states="draft" string="Post" type="object" class="oe_highlight"/>
1374 <button name="button_cancel" states="posted" string="Cancel" type="object"/>
1375 <field name="state" widget="statusbar"/>
1377 <sheet string="Journal Entries" >
1378 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
1380 <field name="name" readonly="True" attrs="{'invisible':[('name','=','/')]}"/>
1384 <field name="journal_id"/>
1385 <field name="period_id"/>
1386 <field name="company_id" required="1" groups="base.group_multi_company"/>
1387 <field name="partner_id" invisible="1"/>
1391 <field name="date"/>
1392 <field name="to_check"/>
1393 <field name="amount" invisible="1"/>
1397 <page string="Journal Items">
1398 <field name="balance" invisible="1"/>
1399 <field name="line_id" widget="one2many_list"
1400 on_change="onchange_line_id(line_id)"
1401 context="{'balance': balance , 'journal': journal_id }">
1402 <form string="Journal Item" version="7.0">
1403 <group col="6" colspan="4">
1404 <field name="name"/>
1406 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1408 <field name="journal_id"/>
1409 <field name="period_id"/>
1410 <field name="company_id" required="1" groups="base.group_multi_company"/>
1412 <notebook colspan="4">
1413 <page string="Information">
1415 <group string="Amount">
1416 <field name="account_id" domain="[('company_id', '=', parent.company_id), ('type','<>','view'),('type','<>','consolidation')]"/>
1417 <field name="debit"/>
1418 <field name="credit"/>
1419 <field name="quantity"/>
1422 <group string="Accounting Documents">
1423 <field name="invoice"/>
1424 <field name="move_id" required="False"/>
1425 <field name="statement_id"/>
1428 <group string="Dates">
1429 <field name="date"/>
1430 <field name="date_maturity"/>
1431 <field name="date_created"/>
1434 <group string="Taxes">
1435 <field name="tax_code_id"/>
1436 <field name="tax_amount"/>
1437 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1440 <group string="Currency">
1441 <field name="currency_id"/>
1442 <field name="amount_currency"/>
1445 <group string="Reconciliation">
1446 <field name="reconcile_id"/>
1447 <field name="reconcile_partial_id"/>
1450 <group string="States">
1451 <field name="state"/>
1452 <field name="blocked"/>
1455 <group groups="analytic.group_analytic_accounting" string="Analytic">
1456 <field name="analytic_account_id" domain="[('parent_id','!=',False)]"/>
1459 <separator string="Internal Note"/>
1460 <field name="narration"/>
1462 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1463 <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)}"/>
1467 <tree colors="blue:state == 'draft';black:state == 'posted'" editable="top" string="Journal Items">
1469 <field name="invoice"/>
1470 <field name="name"/>
1471 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,parent.date,parent.journal_id)"/>
1472 <field name="account_id" domain="[('journal_id','=',parent.journal_id),('company_id', '=', parent.company_id)]"/>
1473 <field name="date_maturity"/>
1474 <field name="debit" sum="Total Debit"/>
1475 <field name="credit" sum="Total Credit"/>
1476 <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1477 <field name="amount_currency"/>
1478 <field name="currency_id"/>
1479 <field name="tax_code_id"/>
1480 <field name="tax_amount"/>
1481 <field name="state"/>
1482 <field name="reconcile_id"/>
1483 <field name="reconcile_partial_id"/>
1486 <field name="narration" colspan="4" placeholder="Add an internal note..." nolabel="1" height="50"/>
1494 <record id="view_account_move_filter" model="ir.ui.view">
1495 <field name="name">account.move.select</field>
1496 <field name="model">account.move</field>
1497 <field name="type">search</field>
1498 <field name="arch" type="xml">
1499 <search string="Search Move">
1500 <field name="name" filter_domain="['|', ('name','ilike',self), ('ref','ilike',self)]" string="Move"/>
1501 <field name="date"/>
1502 <filter icon="terp-document-new" string="Unposted" domain="[('state','=','draft')]" help="Unposted Journal Entries"/>
1503 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Journal Entries"/>
1505 <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('to_check','=',True)]" help="Journal Entries to Review"/>
1506 <field name="partner_id"/>
1507 <field name="journal_id"/>
1508 <field name="period_id"/>
1509 <group expand="0" string="Group By...">
1510 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1511 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1512 <filter string="States" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1513 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1514 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1520 <record id="action_move_journal_line" model="ir.actions.act_window">
1521 <field name="name">Journal Entries</field>
1522 <field name="res_model">account.move</field>
1523 <field name="view_type">form</field>
1524 <field name="view_mode">tree,form,graph</field>
1525 <field name="view_id" ref="view_move_tree"/>
1526 <field name="search_view_id" ref="view_account_move_filter"/>
1527 <field name="help" type="html">
1528 <p class="oe_view_nocontent_create">
1529 Click to create a journal entry.
1531 A journal entry consists of several journal items, each of
1532 which is either a debit or a credit transaction.
1534 OpenERP automatically creates one journal entry per accounting
1535 document: invoice, refund, supplier payment, bank statements,
1536 etc. So, you should record journal entries manually only/mainly
1537 for miscellaneous operations.
1543 icon="STOCK_JUSTIFY_FILL"
1544 action="action_move_journal_line"
1545 id="menu_action_move_journal_line_form"
1546 parent="account.menu_finance_entries"
1547 groups="group_account_user"
1550 <record id="action_move_line_form" model="ir.actions.act_window">
1551 <field name="name">Entries</field>
1552 <field name="type">ir.actions.act_window</field>
1553 <field name="res_model">account.move</field>
1554 <field name="view_type">form</field>
1555 <field name="view_id" ref="view_move_tree"/>
1556 <field name="search_view_id" ref="view_account_move_filter"/>
1560 id="act_account_move_to_account_move_line_open"
1561 name="Journal Items"
1562 context="{'search_default_move_id':[active_id], 'default_move_id': active_id}"
1563 res_model="account.move.line"
1564 src_model="account.move"/>
1566 <record id="action_move_line_search" model="ir.actions.act_window">
1567 <field name="name">Journal Items</field>
1568 <field name="type">ir.actions.act_window</field>
1569 <field name="res_model">account.move.line</field>
1570 <field name="view_type">form</field>
1571 <field name="view_mode">tree,form</field>
1572 <field name="view_id" ref="view_move_line_tree"/>
1573 <field name="search_view_id" ref="view_account_move_line_filter"/>
1575 <record id="action_move_line_search_view1" model="ir.actions.act_window.view">
1576 <field eval="10" name="sequence"/>
1577 <field name="view_mode">tree</field>
1578 <field name="view_id" ref="view_move_line_tree"/>
1579 <field name="act_window_id" ref="action_move_line_search"/>
1581 <record id="action_move_line_search_view2" model="ir.actions.act_window.view">
1582 <field eval="11" name="sequence"/>
1583 <field name="view_mode">form</field>
1584 <field name="act_window_id" ref="action_move_line_search"/>
1588 context="{'search_default_next_partner':1,'view_mode':True}"
1589 id="action_account_manual_reconcile" name="Journal Items"
1590 res_model="account.move.line"
1591 view_id="view_move_line_tree"/>
1595 name="Manual Reconciliation" icon="STOCK_EXECUTE"
1596 action="action_account_manual_reconcile"
1597 id="menu_manual_reconcile"
1598 parent="account.periodical_processing_reconciliation"/>
1602 id="act_account_acount_move_line_open"
1604 context="{'search_default_account_id':[active_id], 'search_default_unreconciled':0, 'default_account_id': active_id}"
1605 res_model="account.move.line"
1606 src_model="account.account"/>
1609 id="act_account_acount_move_line_open_unreconciled"
1610 name="Unreconciled Entries"
1611 res_model="account.move.line"
1612 context="{'search_default_account_id':[active_id], 'search_default_unreconciled':1, 'default_account_id': active_id}"
1613 src_model="account.account"/>
1616 domain="[('reconcile_id', '=', active_id)]"
1617 id="act_account_acount_move_line_reconcile_open"
1618 name="Reconciled entries"
1619 res_model="account.move.line"
1620 src_model="account.move.reconcile"/>
1625 Print Journal (and change state)
1626 Close Journal (and verify that there is no draft Entry Lines)
1629 <record id="view_journal_period_tree" model="ir.ui.view">
1630 <field name="name">account.journal.period.tree</field>
1631 <field name="model">account.journal.period</field>
1632 <field name="type">tree</field>
1633 <field name="arch" type="xml">
1634 <tree colors="blue:state == 'draft';gray:state == 'done';black:state == 'printed'" string="Journals">
1635 <field icon="icon" name="fiscalyear_id"/>
1636 <field name="period_id"/>
1637 <field name="journal_id"/>
1638 <field name="state"/>
1639 <field name="company_id" groups="base.group_multi_company"/>
1643 <record id="action_account_journal_period_tree" model="ir.actions.act_window">
1644 <field name="name">Journals</field>
1645 <field name="res_model">account.journal.period</field>
1646 <field name="view_type">tree</field>
1653 <record id="view_model_line_tree" model="ir.ui.view">
1654 <field name="name">account.model.line.tree</field>
1655 <field name="model">account.model.line</field>
1656 <field name="type">tree</field>
1657 <field name="arch" type="xml">
1658 <tree string="Journal Entry Model Line" editable="bottom">
1659 <field name="sequence"/>
1660 <field name="name"/>
1661 <field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation'), ('company_id', '=', parent.company_id)]"/>
1662 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1663 <field name="partner_id"/>
1664 <field name="debit"/>
1665 <field name="credit"/>
1666 <field name="date_maturity"/>
1672 <record id="view_model_line_form" model="ir.ui.view">
1673 <field name="name">account.model.line.form</field>
1674 <field name="model">account.model.line</field>
1675 <field name="type">form</field>
1676 <field name="arch" type="xml">
1677 <form string="Journal Entry Model Line" version="7.0">
1679 <field colspan="4" name="name"/>
1680 <field name="sequence"/>
1681 <field name="account_id" domain="[('type','<>','view'), ('type','<>','consolidation'), ('company_id', '=', parent.company_id)]"/>
1682 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1683 <field name="partner_id"/>
1684 <field name="debit"/>
1685 <field name="credit"/>
1686 <field name="quantity"/>
1687 <field name="date_maturity"/>
1693 <record id="view_model_form" model="ir.ui.view">
1694 <field name="name">account.model.form</field>
1695 <field name="model">account.model</field>
1696 <field name="type">form</field>
1697 <field name="arch" type="xml">
1698 <form string="Journal Entry Model" version="7.0">
1700 <field name="name"/>
1701 <field name="journal_id"/>
1702 <field name="company_id" widget='selection' groups="base.group_multi_company"/>
1705 <field name="lines_id" widget="one2many_list"/>
1706 <separator string="Legend"/>
1707 <field name="legend"/>
1708 <button name="%(action_account_use_model_create_entry)d" string="Create entries" type="action" icon="gtk-execute"/>
1713 <record id="view_model_tree" model="ir.ui.view">
1714 <field name="name">account.model.tree</field>
1715 <field name="model">account.model</field>
1716 <field name="type">tree</field>
1717 <field name="arch" type="xml">
1718 <tree string="Journal Entry Model">
1719 <field name="name"/>
1720 <field name="journal_id"/>
1721 <field name="company_id" groups="base.group_multi_company"/>
1726 <record id="view_model_search" model="ir.ui.view">
1727 <field name="name">account.model.search</field>
1728 <field name="model">account.model</field>
1729 <field name="type">search</field>
1730 <field name="arch" type="xml">
1731 <search string="Journal Entry Model">
1732 <field name="name" string="Journal Entry Model"/>
1733 <filter string="Sale" icon="terp-camera_test" domain="[('journal_id.type', '=', 'sale')]"/>
1734 <filter string="Purchase" icon="terp-purchase" domain="[('journal_id.type', '=', 'purchase')]"/>
1735 <field name="journal_id"/>
1736 <field name="company_id" groups="base.group_multi_company"/>
1737 <group expand="0" string="Group By...">
1738 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1744 <record id="action_model_form" model="ir.actions.act_window">
1745 <field name="name">Recurring Models</field>
1746 <field name="res_model">account.model</field>
1747 <field name="view_type">form</field>
1748 <field name="view_mode">tree,form</field>
1749 <field name="search_view_id" ref="view_model_search"/>
1752 action="action_model_form" id="menu_action_model_form" sequence="5"
1753 parent="account.menu_configuration_misc"/>
1759 <record id="view_payment_term_line_tree" model="ir.ui.view">
1760 <field name="name">account.payment.term.line.tree</field>
1761 <field name="model">account.payment.term.line</field>
1762 <field name="type">tree</field>
1763 <field name="arch" type="xml">
1764 <tree string="Payment Term">
1765 <field name="sequence"/>
1766 <field name="name"/>
1767 <field name="value"/>
1768 <field name="value_amount"/>
1769 <field name="days"/>
1770 <field name="days2"/>
1776 <record id="view_payment_term_line_form" model="ir.ui.view">
1777 <field name="name">account.payment.term.line.form</field>
1778 <field name="model">account.payment.term.line</field>
1779 <field name="type">form</field>
1780 <field name="arch" type="xml">
1781 <form string="Payment Term" version="7.0">
1782 <field name="name"/>
1783 <field name="sequence"/>
1785 <group string="Amount Computation">
1786 <field name="value"/>
1787 <field name="value_amount" attrs="{'readonly':[('value','=','balance')]}"/>
1789 <group string="Due Date Computation">
1790 <field name="days"/>
1791 <field name="days2"/>
1795 <separator string="Example"/>
1796 <label string="At 14 net days 2 percent, remaining amount at 30 days end of month."/>
1798 <label string="Line 1:" colspan="2"/>
1799 <label string=" Valuation: Percent"/>
1800 <label string=" Number of Days: 14"/>
1801 <label string=" Value amount: 0.02"/>
1802 <label string=" Day of the Month: 0"/>
1805 <label string="Line 2:" colspan="2"/>
1806 <label string=" Valuation: Balance"/>
1807 <label string=" Number of Days: 30"/>
1808 <label string=" Value amount: n.a"/>
1809 <label string=" Day of the Month= -1"/>
1815 <record id="view_payment_term_search" model="ir.ui.view">
1816 <field name="name">account.payment.term.search</field>
1817 <field name="model">account.payment.term</field>
1818 <field name="type">search</field>
1819 <field name="arch" type="xml">
1820 <search string="Payment Term">
1821 <field name="name" string="Payment Term"/>
1822 <field name="active"/>
1827 <record id="view_payment_term_form" model="ir.ui.view">
1828 <field name="name">account.payment.term.form</field>
1829 <field name="model">account.payment.term</field>
1830 <field name="type">form</field>
1831 <field name="arch" type="xml">
1832 <form string="Payment Term" version="7.0">
1834 <field name="name"/>
1835 <field name="active"/>
1837 <separator string="Description on Invoices"/>
1838 <field name="note"/>
1839 <separator string="Computation"/>
1840 <field name="line_ids"/>
1845 <record id="action_payment_term_form" model="ir.actions.act_window">
1846 <field name="name">Payment Terms</field>
1847 <field name="res_model">account.payment.term</field>
1848 <field name="view_type">form</field>
1849 <field name="view_mode">tree,form</field>
1850 <field name="search_view_id" ref="view_payment_term_search"/>
1852 <menuitem action="action_payment_term_form"
1853 id="menu_action_payment_term_form" parent="menu_configuration_misc"/>
1856 # Account Subscriptions
1859 <record id="view_subscription_line_form" model="ir.ui.view">
1860 <field name="name">account.subscription.line.form</field>
1861 <field name="model">account.subscription.line</field>
1862 <field name="type">form</field>
1863 <field name="arch" type="xml">
1864 <form string="Subscription lines" version="7.0">
1866 <field name="date"/>
1867 <field name="move_id"/>
1873 <record id="view_subscription_line_tree" model="ir.ui.view">
1874 <field name="name">account.subscription.line.tree</field>
1875 <field name="model">account.subscription.line</field>
1876 <field name="type">tree</field>
1877 <field name="arch" type="xml">
1878 <tree string="Subscription lines">
1879 <field name="date"/>
1880 <field name="move_id"/>
1885 <record id="view_subscription_tree" model="ir.ui.view">
1886 <field name="name">account.subscription.tree</field>
1887 <field name="model">account.subscription</field>
1888 <field name="type">tree</field>
1889 <field name="arch" type="xml">
1890 <tree colors="blue:state == 'draft';gray:state == 'done';black:state == 'running'" string="Entry Subscription">
1891 <field name="name"/>
1892 <field name="model_id"/>
1894 <field name="date_start"/>
1895 <field name="state"/>
1900 <record id="view_subscription_search" model="ir.ui.view">
1901 <field name="name">account.subscription.search</field>
1902 <field name="model">account.subscription</field>
1903 <field name="type">search</field>
1904 <field name="arch" type="xml">
1905 <search string="Entry Subscription">
1906 <field name="name" string="Account Subscription"/>
1907 <field name="date_start"/>
1908 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Subscription"/>
1909 <filter icon="terp-camera_test" string="Running" domain="[('state','=','running')]" help="Running Subscription"/>
1910 <field name="model_id"/>
1911 <group expand="0" string="Group By...">
1912 <filter string="Model" icon="terp-folder-orange" domain="[]" context="{'group_by':'model_id'}"/>
1913 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1919 <record id="view_subscription_form" model="ir.ui.view">
1920 <field name="name">account.subscription.form</field>
1921 <field name="model">account.subscription</field>
1922 <field name="type">form</field>
1923 <field name="arch" type="xml">
1924 <form string="Recurring" version="7.0">
1926 <button name="state_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert" />
1927 <button name="compute" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific" class="oe_highlight"/>
1928 <button name="remove_line" states="running" string="Remove Lines" type="object" icon="gtk-remove" class="oe_highlight"/>
1929 <field name="state" widget="statusbar" statusbar_visible="draft,running,done"/>
1934 <field name="name"/>
1935 <field name="model_id"/>
1939 <field name="date_start"/>
1940 <field name="period_type"/>
1941 <field name="period_nbr"/>
1942 <field name="period_total"/>
1945 <separator string="Subscription Lines"/>
1946 <field name="lines_id" widget="one2many_list"/>
1951 <record id="action_subscription_form" model="ir.actions.act_window">
1952 <field name="name">Recurring Lines</field>
1953 <field name="res_model">account.subscription</field>
1954 <field name="view_type">form</field>
1955 <field name="view_mode">tree,form</field>
1956 <field name="search_view_id" ref="view_subscription_search"/>
1957 <field name="help" type="html">
1958 <p class="oe_view_nocontent_create">
1959 Click to define a new recurring entry.
1961 A recurring entry occurs on a recurrent basis from a specific
1962 date, i.e. corresponding to the signature of a contract or an
1963 agreement with a customer or a supplier. You can create such
1964 entries to automate the postings in the system.
1969 name="Define Recurring Entries" action="action_subscription_form"
1970 id="menu_action_subscription_form" sequence="1"
1971 parent="account.menu_finance_recurrent_entries"/>
1973 <record id="action_subscription_form_running" model="ir.actions.act_window">
1974 <field name="name">Running Subscriptions</field>
1975 <field name="res_model">account.subscription</field>
1976 <field name="view_type">form</field>
1977 <field name="view_mode">tree,form</field>
1978 <field name="domain">[('state','=','running')]</field>
1979 <field name="filter" eval="True"/>
1982 <record id="action_subscription_form_new" model="ir.actions.act_window">
1983 <field name="name">New Subscription</field>
1984 <field name="res_model">account.subscription</field>
1985 <field name="view_type">form</field>
1986 <field name="view_mode">form,tree</field>
1987 <field name="view_id" ref="view_subscription_form"/>
1990 <record id="view_subscription_line_form_complete" model="ir.ui.view">
1991 <field name="name">account.subscription.line.form</field>
1992 <field name="model">account.subscription.line</field>
1993 <field name="type">form</field>
1994 <field eval="20" name="priority"/>
1995 <field name="arch" type="xml">
1996 <form string="Subscription lines" version="7.0">
1998 <field name="subscription_id"/>
1999 <field name="date"/>
2000 <field name="move_id"/>
2006 <record id="action_move_line_tree1" model="ir.actions.act_window">
2007 <field name="name">Journal Items</field>
2008 <field name="res_model">account.move.line</field>
2009 <field name="view_type">form</field>
2010 <field name="view_mode">tree,form</field>
2011 <field name="domain">[('account_id','child_of', [active_id]),('state','<>','draft')]</field>
2012 <field name="context">{'account_id':active_id}</field>
2015 <record id="view_move_line_tax_tree" model="ir.ui.view">
2016 <field name="name">account.move.line.tax.tree</field>
2017 <field name="model">account.move.line</field>
2018 <field name="type">tree</field>
2019 <field eval="4" name="priority"/>
2020 <field name="arch" type="xml">
2021 <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items">
2022 <field name="date"/>
2023 <field name="move_id"/>
2024 <field name="statement_id" string="St."/>
2025 <field name="name"/>
2026 <field name="partner_id"/>
2027 <field name="account_id"/>
2028 <field name="tax_code_id"/>
2029 <field name="tax_amount"/>
2030 <field name="debit" sum="Total debit"/>
2031 <field name="credit" sum="Total credit"/>
2032 <field name="account_tax_id"/>
2033 <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
2034 <field name="state"/>
2039 <record id="action_tax_code_line_open" model="ir.actions.act_window">
2040 <field name="name">Journal Items</field>
2041 <field name="res_model">account.move.line</field>
2042 <field name="view_type">form</field>
2043 <field name="view_mode">tree,form</field>
2044 <field name="view_id" ref="view_move_line_tax_tree"/>
2045 <field name="domain">[('tax_code_id','child_of',active_id),('state','<>','draft')]</field>
2047 <record id="ir_open_tax_move_line" model="ir.values">
2048 <field name="key2">tree_but_open</field>
2049 <field name="model">account.tax.code</field>
2050 <field name="name">Tax Details</field>
2051 <field eval="'ir.actions.act_window,%d'%action_tax_code_line_open" name="value"/>
2060 id="act_account_journal_2_account_bank_statement"
2061 name="Bank statements"
2062 context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
2063 res_model="account.bank.statement"
2064 src_model="account.journal"/>
2067 id="act_account_journal_2_account_move_line"
2068 name="Journal Items"
2069 context="{'search_default_journal_id':active_id, 'default_journal_id': active_id}"
2070 res_model="account.move.line"
2071 src_model="account.journal"/>
2074 context="{'search_default_reconcile_id':False, 'search_default_partner_id':[active_id], 'default_partner_id': active_id}"
2075 domain="[('account_id.reconcile', '=', True),('account_id.type', 'in', ['receivable', 'payable'])]"
2076 id="act_account_partner_account_move_all"
2077 name="Receivables & Payables"
2078 res_model="account.move.line"
2079 src_model="res.partner"/>
2081 <act_window context="{'search_default_partner_id':[active_id], 'default_partner_id': active_id}" id="act_account_partner_account_move" name="Journal Items" res_model="account.move.line" src_model="res.partner" groups="account.group_account_user"/>
2083 <record id="view_account_addtmpl_wizard_form" model="ir.ui.view">
2084 <field name="name">Create Account</field>
2085 <field name="model">account.addtmpl.wizard</field>
2086 <field name="type">form</field>
2087 <field name="arch" type="xml">
2088 <form string="Create Account" version="7.0">
2090 <button icon="gtk-ok" name="action_create" string="Add" type="object" class="oe_highlight" />
2092 <separator col="4" colspan="4" string="Create an Account Based on this Template"/>
2093 <field name="cparent_id"/>
2098 <act_window domain="[]" id="action_account_addtmpl_wizard_form"
2099 name="Create Account"
2101 res_model="account.addtmpl.wizard"
2102 context="{'tmpl_ids': active_id}"
2103 src_model="account.account.template"
2104 view_type="form" view_mode="form"/>
2106 <!-- Account Templates -->
2108 id="account_template_folder"
2110 parent="menu_finance_accounting"
2111 groups="base.group_multi_company"/>
2113 id="account_template_taxes"
2115 parent="account_template_folder"
2118 id="account_template_accounts"
2120 parent="account_template_folder"
2124 <record id="view_account_template_form" model="ir.ui.view">
2125 <field name="name">account.account.template.form</field>
2126 <field name="model">account.account.template</field>
2127 <field name="type">form</field>
2128 <field name="arch" type="xml">
2129 <form string="Account Template" version="7.0">
2131 <page string="General Information">
2133 <field name="name"/>
2134 <field name="code"/>
2136 <field name="parent_id"/>
2137 <field name="shortcut"/>
2138 <field name="type"/>
2139 <field name="user_type"/>
2141 <field name="currency_id"/>
2142 <field name="reconcile"/>
2143 <field name="chart_template_id"/>
2145 <separator string="Default Taxes"/>
2146 <field name="tax_ids"/>
2148 <page string="Notes">
2149 <field name="note"/>
2156 <record id="view_account_template_tree" model="ir.ui.view">
2157 <field name="name">account.account.template.tree</field>
2158 <field name="model">account.account.template</field>
2159 <field name="type">tree</field>
2160 <field name="arch" type="xml">
2161 <tree string="Account Template">
2162 <field name="code"/>
2163 <field name="name"/>
2164 <field name="type" invisible="1"/>
2165 <field name="user_type" invisible="1"/>
2170 <record id="view_account_template_search" model="ir.ui.view">
2171 <field name="name">account.account.template.search</field>
2172 <field name="model">account.account.template</field>
2173 <field name="type">search</field>
2174 <field name="arch" type="xml">
2175 <search string="Search Account Templates">
2176 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account Template"/>
2177 <filter icon="terp-sale" string="Receivale Accounts" domain="[('type','=','receivable')]"/>
2178 <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
2179 <field name="parent_id"/>
2180 <field name="user_type"/>
2181 <field name="type"/>
2182 <group expand="0" string="Group By...">
2183 <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
2184 <filter string="Account Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'user_type'}"/>
2190 <record id="action_account_template_form" model="ir.actions.act_window">
2191 <field name="name">Account Templates</field>
2192 <field name="res_model">account.account.template</field>
2193 <field name="view_type">form</field>
2194 <field name="view_mode">tree,form</field>
2195 <field name="search_view_id" ref="view_account_template_search"/>
2198 <menuitem action="action_account_template_form" id="menu_action_account_template_form" parent="account_template_accounts"/>
2200 <!-- Chart of Accounts Templates -->
2202 <record id="view_account_chart_template_form" model="ir.ui.view">
2203 <field name="name">account.chart.template.form</field>
2204 <field name="model">account.chart.template</field>
2205 <field name="type">form</field>
2206 <field name="arch" type="xml">
2207 <form string="Chart of Accounts Template" version="7.0">
2209 <field name="name"/>
2210 <field name="account_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
2211 <field name="bank_account_view_id" attrs="{'required': [('parent_id', '=', False)]}"/>
2212 <field name="tax_code_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
2213 <field name="parent_id" />
2214 <!--<field name="code_digits" />-->
2215 <field name="visible" />
2216 <field name="complete_tax_set" />
2218 <field name="tax_template_ids" colspan="4" readonly="1" nolabel="1"/>
2219 <separator string="Properties" colspan="4"/>
2221 <field name="property_account_receivable" domain="[('id', 'child_of', [account_root_id])]"/>
2222 <field name="property_account_payable" domain="[('id', 'child_of', [account_root_id])]"/>
2223 <field name="property_account_expense_categ" domain="[('id', 'child_of', [account_root_id])]"/>
2224 <field name="property_account_income_categ" domain="[('id', 'child_of', [account_root_id])]" />
2225 <field name="property_account_expense" domain="[('id', 'child_of', [account_root_id])]"/>
2226 <field name="property_account_income" domain="[('id', 'child_of', [account_root_id])]"/>
2227 <field name="property_account_income_opening" domain="[('id', 'child_of', [account_root_id])]"/>
2228 <field name="property_account_expense_opening" domain="[('id', 'child_of', [account_root_id])]"/>
2229 <field name="property_reserve_and_surplus_account" />
2234 <record id="view_account_chart_template_seacrh" model="ir.ui.view">
2235 <field name="name">account.chart.template.search</field>
2236 <field name="model">account.chart.template</field>
2237 <field name="type">search</field>
2238 <field name="arch" type="xml">
2239 <search string="Search Chart of Account Templates">
2240 <field name="name" string="Account Template"/>
2241 <field name="account_root_id"/>
2242 <field name="bank_account_view_id"/>
2243 <group expand="0" string="Group By...">
2244 <filter string="Root Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'account_root_id'}"/>
2245 <filter string="Bank Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'bank_account_view_id'}"/>
2246 <filter string="Receivable Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_receivable'}"/>
2247 <filter string="Payable Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_payable'}"/>
2248 <filter string="Income Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_income_categ'}"/>
2249 <filter string="Expense Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_expense_categ'}"/>
2254 <record id="view_account_chart_template_tree" model="ir.ui.view">
2255 <field name="name">account.chart.template.tree</field>
2256 <field name="model">account.chart.template</field>
2257 <field name="type">tree</field>
2258 <field name="arch" type="xml">
2259 <tree string="Chart of Accounts Template">
2260 <field name="name"/>
2261 <field name="account_root_id"/>
2262 <field name="tax_code_root_id"/>
2263 <field name="bank_account_view_id"/>
2264 <field name="property_account_receivable" invisible="1"/>
2265 <field name="property_account_payable" invisible="1"/>
2266 <field name="property_account_expense_categ" invisible="1"/>
2267 <field name="property_account_income_categ" invisible="1"/>
2271 <record id="action_account_chart_template_form" model="ir.actions.act_window">
2272 <field name="name">Chart of Accounts Templates</field>
2273 <field name="res_model">account.chart.template</field>
2274 <field name="view_type">form</field>
2275 <field name="view_mode">tree,form</field>
2278 <menuitem action="action_account_chart_template_form" id="menu_action_account_chart_template_form" parent="account_template_accounts" sequence="1"/>
2280 <!-- Account Tax Templates -->
2282 <record id="view_account_tax_template_form" model="ir.ui.view">
2283 <field name="name">account.tax.template.form</field>
2284 <field name="model">account.tax.template</field>
2285 <field name="type">form</field>
2286 <field name="arch" type="xml">
2287 <form string="Account Tax Template" version="7.0">
2289 <field name="name"/>
2290 <field name="description"/>
2291 <field name="chart_template_id"/>
2292 <field name="type"/>
2293 <field name="type_tax_use"/>
2294 <field name="price_include"/>
2297 <page string="Tax Definition">
2299 <field name="applicable_type"/>
2300 <field name="amount" attrs="{'readonly':[('type','=','none'),('type','=','code')]}"/>
2301 <field name="include_base_amount"/>
2302 <field name="domain"/>
2304 <field name="account_collected_id"/>
2305 <label colspan="2" string="Keep empty to use the income account"/>
2306 <field name="account_paid_id"/>
2307 <label colspan="2" string="Keep empty to use the expense account"/>
2308 <field name="child_depend"/>
2309 <field name="sequence"/>
2312 <page string="Tax Declaration">
2314 <separator colspan="4" string="Invoices"/>
2315 <field name="base_code_id"/>
2316 <field name="base_sign"/>
2317 <field name="tax_code_id"/>
2318 <field name="tax_sign"/>
2320 <separator colspan="4" string="Credit Notes"/>
2321 <field name="ref_base_code_id"/>
2322 <field name="ref_base_sign"/>
2323 <field name="ref_tax_code_id"/>
2324 <field name="ref_tax_sign"/>
2327 <page string="Special Computation">
2328 <separator string="Compute Code (if type=code)"/>
2329 <field name="python_compute" attrs="{'readonly':[('type','!=','code')]}"/>
2330 <separator string="Compute Code for Taxes Included Prices"/>
2331 <field name="python_compute_inv"/>
2332 <separator string="Applicable Code (if type=code)"/>
2333 <field name="python_applicable" attrs="{'readonly':[('applicable_type','=','true')]}"/>
2339 <record id="view_account_tax_template_tree" model="ir.ui.view">
2340 <field name="name">account.tax.template.tree</field>
2341 <field name="model">account.tax.template</field>
2342 <field name="type">tree</field>
2343 <field name="arch" type="xml">
2344 <tree string="Account Tax Template">
2345 <field name="name" />
2346 <field name="description"/>
2350 <record id="view_account_tax_template_search" model="ir.ui.view">
2351 <field name="name">account.tax.template.search</field>
2352 <field name="model">account.tax.template</field>
2353 <field name="type">search</field>
2354 <field name="arch" type="xml">
2355 <search string="Search Tax Templates">
2356 <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax Template"/>
2357 <filter icon="terp-sale" string="Sale" domain="[('type_tax_use','=','sale')]" help="Taxes used in Sales"/>
2358 <filter icon="terp-purchase" string="Purchase" domain="[('type_tax_use','=','purchase')]" help="Taxes used in Purchases"/>
2359 <field name="chart_template_id"/>
2364 <record id="action_account_tax_template_form" model="ir.actions.act_window">
2365 <field name="name">Tax Templates</field>
2366 <field name="res_model">account.tax.template</field>
2367 <field name="view_type">form</field>
2368 <field name="view_mode">tree,form</field>
2369 <field name="search_view_id" ref="view_account_tax_template_search"/>
2372 <menuitem action="action_account_tax_template_form" id="menu_action_account_tax_template_form" parent="account_template_taxes" sequence="13"/>
2374 <!-- Account Tax Code Templates -->
2375 <record id="view_tax_code_template_tree" model="ir.ui.view">
2376 <field name="name">account.tax.code.template.tree</field>
2377 <field name="model">account.tax.code.template</field>
2378 <field name="type">tree</field>
2379 <field name="field_parent">child_ids</field>
2380 <field name="arch" type="xml">
2381 <tree string="Account Tax Code Template" toolbar="1">
2382 <field name="name"/>
2383 <field name="code"/>
2384 <field name="parent_id" invisible="1"/>
2389 <record id="view_tax_code_template_search" model="ir.ui.view">
2390 <field name="name">account.tax.code.template.search</field>
2391 <field name="model">account.tax.code.template</field>
2392 <field name="type">search</field>
2393 <field name="arch" type="xml">
2394 <search string="Search tax template">
2395 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Tax Template"/>
2396 <field name="parent_id"/>
2397 <group expand="0" string="Group By...">
2398 <filter string="Parent Code" icon="terp-folder-orange" domain="[]" context="{'group_by':'parent_id'}"/>
2404 <record id="view_tax_code_template_form" model="ir.ui.view">
2405 <field name="name">account.tax.code.template.form</field>
2406 <field name="model">account.tax.code.template</field>
2407 <field name="type">form</field>
2408 <field name="arch" type="xml">
2409 <form string="Account Tax Code Template" version="7.0">
2411 <field name="name"/>
2412 <field name="code"/>
2413 <field name="parent_id"/>
2414 <field name="sign"/>
2416 <separator string="Description"/>
2417 <field name="info"/>
2422 <record id="action_account_tax_code_template_form" model="ir.actions.act_window">
2423 <field name="name">Tax Code Templates</field>
2424 <field name="res_model">account.tax.code.template</field>
2425 <field name="view_type">form</field>
2426 <field name="view_mode">tree,form</field>
2427 <field name="search_view_id" ref="view_tax_code_template_search"/>
2429 <menuitem action="action_account_tax_code_template_form" id="menu_action_account_tax_code_template_form" parent="account_template_taxes" sequence="14"/>
2432 <!-- Wizard for Multi Charts of Accounts -->
2434 <record id="view_wizard_multi_chart" model="ir.ui.view">
2435 <field name="name">Set Your Accounting Options</field>
2436 <field name="model">wizard.multi.charts.accounts</field>
2437 <field name="type">form</field>
2438 <field name="inherit_id" ref="base.res_config_view_base"/>
2439 <field name="arch" type="xml">
2440 <form position="attributes" version="7.0">
2441 <attribute name="string">Accounting Application Configuration</attribute>
2443 <group string="res_config_contents" position="replace">
2444 <field name="only_one_chart_template" invisible="1"/>
2445 <field name="complete_tax_set" invisible="1"/>
2446 <div groups="base.group_multi_company">
2447 <label for="company_id"/>
2448 <field name="company_id" widget="selection"/> <!-- we assume that this wizard will be run only by administrators and as this field may cause problem if hidden (because of the default company of the user removed from the selection because already configured), we simply choosed to remove the group "multi company" of it -->
2451 <div attrs="{'invisible': [('only_one_chart_template','=',True)]}">
2452 <label for="chart_template_id"/>
2453 <field name="chart_template_id" widget="selection" on_change="onchange_chart_template_id(chart_template_id)" domain="[('visible','=', True)]"/>
2456 <group groups="account.group_account_user">
2457 <field name="code_digits"/>
2460 <field name="sale_tax" attrs="{'invisible': [('complete_tax_set', '!=', True)]}" domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"/>
2461 <label for="sale_tax_rate" string="Sale Tax" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
2462 <div attrs="{'invisible': [('complete_tax_set', '=', True)]}">
2463 <field name="sale_tax_rate" class="oe_inline" on_change="onchange_tax_rate(sale_tax_rate)"/> %%
2465 <field name="purchase_tax" attrs="{'invisible': [('complete_tax_set', '!=', True)]}" domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"/>
2466 <label for="purchase_tax_rate" string="Purchase Tax" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
2467 <div attrs="{'invisible': [('complete_tax_set', '=', True)]}">
2468 <field name="purchase_tax_rate" class="oe_inline"/> %%
2472 <div groups="account.group_account_user">
2473 <label for="bank_accounts_id" string="Bank Information"/>
2474 <field name="bank_accounts_id">
2475 <tree editable="bottom">
2476 <field name="acc_name"/>
2477 <field name="account_type"/>
2478 <field name="currency_id" widget="selection"/>
2486 <record id="action_wizard_multi_chart" model="ir.actions.act_window">
2487 <field name="name">Set Your Accounting Options</field>
2488 <field name="type">ir.actions.act_window</field>
2489 <field name="res_model">wizard.multi.charts.accounts</field>
2490 <field name="view_id" ref="view_wizard_multi_chart"/>
2491 <field name="view_type">form</field>
2492 <field name="view_mode">form</field>
2493 <field name="target">new</field>
2495 <record id="ir_actions_server_action_wizard_multi_chart" model="ir.actions.server">
2496 <field name="type">ir.actions.server</field>
2497 <field name="condition">True</field>
2498 <field name="state">code</field>
2499 <field name="model_id" ref="base.model_ir_actions_todo"/>
2500 <field eval="5" name="sequence"/>
2502 # check for unconfigured companies
2503 account_installer_obj = self.pool.get('account.installer')
2504 account_installer_obj.check_unconfigured_cmp(cr, uid, context=context)
2506 # fetch the act_window actions related to chart of account configuration
2507 # we use ir.actions.todo to enable the possibility for other modules to insert their own
2508 # wizards during the configuration process
2509 ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'account', 'action_wizard_multi_chart')
2511 action_ids += [ref[1]]
2512 ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'account', 'action_account_configuration_installer')
2514 action_ids += [ref[1]]
2515 todo_ids = pool.get('ir.actions.todo').search(cr, uid, [('action_id', 'in', action_ids)], context=context)
2516 pool.get('ir.actions.todo').write(cr, uid, todo_ids, {'state':'open'}, context=context)
2517 action = pool.get('res.config').next(cr, uid, [], context)
2519 <field name="name">New Company Financial Setting</field>
2522 <record id="account_account_graph" model="ir.ui.view">
2523 <field name="name">account.account.graph</field>
2524 <field name="model">account.account</field>
2525 <field name="type">graph</field>
2526 <field name="arch" type="xml">
2527 <graph string="Account Statistics" type="bar">
2528 <field name="name"/>
2529 <field name="balance" operator="+"/>
2534 <!-- Fiscal Position Templates -->
2536 <record id="view_account_position_template_search" model="ir.ui.view">
2537 <field name="name">account.fiscal.position.template.search</field>
2538 <field name="model">account.fiscal.position.template</field>
2539 <field name="type">search</field>
2540 <field name="arch" type="xml">
2541 <search string="Fiscal Position">
2542 <field name="name" string="Fiscal Position Template"/>
2547 <record id="view_account_position_template_form" model="ir.ui.view">
2548 <field name="name">account.fiscal.position.template.form</field>
2549 <field name="model">account.fiscal.position.template</field>
2550 <field name="type">form</field>
2551 <field name="arch" type="xml">
2552 <form string="Fiscal Position Template" version="7.0">
2554 <field name="name"/>
2555 <field name="chart_template_id"/>
2557 <field name="tax_ids">
2558 <tree string="Taxes Mapping" editable="bottom">
2559 <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2560 <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2562 <form string="Taxes Mapping" version="7.0">
2563 <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2564 <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2567 <field name="account_ids">
2568 <tree string="Accounts Mapping" editable="bottom">
2569 <field name="account_src_id"/>
2570 <field name="account_dest_id"/>
2572 <form string="Accounts Mapping" version="7.0">
2573 <field name="account_src_id"/>
2574 <field name="account_dest_id"/>
2580 <record id="view_account_position_template_tree" model="ir.ui.view">
2581 <field name="name">account.fiscal.position.template.tree</field>
2582 <field name="model">account.fiscal.position.template</field>
2583 <field name="type">tree</field>
2584 <field name="arch" type="xml">
2585 <tree string="Fiscal Position">
2586 <field name="name"/>
2591 <record id="action_account_fiscal_position_template_form" model="ir.actions.act_window">
2592 <field name="name">Fiscal Position Templates</field>
2593 <field name="res_model">account.fiscal.position.template</field>
2594 <field name="view_type">form</field>
2595 <field name="view_mode">tree,form</field>
2596 <field name="search_view_id" ref="view_account_position_template_search"/>
2600 action="action_account_fiscal_position_template_form"
2601 id="menu_action_account_fiscal_position_form_template"
2602 parent="account_template_taxes" sequence="20"/>
2604 <!-- Cash Statement -->
2605 <record id="view_cash_statement_tree" model="ir.ui.view">
2606 <field name="name">account.bank.statement.tree</field>
2607 <field name="model">account.bank.statement</field>
2608 <field name="type">tree</field>
2609 <field name="arch" type="xml">
2610 <tree colors="red:balance_end_real!=balance_end;blue:state=='draft' and (balance_end_real==balance_end);black:state == 'open'" string="Statement">
2611 <field name="name"/>
2612 <field name="date"/>
2613 <field name="period_id"/>
2614 <field name="journal_id"/>
2615 <field name="balance_start"/>
2616 <field name="balance_end_real"/>
2617 <field name="balance_end" invisible="1" />
2618 <field name="state"/>
2623 <record id="view_bank_statement_form2" model="ir.ui.view">
2624 <field name="name">account.bank.statement.form</field>
2625 <field name="model">account.bank.statement</field>
2626 <field name="type">form</field>
2627 <field name="arch" type="xml">
2628 <form version="7.0">
2630 <button name="button_confirm_cash" states="open" string="Close CashBox" type="object" class="oe_highlight"/>
2631 <button name="button_open" states="draft" string="Open CashBox" type="object" class="oe_highlight"/>
2632 <button name="button_cancel" states="confirm,open" string="Cancel" type="object" groups="base.group_extended"/>
2633 <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,confirm"/>
2635 <sheet string="Statement">
2636 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
2637 <h1><field name="name" class="oe_inline" attrs="{'invisible':[('name','=','/')]}"/></h1>
2640 <field name="journal_id" on_change="onchange_journal_id(journal_id)" widget="selection" domain="[('type', '=', 'cash')]" />
2641 <field name="user_id" readonly="1" string="Responsible"/>
2642 <field name="total_entry_encoding"/>
2643 <field name='company_id' widget="selection" groups="base.group_multi_company" />
2646 <field name="date" attrs="{'readonly':[('state','!=','draft')]}" on_change="onchange_date(date, company_id)"/>
2647 <field name="closing_date" readonly="1"/>
2648 <field name="period_id" class="oe_inline"/>
2649 <field name="currency" invisible="1"/>
2653 <page string="Cash Transactions" attrs="{'invisible': [('state','=','draft')]}">
2654 <field name="line_ids" context="{'date':date}">
2655 <tree editable="bottom" string="Statement lines">
2656 <field name="sequence" invisible="1"/>
2657 <field name="date"/>
2658 <field name="name"/>
2660 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
2661 <field name="type" on_change="onchange_type(partner_id, type)"/>
2662 <field domain="[('journal_id','=',parent.journal_id), ('company_id', '=', parent.company_id)]" name="account_id"/>
2663 <field name="analytic_account_id" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]" groups="analytic.group_analytic_accounting" />
2664 <field name="amount"/>
2666 <form string="Statement lines" version="7.0">
2668 <field name="date"/>
2669 <field name="name"/>
2671 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
2672 <field name="type" on_change="onchange_type(partner_id, type)"/>
2673 <field domain="[('journal_id', '=', parent.journal_id), ('type', '<>', 'view'), ('company_id', '=', parent.company_id)]" name="account_id"/>
2674 <field name="analytic_account_id" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]" groups="analytic.group_analytic_accounting" />
2675 <field name="amount"/>
2676 <field name="sequence"/>
2678 <separator string="Notes"/>
2679 <field name="note"/>
2683 <page string="Cash Control">
2684 <group col="2" expand="1">
2685 <field name="opening_details_ids" nolabel="1" colspan="4" attrs="{'invisible' : [('state', '!=', 'draft')]}">
2686 <tree string="Opening Cashbox Lines" editable="bottom">
2687 <field name="pieces"/>
2688 <field name="number_opening" string="Opening Unit Numbers" on_change="on_change_sub_opening(pieces, number_opening, parent.balance_end)"/>
2689 <field name="subtotal_opening" string="Opening Subtotal"/>
2692 <field name="closing_details_ids" nolabel="1" colspan="4" attrs="{'invisible' : [('state', '=', 'draft')]}">
2693 <tree string="Closing Cashbox Lines" editable="bottom">
2694 <field name="pieces" readonly="1" />
2695 <field name="number_opening" string="Opening Unit Numbers" readonly="1" />
2696 <field name="subtotal_opening" string="Opening Subtotal" readonly="1" />
2698 <field name="number_closing" string="Closing Unit Numbers" on_change="on_change_sub_closing(pieces, number_closing, parent.balance_end)"/>
2699 <field name="subtotal_closing" string="Closing Subtotal"/>
2704 <page string="Journal Entries" attrs="{'invisible': [('state','!=','confirm')]}">
2705 <field name="move_line_ids" string="Journal Entries"/>
2708 <group col="6" colspan="4">
2709 <group col="2" colspan="2">
2710 <separator string="Opening Balance" colspan="4"/>
2711 <field name="balance_start" readonly="1" string="Opening Cash Control"/>
2712 <field name="last_closing_balance" readonly="1" string="Last Closing Balance" />
2713 <field name="total_entry_encoding" />
2715 <group string="Closing Balance">
2716 <field name="balance_end"/>
2723 <record id="account_cash_statement_graph" model="ir.ui.view">
2724 <field name="name">account.bank.statement.graph</field>
2725 <field name="model">account.bank.statement</field>
2726 <field name="type">graph</field>
2727 <field name="arch" type="xml">
2728 <graph string="Account Statistics" type="bar">
2729 <field name="date"/>
2730 <field name="balance_start" operator="+"/>
2731 <field name="balance_end" operator="+"/>
2735 <record id="action_view_bank_statement_tree" model="ir.actions.act_window">
2736 <field name="name">Cash Registers</field>
2737 <field name="type">ir.actions.act_window</field>
2738 <field name="res_model">account.bank.statement</field>
2739 <field name="view_type">form</field>
2740 <field name="view_mode">tree,form,graph</field>
2741 <field name="view_id" ref="view_cash_statement_tree"/>
2742 <field name="search_view_id" ref="view_account_bank_statement_filter"/>
2743 <field name="domain">[('journal_id.type', '=', 'cash')]</field>
2744 <field name="context">{'journal_type':'cash'}</field>
2745 <field name="help" type="html">
2746 <p class="oe_view_nocontent_create">
2747 Click to create a new cash log.
2749 A Cash Register allows you to manage cash entries in your cash
2750 journals. This feature provides an easy way to follow up cash
2751 payments on a daily basis. You can enter the coins that are in
2752 your cash box, and then post entries when money comes in or
2753 goes out of the cash box.
2757 <record model="ir.actions.act_window.view" id="act_cash_statement1_all">
2758 <field name="sequence" eval="1"/>
2759 <field name="view_mode">tree</field>
2760 <field name="view_id" ref="view_cash_statement_tree"/>
2761 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2763 <record model="ir.actions.act_window.view" id="act_cash_statement2_all">
2764 <field name="sequence" eval="1"/>
2765 <field name="view_mode">form</field>
2766 <field name="view_id" ref="view_bank_statement_form2"/>
2767 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2769 <record model="ir.actions.act_window.view" id="act_cash_statement3_all">
2770 <field name="sequence" eval="1"/>
2771 <field name="view_mode">graph</field>
2772 <field name="view_id" ref="account_cash_statement_graph"/>
2773 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2775 <menuitem action="action_view_bank_statement_tree" id="journal_cash_move_lines"
2776 parent="menu_finance_bank_and_cash"/>
2778 <menuitem id="menu_account_customer" name="Customers"
2779 parent="menu_finance_receivables"
2780 action="base.action_partner_customer_form" sequence="100"/>
2782 <menuitem id="menu_account_supplier" name="Suppliers"
2783 parent="menu_finance_payables"
2784 action="base.action_partner_supplier_form" sequence="100"/>
2790 <record id="view_account_financial_report_form" model="ir.ui.view">
2791 <field name="name">account.financial.report.form</field>
2792 <field name="model">account.financial.report</field>
2793 <field name="type">form</field>
2794 <field name="arch" type="xml">
2795 <form string="Account Report" version="7.0">
2797 <field name="name"/>
2798 <field name="parent_id"/>
2799 <field name="sequence"/>
2800 <field name="type"/>
2801 <field name="sign"/>
2802 <field name="style_overwrite"/>
2805 <page string="Report">
2807 <field name="display_detail" attrs="{'invisible': [('type','not in',['accounts','account_type'])]}"/>
2808 <field name="account_report_id" attrs="{'invisible': [('type', '!=', 'account_report')]}"/>
2810 <field name="account_ids" attrs="{'invisible': [('type', '!=', 'accounts')]}"/>
2811 <field name="account_type_ids" attrs="{'invisible': [('type', '!=', 'account_type')]}"/>
2818 <record id="view_account_financial_report_tree" model="ir.ui.view">
2819 <field name="name">account.financial.report.tree</field>
2820 <field name="model">account.financial.report</field>
2821 <field name="type">tree</field>
2822 <field name="arch" type="xml">
2823 <tree string="Account Report">
2824 <field name="name"/>
2825 <field name="parent_id" invisible="1"/>
2826 <field name="type"/>
2827 <field name="account_report_id"/>
2832 <record id="view_account_financial_report_search" model="ir.ui.view">
2833 <field name="name">account.financial.report.search</field>
2834 <field name="model">account.financial.report</field>
2835 <field name="type">search</field>
2836 <field name="arch" type="xml">
2837 <search string="Account Report">
2838 <field name="name" string="Account Report"/>
2839 <field name="type"/>
2840 <field name="account_report_id"/>
2841 <group expand="0" string="Group By...">
2842 <filter string="Parent Report" icon="terp-folder-orange" domain="" context="{'group_by':'parent_id'}"/>
2843 <filter string="Report Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
2849 <record id="action_account_financial_report_tree" model="ir.actions.act_window">
2850 <field name="name">Financial Reports</field>
2851 <field name="type">ir.actions.act_window</field>
2852 <field name="res_model">account.financial.report</field>
2853 <field name="view_type">form</field>
2854 <field name="view_mode">tree,form</field>
2855 <field name="search_view_id" ref="view_account_financial_report_search"/>
2856 <field name="view_id" ref="view_account_financial_report_tree"/>
2859 <menuitem id="menu_account_financial_reports_tree" name="Account Reports" parent="menu_account_reports" action="action_account_financial_report_tree"/>
2861 <record id="view_account_report_tree_hierarchy" model="ir.ui.view">
2862 <field name="name">account.report.hierarchy</field>
2863 <field name="model">account.financial.report</field>
2864 <field name="type">tree</field>
2865 <field name="field_parent">children_ids</field>
2866 <field name="arch" type="xml">
2867 <tree string="Account Reports Hierarchy">
2868 <field name="name"/>
2869 <field name="type"/>
2870 <field name="parent_id" invisible="1"/>
2871 <field name="account_report_id"/>
2875 <record id="action_account_report_tree_hierarchy" model="ir.actions.act_window">
2876 <field name="name">Financial Reports Hierarchy</field>
2877 <field name="res_model">account.financial.report</field>
2878 <field name="view_type">tree</field>
2879 <field name="view_id" ref="view_account_report_tree_hierarchy"/>
2880 <field name="domain">[('parent_id','=',False)]</field>
2883 <menuitem id="menu_account_report_tree_hierarchy" name="Account Reports Hierarchy"
2884 parent="menu_account_reports" action="action_account_report_tree_hierarchy"/>