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"/>
17 <button name="create_period3" states="draft" string="Create 3 Months Periods" type="object"/>
18 <field name="state" widget="statusbar" nolabel="1" />
20 <sheet string="Fiscalyear" layout="auto">
25 <field name="company_id" groups="base.group_multi_company"/>
26 <field name="end_journal_period_id"/>
29 <field name="date_start"/>
30 <field name="date_stop"/>
33 <field colspan="4" name="period_ids" nolabel="1" widget="one2many_list">
34 <form string="Period" version="7.0">
38 <field name="date_start"/>
39 <field name="date_stop"/>
40 <field name="special"/>
48 <record id="view_account_fiscalyear_tree" model="ir.ui.view">
49 <field name="name">account.fiscalyear.tree</field>
50 <field name="model">account.fiscalyear</field>
51 <field name="type">tree</field>
52 <field name="arch" type="xml">
53 <tree colors="blue:state == 'draft';gray:state == 'done' " string="Fiscalyear">
56 <field name="company_id" groups="base.group_multi_company"/>
61 <record id="view_account_fiscalyear_search" model="ir.ui.view">
62 <field name="name">account.fiscalyear.search</field>
63 <field name="model">account.fiscalyear</field>
64 <field name="type">search</field>
65 <field name="arch" type="xml">
66 <search string="Search Fiscalyear">
68 <filter string="Open" domain="[('state','=','draft')]" icon="terp-camera_test"/>
69 <filter string="Closed" domain="[('state','=','done')]" icon="terp-dialog-close"/>
70 <separator orientation="vertical"/>
76 <group expand="0" string="Group By...">
77 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
82 <record id="action_account_fiscalyear_form" model="ir.actions.act_window">
83 <field name="name">Fiscal Years</field>
84 <field name="res_model">account.fiscalyear</field>
85 <field name="view_type">form</field>
86 <field name="view_mode">tree,form</field>
87 <field name="help">Define your company's financial year according to your needs. A financial year is a period at the end of which a company's accounts are made up (usually 12 months). The financial year is usually referred to by the date in which it ends. For example, if a company's financial year ends November 30, 2011, then everything between December 1, 2010 and November 30, 2011 would be referred to as FY 2011. You are not obliged to follow the actual calendar year.</field>
89 <menuitem id="next_id_23" name="Periods" parent="account.menu_finance_configuration" sequence="5" />
90 <menuitem action="action_account_fiscalyear_form" id="menu_action_account_fiscalyear_form" parent="next_id_23"/>
96 <record id="view_account_period_form" model="ir.ui.view">
97 <field name="name">account.period.form</field>
98 <field name="model">account.period</field>
99 <field name="type">form</field>
100 <field name="arch" type="xml">
103 <button name="action_draft" states="done" string="Set to Draft" type="object" groups="account.group_account_manager"/>
104 <field name="state" widget="statusbar" nolabel="1"/>
110 <field name="date_start"/>
111 <field name="date_stop"/>
112 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
113 <field name="fiscalyear_id" widget="selection"/>
114 <field name="special"/>
120 <record id="view_account_period_tree" model="ir.ui.view">
121 <field name="name">account.period.tree</field>
122 <field name="model">account.period</field>
123 <field name="type">tree</field>
124 <field name="arch" type="xml">
125 <tree colors="blue:state == 'draft';gray:state == 'done' " string="Period">
128 <field name="date_start"/>
129 <field name="date_stop"/>
130 <field name="special"/>
131 <field name="company_id" groups="base.group_multi_company"/>
132 <field name="state"/>
137 <record id="view_account_period_search" model="ir.ui.view">
138 <field name="name">account.period.search</field>
139 <field name="model">account.period</field>
140 <field name="type">search</field>
141 <field name="arch" type="xml">
142 <search string="Search Period">
144 <filter string="To Close" name="draft" domain="[('state','=','draft')]" icon="terp-dialog-close"/>
145 <separator orientation="vertical"/>
153 <record id="action_account_period_form" model="ir.actions.act_window">
154 <field name="name">Periods</field>
155 <field name="res_model">account.period</field>
156 <field name="view_type">form</field>
157 <field name="view_mode">tree,form</field>
158 <field name="context">{'search_default_draft': 1}</field>
159 <field name="help">Here you can define a financial period, an interval of time in your company's financial year. An accounting period typically is a month or a quarter. It usually corresponds to the periods of the tax declaration. Create and manage periods from here and decide whether a period should be closed or left open depending on your company's activities over a specific period.</field>
161 <menuitem action="action_account_period_form" id="menu_action_account_period_form" parent="account.next_id_23" groups="base.group_no_one"/>
167 <record id="view_account_form" model="ir.ui.view">
168 <field name="name">account.account.form</field>
169 <field name="model">account.account</field>
170 <field name="type">form</field>
171 <field name="arch" type="xml">
172 <form string="Account" version="7.0">
173 <label for="name" class="oe_form_readonly_hidden" string="Account Name and Code:"/>
175 <field name="name"/> -
178 <label for="company_id"/>
180 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
184 <field name="parent_id"/>
186 <field name="user_type"/>
187 <field name="active"/>
190 <field name="debit" invisible="context.get('config_invisible', True)" attrs="{'readonly':[('type','=','view')]}"/>
191 <field name="credit" invisible="context.get('config_invisible', True)" attrs="{'readonly':[('type','=','view')]}"/>
192 <field name="balance" invisible="context.get('config_invisible', True)"/>
195 <field name="tax_ids" domain="[('parent_id','=',False)]" widget="many2many_tags"/>
196 <field name="child_consol_ids"
197 attrs="{'readonly':[('type','!=','consolidation')]}"
198 widget="many2many_tags"/>
200 <group string="Currency">
201 <field name="currency_id"/>
202 <field name="currency_mode" attrs="{'readonly': [('currency_id','=',False)]}"/>
204 <group string="Reconcile">
205 <field name="reconcile"/>
213 <record id="view_account_search" model="ir.ui.view">
214 <field name="name">account.account.search</field>
215 <field name="model">account.account</field>
216 <field name="type">search</field>
217 <field name="arch" type="xml">
218 <search string="Accounts">
220 <filter icon="terp-sale" string="Receivable Accounts" domain="[('type','=','receivable')]"/>
221 <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
222 <separator orientation="vertical"/>
225 <field name="user_type"/>
228 <group expand="0" string="Group By...">
229 <filter string="Parent Account" icon="terp-folder-orange" domain="" context="{'group_by':'parent_id'}"/>
230 <separator orientation="vertical"/>
231 <filter string="Account Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'user_type'}"/>
232 <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'type'}"/>
238 <record id="view_account_list" model="ir.ui.view">
239 <field name="name">account.account.list</field>
240 <field name="model">account.account</field>
241 <field name="type">tree</field>
242 <field name="field_parent">child_id</field>
243 <field name="arch" type="xml">
244 <tree colors="blue:type == 'view';black:type in ('other','receivable','payable','consolidation');gray:type == 'closed'" string="Chart of accounts" toolbar="1" >
247 <field name="parent_id" invisible="1"/>
248 <field name="user_type" invisible="1"/>
249 <field name="debit"/>
250 <field name="credit"/>
251 <field name="balance"/>
253 <field name="company_id" groups="base.group_multi_company"/>
254 <field name="company_currency_id"/>
258 <record id="view_treasory_graph" model="ir.ui.view">
259 <field name="name">account.treasury.graph</field>
260 <field name="model">account.account</field>
261 <field name="type">graph</field>
262 <field name="arch" type="xml">
263 <graph string="Treasury Analysis" type="bar">
265 <field name="balance" operator="+"/>
269 <record id="action_account_form" model="ir.actions.act_window">
270 <field name="name">Accounts</field>
271 <field name="res_model">account.account</field>
272 <field name="view_type">form</field>
273 <field name="view_mode">tree,form,graph</field>
274 <field name="search_view_id" ref="view_account_search"/>
275 <field name="view_id" ref="view_account_list"/>
276 <field name="help">Create and manage the accounts you need to record journal entries. An account is part of a ledger allowing your company to register all kinds of debit and credit transactions. Companies present their annual accounts in two main parts: the balance sheet and the income statement (profit and loss account). The annual accounts of a company are required by law to disclose a certain amount of information. They have to be certified by an external auditor annually.</field>
278 <menuitem id="account_account_menu" name="Accounts" parent="account.menu_finance_configuration" sequence="15"/>
279 <menuitem action="action_account_form" id="menu_action_account_form" parent="account_account_menu"/>
281 <record id="view_account_tree" model="ir.ui.view">
282 <field name="name">account.account.tree</field>
283 <field name="model">account.account</field>
284 <field name="type">tree</field>
285 <field name="field_parent">child_id</field>
286 <field name="arch" type="xml">
287 <tree colors="blue:type == 'view';black:type in ('other','receivable','payable','consolidation');gray:type == 'closed'" string="Chart of accounts" toolbar="1" >
290 <field name="debit"/>
291 <field name="credit"/>
292 <field name="balance"/>
293 <field name="company_currency_id"/>
294 <field name="company_id" groups="base.group_multi_company"/>
296 <field name="parent_id" invisible="1"/>
300 <record id="action_account_tree" model="ir.actions.act_window">
301 <field name="name">Chart of Accounts</field>
302 <field name="res_model">account.account</field>
303 <field name="view_type">tree</field>
304 <field name="view_id" ref="view_account_tree"/>
305 <field name="domain">[('parent_id','=',False)]</field>
308 <record id="view_account_gain_loss_tree" model="ir.ui.view">
309 <field name="name">Unrealized Gain or Loss</field>
310 <field name="model">account.account</field>
311 <field name="type">tree</field>
312 <field name="arch" type="xml">
313 <tree string="Unrealized Gains and losses">
316 <field name="parent_id" invisible="1"/>
317 <field name="user_type" invisible="1"/>
318 <field name="type" invisible="1"/>
319 <field name="currency_id"/>
320 <field name="exchange_rate"/>
321 <field name="foreign_balance"/>
322 <field name="adjusted_balance"/>
323 <field name="balance"/>
324 <field name="unrealized_gain_loss"/>
329 <record id="action_account_gain_loss" model="ir.actions.act_window">
330 <field name="name">Unrealized Gain or Loss</field>
331 <field name="res_model">account.account</field>
332 <field name="view_type">form</field>
333 <field name="view_mode">tree</field>
334 <field name="view_id" ref="view_account_gain_loss_tree"/>
335 <field name="domain">[('currency_id','!=',False)]</field>
336 <field name="help">When doing multi-currency transactions, you may loose or gain some amount due to changes of exchange rate. This menu gives you a forecast of the Gain or Loss you'd realized if those transactions were ended today. Only for accounts having a secondary currency set.</field>
340 name="Unrealized Gain or Loss"
341 action="action_account_gain_loss"
342 groups="account.group_account_user"
343 id="menu_unrealized_gains_losses"
344 parent="account.menu_multi_currency"/>
349 Account Journal Columns
352 <record id="view_journal_column_form" model="ir.ui.view">
353 <field name="name">account.journal.column.form</field>
354 <field name="model">account.journal.column</field>
355 <field name="type">form</field>
356 <field name="arch" type="xml">
357 <form string="Journal Column" version="7.0">
359 <field name="field"/>
360 <field name="sequence"/>
364 <record id="view_journal_column_tree" model="ir.ui.view">
365 <field name="name">account.journal.column.tree</field>
366 <field name="model">account.journal.column</field>
367 <field name="type">tree</field>
368 <field name="arch" type="xml">
369 <tree string="Journal Column">
370 <field name="sequence"/>
376 <record id="view_account_journal_view_search" model="ir.ui.view">
377 <field name="name">account.journal.view.search</field>
378 <field name="model">account.journal.view</field>
379 <field name="type">search</field>
380 <field name="arch" type="xml">
381 <search string="Journal View">
386 <record id="view_account_journal_view_tree" model="ir.ui.view">
387 <field name="name">account.journal.view.tree</field>
388 <field name="model">account.journal.view</field>
389 <field name="type">tree</field>
390 <field name="arch" type="xml">
391 <tree string="Journal View">
396 <record id="view_account_journal_view_form" model="ir.ui.view">
397 <field name="name">account.journal.view.form</field>
398 <field name="model">account.journal.view</field>
399 <field name="type">form</field>
400 <field name="arch" type="xml">
401 <form string="Journal View" version="7.0">
403 <field name="columns_id"/>
407 <record id="action_account_journal_view" model="ir.actions.act_window">
408 <field name="name">Journal Views</field>
409 <field name="res_model">account.journal.view</field>
410 <field name="view_type">form</field>
411 <field name="view_mode">tree,form</field>
412 <field name="search_view_id" ref="view_account_journal_view_search"/>
413 <field name="help">Here you can customize an existing journal view or create a new view. Journal views determine the way you can record entries in your journal. Select the fields you want to appear in a journal and determine the sequence in which they will appear. Then you can create a new journal and link your view to it.</field>
416 <menuitem action="action_account_journal_view" id="menu_action_account_journal_view" parent="account.menu_journals" sequence="20"/>
422 <record id="view_account_journal_tree" model="ir.ui.view">
423 <field name="name">account.journal.tree</field>
424 <field name="model">account.journal</field>
425 <field name="type">tree</field>
426 <field name="arch" type="xml">
427 <tree string="Account Journal">
431 <field name="user_id"/>
432 <field name="company_id" groups="base.group_multi_company"/>
436 <record id="view_account_journal_search" model="ir.ui.view">
437 <field name="name">account.journal.search</field>
438 <field name="model">account.journal</field>
439 <field name="type">search</field>
440 <field name="arch" type="xml">
441 <search string="Search Account Journal">
443 <filter domain="['|', ('type', '=', 'sale'), ('type', '=', 'sale_refund')]" string="Sale" icon="terp-camera_test"/>
444 <filter domain="['|', ('type', '=', 'purchase'), ('type', '=', 'purchase_refund')]" string="Purchase" icon="terp-purchase"/>
445 <filter domain="['|', ('type', '=', 'cash'), ('type', '=', 'bank')]" string="Liquidity" icon="terp-dolar"/>
446 <filter domain="['|', ('type', '=', 'general'), ('type', '=', 'situation')]" string="Others" icon="terp-stock"/>
447 <separator orientation="vertical"/>
450 <field name="user_id"/>
453 <group expand="0" string="Group By...">
454 <filter string="User" context="{'group_by':'user_id'}" icon="terp-personal"/>
455 <separator orientation="vertical"/>
456 <filter string="Type" context="{'group_by':'type'}" icon="terp-stock_symbol-selection"/>
462 <record id="view_account_journal_form" model="ir.ui.view">
463 <field name="name">account.journal.form</field>
464 <field name="model">account.journal</field>
465 <field name="type">form</field>
466 <field name="arch" type="xml">
467 <form string="Account Journal" version="7.0">
468 <div class="oe_form_title">
469 <label for="name" class="oe_form_readonly_hidden"/>
470 <h1><field name="name"/></h1>
471 <label for="type" class="oe_form_readonly_hidden"/>
472 <h2><field name="type" on_change="onchange_type(type, currency, context)"/></h2>
475 <page string="Journal Configuration">
479 <field name="currency"/>
482 <field name="company_id" groups="base.group_multi_company"/>
483 <field name="user_id"/>
486 <field name="default_debit_account_id" attrs="{'required':[('type','in', ('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
487 <field name="default_credit_account_id" attrs="{'required':[('type','in',('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
488 <field name="view_id" widget="selection"/>
489 <field name="sequence_id" required="0"/>
492 <field name="centralisation"/>
493 <field name="entry_posted"/>
494 <field name="allow_date"/>
495 <field name="group_invoice_lines"/>
498 <field name="type_control_ids" widget="many2many_tags"/>
499 <field name="account_control_ids" widget="many2many_tags"/>
508 <record id="action_account_journal_form" model="ir.actions.act_window">
509 <field name="name">Journals</field>
510 <field name="res_model">account.journal</field>
511 <field name="view_type">form</field>
512 <field name="view_mode">tree,form</field>
513 <field name="help">Create and manage your company's journals from this menu. A journal is used to record transactions of all accounting data related to the day-to-day business of your company using double-entry bookkeeping system. Depending on the nature of its activities and the number of daily transactions, a company may keep several types of specialized journals such as a cash journal, purchase journal, sales journal...</field>
515 <menuitem action="action_account_journal_form" id="menu_action_account_journal_form" parent="menu_journals"/>
517 <record id="view_account_bank_statement_filter" model="ir.ui.view">
518 <field name="name">account.cash.statement.select</field>
519 <field name="model">account.bank.statement</field>
520 <field name="type">search</field>
521 <field name="arch" type="xml">
522 <search string="Search Bank Statements">
524 <filter string="Draft" name="state_draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
525 <filter string="Open" name="state_open" domain="[('state','=','open')]" icon="terp-check"/>
526 <filter string="Confirmed" name="state_confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
527 <separator orientation="vertical"/>
530 <field name="journal_id" widget='selection' domain="[('type', '=', 'cash')]" />
533 <group expand="0" string="Group By...">
534 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
535 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
536 <separator orientation="vertical"/>
537 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
543 <record id="view_bank_statement_tree" model="ir.ui.view">
544 <field name="name">account.bank.statement.tree</field>
545 <field name="model">account.bank.statement</field>
546 <field name="type">tree</field>
547 <field name="arch" type="xml">
548 <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">
551 <field name="period_id"/>
552 <field name="journal_id"/>
553 <field name="balance_start"/>
554 <field name="balance_end_real"/>
555 <field name="balance_end" invisible="1"/>
556 <field name="state"/>
560 <record id="view_bank_statement_search" model="ir.ui.view">
561 <field name="name">account.bank.statement.search</field>
562 <field name="model">account.bank.statement</field>
563 <field name="type">search</field>
564 <field name="arch" type="xml">
565 <search string="Search Bank Statements">
567 <filter string="Draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
568 <filter string="Confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
569 <separator orientation="vertical"/>
572 <field name="period_id"/>
573 <field name="journal_id" widget="selection" domain="[('type', '=', 'bank')]" />
576 <group expand="0" string="Group By...">
577 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
578 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
579 <separator orientation="vertical"/>
580 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
585 <record id="view_bank_statement_form" model="ir.ui.view">
586 <field name="name">account.bank.statement.form</field>
587 <field name="model">account.bank.statement</field>
588 <field name="type">form</field>
589 <field name="arch" type="xml">
590 <form string="Bank Statement" version="7.0">
592 <button name="button_confirm_bank" states="draft" string="Confirm" type="object" />
593 <button name="button_dummy" states="draft" string="Compute" type="object"/>
594 <button name="button_cancel" states="confirm" string="Cancel" type="object"/>
595 <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/>
601 <field name="date" on_change="onchange_date(date, company_id)"/>
602 <field name="journal_id" domain="[('type', '=', 'bank')]" on_change="onchange_journal_id(journal_id)" widget="selection"/>
603 <field name="period_id"/>
604 <field name='company_id' widget="selection" groups="base.group_multi_company" />
606 <field name="balance_start"/>
607 <field name="balance_end_real"/>
608 <field name="currency" invisible="1"/>
613 <page string="Transactions" name="statement_line_ids">
614 <field name="line_ids" context="{'date':date}">
615 <tree editable="bottom" string="Statement lines">
616 <field name="sequence" readonly="1" invisible="1"/>
620 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
621 <field name="type" on_change="onchange_type(partner_id, type)"/>
622 <field domain="[('journal_id','=',parent.journal_id), ('company_id', '=', parent.company_id)]" name="account_id"/>
623 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]"/>
624 <field name="amount"/>
626 <form string="Statement lines" version="7.0">
631 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
632 <field name="type" on_change="onchange_type(partner_id, type)"/>
633 <field domain="[('journal_id', '=', parent.journal_id), ('type', '<>', 'view'), ('company_id', '=', parent.company_id)]" name="account_id"/>
634 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]"/>
635 <field name="amount"/>
636 <field name="sequence" readonly="0"/>
638 <separator string="Notes"/>
643 <page string="Journal Entries" name="move_live_ids">
644 <field name="move_line_ids"/>
653 <record id="action_bank_statement_tree" model="ir.actions.act_window">
654 <field name="name">Bank Statements</field>
655 <field name="res_model">account.bank.statement</field>
656 <field name="view_type">form</field>
657 <field name="view_mode">tree,form,graph</field>
658 <field name="domain">[('journal_id.type', '=', 'bank')]</field>
659 <field name="context">{'journal_type':'bank'}</field>
660 <field name="search_view_id" ref="view_bank_statement_search"/>
661 <field name="help">A bank statement is a summary of all financial transactions occurring over a given period of time on a deposit account, a credit card or any other type of financial account. The starting balance will be proposed automatically and the closing balance is to be found on your statement. When you are in the Payment column of a line, you can press F1 to open the reconciliation form.</field>
663 <record model="ir.actions.act_window.view" id="action_bank_statement_tree_bank">
664 <field name="sequence" eval="1"/>
665 <field name="view_mode">tree</field>
666 <field name="view_id" ref="view_bank_statement_tree"/>
667 <field name="act_window_id" ref="action_bank_statement_tree"/>
669 <record model="ir.actions.act_window.view" id="action_bank_statement_form_bank">
670 <field name="sequence" eval="1"/>
671 <field name="view_mode">form</field>
672 <field name="view_id" ref="view_bank_statement_form"/>
673 <field name="act_window_id" ref="action_bank_statement_tree"/>
676 <menuitem string="Bank Statements" action="action_bank_statement_tree" id="menu_bank_statement_tree" parent="menu_finance_bank_and_cash" sequence="7"/>
678 <record id="action_bank_statement_draft_tree" model="ir.actions.act_window">
679 <field name="name">Draft statements</field>
680 <field name="res_model">account.bank.statement</field>
681 <field name="view_type">form</field>
682 <field name="view_mode">tree,form</field>
683 <field name="domain">[('state','=','draft')]</field>
684 <field name="filter" eval="True"/>
690 <record id="view_account_type_search" model="ir.ui.view">
691 <field name="name">account.account.type.search</field>
692 <field name="model">account.account.type</field>
693 <field name="type">search</field>
694 <field name="arch" type="xml">
695 <search string="Account Type">
702 <record id="view_account_type_tree" model="ir.ui.view">
703 <field name="name">account.account.type.tree</field>
704 <field name="model">account.account.type</field>
705 <field name="type">tree</field>
706 <field name="arch" type="xml">
707 <tree string="Account Type">
714 <record id="view_account_type_form" model="ir.ui.view">
715 <field name="name">account.account.type.form</field>
716 <field name="model">account.account.type</field>
717 <field name="type">form</field>
718 <field name="arch" type="xml">
719 <form string="Account Type" version="7.0">
726 <field name="report_type"/>
727 <field name="close_method"/>
730 <separator string="Description"/>
735 <record id="action_account_type_form" model="ir.actions.act_window">
736 <field name="name">Account Types</field>
737 <field name="res_model">account.account.type</field>
738 <field name="view_type">form</field>
739 <field name="view_mode">tree,form</field>
740 <field name="search_view_id" ref="view_account_type_search"/>
741 <field name="help">An account type is used to determine how an account is used in each journal. The deferral method of an account type determines the process for the annual closing. Reports such as the Balance Sheet and the Profit and Loss report use the category (profit/loss or balance sheet). For example, the account type could be linked to an asset account, expense account or payable account. From this view, you can create and manage the account types you need for your company.</field>
743 <menuitem action="action_account_type_form" sequence="20" id="menu_action_account_type_form" parent="account_account_menu" groups="base.group_no_one"/>
747 <record id="view_account_move_tree" model="ir.ui.view">
748 <field name="name">account.move.tree</field>
749 <field name="model">account.move</field>
750 <field name="type">tree</field>
751 <field name="arch" type="xml">
752 <tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries">
756 <field name="period_id"/>
757 <field name="journal_id"/>
758 <field name="partner_id"/>
759 <field name="amount" sum="Total Amount"/>
760 <field name="state"/>
769 <record id="view_move_reconcile_form" model="ir.ui.view">
770 <field name="name">account.move.reconcile.form</field>
771 <field name="model">account.move.reconcile</field>
772 <field name="type">form</field>
773 <field name="arch" type="xml">
774 <form string="Journal Entry Reconcile" version="7.0">
777 <field name="create_date"/>
780 <separator string="Reconcile Entries"/>
781 <field name="line_id"/>
782 <separator string="Partial Reconcile Entries"/>
783 <field name="line_partial_ids"/>
791 <record id="view_tax_code_search" model="ir.ui.view">
792 <field name="name">account.tax.code.search</field>
793 <field name="model">account.tax.code</field>
794 <field name="type">search</field>
795 <field name="arch" type="xml">
796 <search string="Account Tax Code">
799 <field name="parent_id"/>
800 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
804 <record id="view_tax_code_tree" model="ir.ui.view">
805 <field name="name">account.tax.code.tree</field>
806 <field name="model">account.tax.code</field>
807 <field name="type">tree</field>
808 <field name="field_parent">child_ids</field>
809 <field name="priority">100</field>
810 <field name="arch" type="xml">
811 <tree string="Account Tax Code" toolbar="1">
814 <field name="sum_period"/>
816 <field name="company_id" groups="base.group_multi_company"/>
820 <record id="view_tax_code_form" model="ir.ui.view">
821 <field name="name">account.tax.code.form</field>
822 <field name="model">account.tax.code</field>
823 <field name="type">form</field>
824 <field name="arch" type="xml">
825 <form string="Account Tax Code" version="7.0">
827 <group col="4" colspan="2">
830 <field name="parent_id"/>
831 <field name="company_id" groups="base.group_multi_company"/>
833 <group string="Reporting Configuration">
834 <field name="notprintable"/>
837 <group string="Statistics">
838 <field name="sum_period"/>
842 <separator string="Description"/>
847 <record id="action_tax_code_list" model="ir.actions.act_window">
848 <field name="name">Tax codes</field>
849 <field name="res_model">account.tax.code</field>
850 <field name="view_type">form</field>
851 <field name="view_mode">tree,form</field>
852 <field name="view_id" ref="view_tax_code_tree"/>
853 <field name="search_view_id" ref="view_tax_code_search"/>
854 <field name="help">The tax code definition depends on the tax declaration of your country. OpenERP allows you to define the tax structure and manage it from this menu. You can define both numeric and alphanumeric tax codes.</field>
856 <menuitem id="next_id_27" name="Taxes" parent="account.menu_finance_configuration" sequence="20"/>
857 <menuitem action="action_tax_code_list" id="menu_action_tax_code_list" parent="next_id_27" sequence="12" groups="base.group_no_one"/>
863 <record id="view_tax_tree" model="ir.ui.view">
864 <field name="name">account.tax.tree</field>
865 <field name="model">account.tax</field>
866 <field name="type">tree</field>
867 <field name="field_parent">child_ids</field>
868 <field name="arch" type="xml">
869 <tree string="Account Tax">
871 <field name="price_include"/>
872 <field name="description"/>
873 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
877 <record id="view_account_tax_search" model="ir.ui.view">
878 <field name="name">account.tax.search</field>
879 <field name="model">account.tax</field>
880 <field name="type">search</field>
881 <field name="arch" type="xml">
882 <search string="Search Taxes">
885 <field name="description"/>
886 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
891 <record id="view_tax_form" model="ir.ui.view">
892 <field name="name">account.tax.form</field>
893 <field name="model">account.tax</field>
894 <field name="type">form</field>
895 <field name="arch" type="xml">
896 <form string="Account Tax" version="7.0">
899 <field name="description"/>
900 <field name="type_tax_use"/>
901 <field name="price_include"/>
902 <field name="active"/>
903 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
906 <page string="Tax Definition">
909 <field name="amount" attrs="{'readonly':[('type','in',('none', 'code', 'balance'))]}"/>
910 <separator colspan="4" string="Accounting Information"/>
911 <field name="account_collected_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
912 <label colspan="2" nolabel="1" string="Keep empty to use the income account"/>
913 <field name="account_paid_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
914 <label colspan="2" nolabel="1" string="Keep empty to use the expense account"/>
915 <separator colspan="4" string="Tax Declaration: Invoices"/>
916 <field name="base_code_id"/>
917 <field name="base_sign"/>
918 <field name="tax_code_id"/>
919 <field name="tax_sign"/>
920 <separator colspan="4" string="Tax Declaration: Credit Notes"/>
921 <field name="ref_base_code_id"/>
922 <field name="ref_base_sign"/>
923 <field name="ref_tax_code_id"/>
924 <field name="ref_tax_sign"/>
925 <separator colspan="4" string="Children Definition"/>
926 <field name="child_depend"/>
927 <field name="sequence"/>
928 <field name="include_base_amount"/>
929 <field colspan="4" name="child_ids">
930 <tree string="Account Tax">
931 <field name="sequence"/>
933 <field name="price_include"/>
934 <field name="description"/>
939 <page string="Special Computation">
941 <separator colspan="4" string="Applicability Options"/>
942 <field name="applicable_type"/>
943 <field name="domain"/>
944 <separator colspan="4" string="Applicable Code (if type=code)"/>
945 <field colspan="4" name="python_applicable" nolabel="1" attrs="{'readonly':[('applicable_type','=','true')], 'required':[('applicable_type','=','code')]}"/>
946 <separator colspan="2" string="Compute Code"/>
947 <separator colspan="2" string="Reverse Compute Code"/>
948 <field colspan="2" name="python_compute" nolabel="1" attrs="{'readonly':[('type','!=','code')],'required':[('type','=','code')]}"/>
949 <field colspan="2" name="python_compute_inv" nolabel="1" attrs="{'readonly':[('type','!=','code')],'required':[('type','=','code')]}"/>
956 <record id="action_tax_form" model="ir.actions.act_window">
957 <field name="name">Taxes</field>
958 <field name="res_model">account.tax</field>
959 <field name="view_type">form</field>
960 <field name="view_id" ref="view_tax_tree"/>
961 <field name="domain">[('parent_id','=',False)]</field>
963 <menuitem action="action_tax_form" id="menu_action_tax_form" parent="next_id_27"/>
965 <record id="action_tax_code_tree" model="ir.actions.act_window">
966 <field name="name">Chart of Taxes</field>
967 <field name="res_model">account.tax.code</field>
968 <field name="domain">[('parent_id','=',False)]</field>
969 <field name="view_type">tree</field>
970 <field name="view_id" ref="view_tax_code_tree"/>
971 <field name="help">The chart of taxes is used to generate your periodical tax statement. You will see the taxes with codes related to your legal statement according to your country.</field>
978 <record id="view_move_line_tree" model="ir.ui.view">
979 <field name="name">account.move.line.tree</field>
980 <field name="model">account.move.line</field>
981 <field name="type">tree</field>
982 <field eval="4" name="priority"/>
983 <field name="arch" type="xml">
984 <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" editable="top" on_write="on_create_write">
986 <field name="period_id"/>
987 <field name="move_id"/>
989 <field name="invoice"/>
991 <field name="partner_id" on_change="onchange_partner_id(move_id, partner_id, account_id, debit, credit, date, journal_id)"/>
992 <field name="account_id" domain="[('journal_id','=',journal_id), ('company_id', '=', company_id)]"/>
993 <field name="journal_id"/>
994 <field name="debit" sum="Total debit"/>
995 <field name="credit" sum="Total credit"/>
996 <field name="account_tax_id"/>
997 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]"/>
998 <field name="amount_currency" attrs="{'readonly':[('state','=','valid')]}"/>
999 <field name="currency_id" attrs="{'readonly':[('state','=','valid')]}"/>
1000 <field name="reconcile_partial_id"/>
1001 <field name="reconcile_id"/>
1002 <field name="state"/>
1007 <record id="view_move_line_form" model="ir.ui.view">
1008 <field name="name">account.move.line.form</field>
1009 <field name="model">account.move.line</field>
1010 <field name="type">form</field>
1011 <field eval="2" name="priority"/>
1012 <field name="arch" type="xml">
1013 <form string="Journal Item" version="7.0">
1015 <field name="name"/>
1017 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1019 <field name="journal_id"/>
1020 <field name="period_id"/>
1021 <field name="company_id" required="1" groups="base.group_multi_company"/>
1023 <notebook colspan="4">
1024 <page string="Information">
1026 <group string="Amount">
1027 <field name="account_id" domain="[('company_id', '=', company_id), ('type','<>','view'), ('type','<>','consolidation')]"/>
1028 <field name="debit"/>
1029 <field name="credit"/>
1030 <field name="quantity"/>
1033 <group string="Accounting Documents">
1034 <field name="invoice" readonly="True"/>
1035 <field name="move_id" required="False"/>
1036 <field name="statement_id" readonly="True"/>
1039 <group string="Dates">
1040 <field name="date"/>
1041 <field name="date_maturity"/>
1042 <field name="date_created" readonly="True"/>
1045 <group string="Taxes">
1046 <field name="tax_code_id"/>
1047 <field name="tax_amount"/>
1048 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1051 <group attrs="{'readonly':[('state','=','valid')]}" string="Currency">
1052 <field name="currency_id"/>
1053 <field name="amount_currency"/>
1056 <group string="Reconciliation">
1057 <field name="reconcile_id"/>
1058 <field name="reconcile_partial_id"/>
1061 <group string="States">
1062 <field name="state"/>
1063 <field name="blocked"/>
1066 <group groups="analytic.group_analytic_accounting" string="Analytic">
1067 <field name="analytic_account_id" domain="[('parent_id','!=',False)]"/>
1070 <separator string="Internal Note" colspan="4"/>
1071 <field name="narration" colspan="4" nolabel="1"/>
1073 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1074 <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)}"/>
1081 <record id="view_move_line_form2" model="ir.ui.view">
1082 <field name="name">account.move.line.form2</field>
1083 <field name="model">account.move.line</field>
1084 <field name="type">form</field>
1085 <field eval="9" name="priority"/>
1086 <field name="arch" type="xml">
1087 <form string="Journal Item" version="7.0">
1088 <notebook colspan="4">
1089 <page string="Information">
1091 <separator colspan="4" string="General Information"/>
1092 <field name="name"/>
1093 <field name="date"/>
1094 <field name="journal_id" readonly="False"/>
1095 <field name="period_id" readonly="False"/>
1096 <field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation'),('company_id', '=', company_id)]"/>
1097 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1099 <field name="debit"/>
1100 <field name="credit"/>
1102 <separator colspan="4" string="Optional Information"/>
1103 <field name="currency_id"/>
1104 <field name="amount_currency"/>
1105 <field name="quantity"/>
1106 <field name="move_id" required="False"/>
1108 <field name="date_maturity"/>
1109 <field name="date_created"/>
1110 <field name="date_created"/>
1111 <field name="blocked"/>
1113 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1114 <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1115 <separator colspan="4" string="Status"/>
1117 <field name="reconcile_id"/>
1118 <field name="reconcile_partial_id"/>
1119 <field name="state"/>
1122 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1123 <field name="analytic_lines"/>
1130 <record id="account_move_line_graph" model="ir.ui.view">
1131 <field name="name">account.move.line.graph</field>
1132 <field name="model">account.move.line</field>
1133 <field name="type">graph</field>
1134 <field name="arch" type="xml">
1135 <graph string="Account Statistics" type="bar">
1136 <field name="account_id"/>
1137 <field name="debit" operator="+"/>
1138 <field name="credit" operator="+"/>
1143 <record id="view_account_move_line_filter" model="ir.ui.view">
1144 <field name="name">Journal Items</field>
1145 <field name="model">account.move.line</field>
1146 <field name="type">search</field>
1147 <field name="arch" type="xml">
1148 <search string="Search Journal Items">
1150 <filter icon="terp-document-new" string="Unbalanced" domain="[('state','=','draft')]" help="Unbalanced Journal Items"/>
1151 <separator orientation="vertical"/>
1152 <filter icon="terp-document-new" string="Unposted" domain="[('move_id.state','=','draft')]" help="Unposted Journal Items"/>
1153 <filter name="posted" icon="terp-camera_test" string="Posted" domain="[('move_id.state','=','posted')]" help="Posted Journal Items"/>
1154 <separator orientation="vertical"/>
1156 icon="terp-dolar_ok!"
1157 string="Unreconciled"
1158 domain="[('reconcile_id','=',False), ('account_id.reconcile','=',True)]" help="Unreconciled Journal Items"
1159 name="unreconciled"/>
1160 <separator orientation="vertical"/>
1161 <field name="move_id" string="Number (Move)"/>
1162 <field name="date"/>
1163 <field name="account_id"/>
1164 <field name="partner_id">
1165 <filter 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)]"/>
1170 <field name="journal_id" widget="selection" context="{'journal_id':self}"/>
1171 <field name="period_id" context="{'period_id':self}"/>
1174 <group expand="0" string="Group By...">
1175 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1176 <separator orientation="vertical"/>
1177 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1178 <filter string="Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
1179 <separator orientation="vertical"/>
1180 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1187 <record id="action_account_moves_all_a" model="ir.actions.act_window">
1188 <field name="name">Journal Items</field>
1189 <field name="res_model">account.move.line</field>
1190 <field name="view_type">form</field>
1191 <field name="view_mode">tree,form</field>
1192 <field name="context">{}</field>
1193 <field name="search_view_id" ref="view_account_move_line_filter"/>
1194 <field name="help">This view can be used by accountants in order to quickly record entries in OpenERP. If you want to record a supplier invoice, start by recording the line of the expense account. OpenERP will propose to you automatically the Tax related to this account and the counterpart "Account Payable".</field>
1198 action="action_account_moves_all_a"
1199 icon="STOCK_JUSTIFY_FILL"
1200 id="menu_action_account_moves_all"
1201 parent="account.menu_finance_entries"
1203 groups="group_account_user"
1206 <record id="action_view_move_line" model="ir.actions.act_window">
1207 <field name="name">Lines to reconcile</field>
1208 <field name="res_model">account.move.line</field>
1209 <field name="view_type">form</field>
1210 <field name="view_mode">tree,form</field>
1211 <field name="domain">[('account_id.reconcile', '=', True),('reconcile_id','=',False)]</field>
1212 <field eval="False" name="view_id"/>
1213 <field eval="True" name="filter"/>
1214 <field name="search_view_id" ref="view_account_move_line_filter"/>
1217 <record id="action_move_line_select" model="ir.actions.act_window">
1218 <field name="name">Journal Items</field>
1219 <field name="res_model">account.move.line</field>
1220 <field name="view_type">form</field>
1221 <field name="view_mode">tree,form</field>
1222 <field name="view_id" ref="view_move_line_tree"/>
1223 <field name="search_view_id" ref="view_account_move_line_filter"/>
1224 <field name="context">{'search_default_account_id': [active_id]}</field>
1227 <record id="ir_account_move_line_select" model="ir.values">
1228 <field name="key2">tree_but_open</field>
1229 <field name="model">account.account</field>
1230 <field name="name">Open Journal Items</field>
1231 <field eval="'ir.actions.act_window,%d'%action_move_line_select" name="value"/>
1234 Account.Entry Edition
1237 <record id="account_move_graph" model="ir.ui.view">
1238 <field name="name">account.move.graph</field>
1239 <field name="model">account.move</field>
1240 <field name="type">graph</field>
1241 <field name="arch" type="xml">
1242 <graph string="Account Statistics" type="bar">
1243 <field name="period_id"/>
1244 <field name="amount" operator="+"/>
1248 <record id="view_move_tree" model="ir.ui.view">
1249 <field name="name">account.move.tree</field>
1250 <field name="model">account.move</field>
1251 <field name="type">tree</field>
1252 <field name="arch" type="xml">
1253 <tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries">
1254 <field name="name"/>
1256 <field name="date"/>
1257 <field name="period_id"/>
1258 <field name="journal_id"/>
1259 <field name="partner_id"/>
1260 <field name="amount" sum="Total Amount"/>
1261 <field name="to_check"/>
1262 <field name="state"/>
1266 <record id="view_move_form" model="ir.ui.view">
1267 <field name="name">account.move.form</field>
1268 <field name="model">account.move</field>
1269 <field name="type">form</field>
1270 <field name="arch" type="xml">
1271 <form version="7.0">
1273 <button name="button_validate" states="draft" string="Post" type="object"/>
1274 <button name="button_cancel" states="posted" string="Cancel" type="object"/>
1275 <field name="state" widget="statusbar"/>
1277 <sheet string="Journal Entries" layout="auto">
1279 <field name="name" readonly="True"/>
1281 <field name="journal_id"/>
1282 <field name="period_id"/>
1283 <field name="to_check"/>
1284 <field name="date"/>
1285 <field name="company_id" required="1" groups="base.group_multi_company"/>
1286 <field name="partner_id" invisible="1"/>
1287 <field name="amount" invisible="1"/>
1289 <notebook colspan="4">
1290 <page string="Journal Items">
1291 <field name="balance" invisible="1"/>
1292 <field colspan="4" name="line_id" widget="one2many_list"
1293 on_change="onchange_line_id(line_id)"
1294 context="{'balance': balance , 'journal': journal_id }">
1295 <form string="Journal Item" version="7.0">
1296 <group col="6" colspan="4">
1297 <field name="name"/>
1299 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1301 <field name="journal_id"/>
1302 <field name="period_id"/>
1303 <field name="company_id" required="1" groups="base.group_multi_company"/>
1305 <notebook colspan="4">
1306 <page string="Information">
1308 <group string="Amount">
1309 <field name="account_id" domain="[('company_id', '=', parent.company_id), ('type','<>','view'),('type','<>','consolidation')]"/>
1310 <field name="debit"/>
1311 <field name="credit"/>
1312 <field name="quantity"/>
1315 <group string="Accounting Documents">
1316 <field name="invoice"/>
1317 <field name="move_id" required="False"/>
1318 <field name="statement_id"/>
1321 <group string="Dates">
1322 <field name="date"/>
1323 <field name="date_maturity"/>
1324 <field name="date_created"/>
1327 <group string="Taxes">
1328 <field name="tax_code_id"/>
1329 <field name="tax_amount"/>
1330 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1333 <group string="Currency">
1334 <field name="currency_id"/>
1335 <field name="amount_currency"/>
1338 <group string="Reconciliation">
1339 <field name="reconcile_id"/>
1340 <field name="reconcile_partial_id"/>
1343 <group string="States">
1344 <field name="state"/>
1345 <field name="blocked"/>
1348 <group groups="analytic.group_analytic_accounting" string="Analytic">
1349 <field name="analytic_account_id" domain="[('parent_id','!=',False)]"/>
1352 <separator string="Internal Note"/>
1353 <field name="narration"/>
1355 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1356 <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)}"/>
1360 <tree colors="blue:state == 'draft';black:state == 'posted'" editable="top" string="Journal Items">
1362 <field name="invoice"/>
1363 <field name="name"/>
1364 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,parent.date,parent.journal_id)"/>
1365 <field name="account_id" domain="[('journal_id','=',parent.journal_id),('company_id', '=', parent.company_id)]"/>
1366 <field name="date_maturity"/>
1367 <field name="debit" sum="Total Debit"/>
1368 <field name="credit" sum="Total Credit"/>
1369 <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1370 <field name="amount_currency"/>
1371 <field name="currency_id"/>
1372 <field name="tax_code_id"/>
1373 <field name="tax_amount"/>
1374 <field name="state"/>
1375 <field name="reconcile_id"/>
1376 <field name="reconcile_partial_id"/>
1379 <separator string="Internal Note"/>
1380 <field name="narration" colspan="4" nolabel="1" height="50"/>
1388 <record id="view_account_move_filter" model="ir.ui.view">
1389 <field name="name">account.move.select</field>
1390 <field name="model">account.move</field>
1391 <field name="type">search</field>
1392 <field name="arch" type="xml">
1393 <search string="Search Move">
1395 <filter icon="terp-document-new" string="Unposted" domain="[('state','=','draft')]" help="Unposted Journal Entries"/>
1396 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Journal Entries"/>
1397 <separator orientation="vertical"/>
1398 <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('to_check','=',True)]" help="Journal Entries to Review"/>
1399 <separator orientation="vertical"/>
1400 <field name="name"/>
1402 <field name="partner_id"/>
1403 <field name="date"/>
1407 <field name="journal_id" widget="selection"/>
1408 <field name="period_id"/>
1411 <group expand="0" string="Group By...">
1412 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1413 <separator orientation="vertical"/>
1414 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1415 <filter string="States" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1416 <separator orientation="vertical"/>
1417 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1418 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1424 <record id="action_move_journal_line" model="ir.actions.act_window">
1425 <field name="name">Journal Entries</field>
1426 <field name="res_model">account.move</field>
1427 <field name="view_type">form</field>
1428 <field name="view_mode">tree,form,graph</field>
1429 <field name="view_id" ref="view_move_tree"/>
1430 <field name="search_view_id" ref="view_account_move_filter"/>
1431 <field name="help">A journal entry consists of several journal items, each of which is either a debit or a credit transaction. OpenERP automatically creates one journal entry per accounting document: invoice, refund, supplier payment, bank statements, etc.</field>
1435 icon="STOCK_JUSTIFY_FILL"
1436 action="action_move_journal_line"
1437 id="menu_action_move_journal_line_form"
1438 parent="account.menu_finance_entries"
1439 groups="group_account_user"
1442 <record id="action_move_line_form" model="ir.actions.act_window">
1443 <field name="name">Entries</field>
1444 <field name="type">ir.actions.act_window</field>
1445 <field name="res_model">account.move</field>
1446 <field name="view_type">form</field>
1447 <field name="view_id" ref="view_move_tree"/>
1448 <field name="search_view_id" ref="view_account_move_filter"/>
1452 id="act_account_move_to_account_move_line_open"
1453 name="Journal Items"
1454 context="{'search_default_move_id':[active_id], 'default_move_id': active_id}"
1455 res_model="account.move.line"
1456 src_model="account.move"/>
1458 <record id="action_move_line_search" model="ir.actions.act_window">
1459 <field name="name">Journal Items</field>
1460 <field name="type">ir.actions.act_window</field>
1461 <field name="res_model">account.move.line</field>
1462 <field name="view_type">form</field>
1463 <field name="view_mode">tree,form</field>
1464 <field name="view_id" ref="view_move_line_tree"/>
1465 <field name="search_view_id" ref="view_account_move_line_filter"/>
1467 <record id="action_move_line_search_view1" model="ir.actions.act_window.view">
1468 <field eval="10" name="sequence"/>
1469 <field name="view_mode">tree</field>
1470 <field name="view_id" ref="view_move_line_tree"/>
1471 <field name="act_window_id" ref="action_move_line_search"/>
1473 <record id="action_move_line_search_view2" model="ir.actions.act_window.view">
1474 <field eval="11" name="sequence"/>
1475 <field name="view_mode">form</field>
1476 <field name="act_window_id" ref="action_move_line_search"/>
1480 context="{'search_default_next_partner':1,'view_mode':True}"
1481 id="action_account_manual_reconcile" name="Journal Items"
1482 res_model="account.move.line"
1483 view_id="view_move_line_tree"/>
1487 name="Manual Reconciliation" icon="STOCK_EXECUTE"
1488 action="action_account_manual_reconcile"
1489 id="menu_manual_reconcile"
1490 parent="account.periodical_processing_reconciliation"/>
1494 id="act_account_acount_move_line_open"
1496 context="{'search_default_account_id':[active_id], 'search_default_unreconciled':0, 'default_account_id': active_id}"
1497 res_model="account.move.line"
1498 src_model="account.account"/>
1501 id="act_account_acount_move_line_open_unreconciled"
1502 name="Unreconciled Entries"
1503 res_model="account.move.line"
1504 context="{'search_default_account_id':[active_id], 'search_default_unreconciled':1, 'default_account_id': active_id}"
1505 src_model="account.account"/>
1508 domain="[('reconcile_id', '=', active_id)]"
1509 id="act_account_acount_move_line_reconcile_open"
1510 name="Reconciled entries"
1511 res_model="account.move.line"
1512 src_model="account.move.reconcile"/>
1517 Print Journal (and change state)
1518 Close Journal (and verify that there is no draft Entry Lines)
1521 <record id="view_journal_period_tree" model="ir.ui.view">
1522 <field name="name">account.journal.period.tree</field>
1523 <field name="model">account.journal.period</field>
1524 <field name="type">tree</field>
1525 <field name="arch" type="xml">
1526 <tree colors="blue:state == 'draft';gray:state == 'done';black:state == 'printed'" string="Journals">
1527 <field icon="icon" name="fiscalyear_id"/>
1528 <field name="period_id"/>
1529 <field name="journal_id"/>
1530 <field name="state"/>
1531 <field name="company_id" groups="base.group_multi_company"/>
1535 <record id="action_account_journal_period_tree" model="ir.actions.act_window">
1536 <field name="name">Journals</field>
1537 <field name="res_model">account.journal.period</field>
1538 <field name="view_type">tree</field>
1539 <field name="help">You can search for individual account entries through useful information. To search for account entries, open a journal, then select a record line.</field>
1546 <record id="view_model_line_tree" model="ir.ui.view">
1547 <field name="name">account.model.line.tree</field>
1548 <field name="model">account.model.line</field>
1549 <field name="type">tree</field>
1550 <field name="arch" type="xml">
1551 <tree string="Journal Entry Model Line" editable="bottom">
1552 <field name="sequence"/>
1553 <field name="name"/>
1554 <field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation'), ('company_id', '=', parent.company_id)]"/>
1555 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1556 <field name="partner_id"/>
1557 <field name="debit"/>
1558 <field name="credit"/>
1559 <field name="date_maturity"/>
1565 <record id="view_model_line_form" model="ir.ui.view">
1566 <field name="name">account.model.line.form</field>
1567 <field name="model">account.model.line</field>
1568 <field name="type">form</field>
1569 <field name="arch" type="xml">
1570 <form string="Journal Entry Model Line" version="7.0">
1572 <field colspan="4" name="name"/>
1573 <field name="sequence"/>
1574 <field name="account_id" domain="[('type','<>','view'), ('type','<>','consolidation'), ('company_id', '=', parent.company_id)]"/>
1575 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1576 <field name="partner_id"/>
1577 <field name="debit"/>
1578 <field name="credit"/>
1579 <field name="quantity"/>
1580 <field name="date_maturity"/>
1586 <record id="view_model_form" model="ir.ui.view">
1587 <field name="name">account.model.form</field>
1588 <field name="model">account.model</field>
1589 <field name="type">form</field>
1590 <field name="arch" type="xml">
1591 <form string="Journal Entry Model" version="7.0">
1593 <field name="name"/>
1594 <field name="journal_id"/>
1595 <field name="company_id" widget='selection' groups="base.group_multi_company"/>
1598 <field name="lines_id" widget="one2many_list"/>
1599 <separator string="Legend"/>
1600 <field name="legend"/>
1601 <button name="%(action_account_use_model_create_entry)d" string="Create entries" type="action" icon="gtk-execute"/>
1606 <record id="view_model_tree" model="ir.ui.view">
1607 <field name="name">account.model.tree</field>
1608 <field name="model">account.model</field>
1609 <field name="type">tree</field>
1610 <field name="arch" type="xml">
1611 <tree string="Journal Entry Model">
1612 <field name="name"/>
1613 <field name="journal_id"/>
1614 <field name="company_id" groups="base.group_multi_company"/>
1619 <record id="view_model_search" model="ir.ui.view">
1620 <field name="name">account.model.search</field>
1621 <field name="model">account.model</field>
1622 <field name="type">search</field>
1623 <field name="arch" type="xml">
1624 <search string="Journal Entry Model">
1626 <filter string="Sale" icon="terp-camera_test" domain="[('journal_id.type', '=', 'sale')]"/>
1627 <filter string="Purchase" icon="terp-purchase" domain="[('journal_id.type', '=', 'purchase')]"/>
1628 <separator orientation="vertical"/>
1629 <field name="name"/>
1630 <field name="journal_id" widget="selection"/>
1631 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
1634 <group expand="0" string="Group By...">
1635 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1641 <record id="action_model_form" model="ir.actions.act_window">
1642 <field name="name">Recurring Models</field>
1643 <field name="res_model">account.model</field>
1644 <field name="view_type">form</field>
1645 <field name="view_mode">tree,form</field>
1646 <field name="search_view_id" ref="view_model_search"/>
1649 action="action_model_form" id="menu_action_model_form" sequence="5"
1650 parent="account.menu_configuration_misc"/>
1656 <record id="view_payment_term_line_tree" model="ir.ui.view">
1657 <field name="name">account.payment.term.line.tree</field>
1658 <field name="model">account.payment.term.line</field>
1659 <field name="type">tree</field>
1660 <field name="arch" type="xml">
1661 <tree string="Payment Term">
1662 <field name="sequence"/>
1663 <field name="name"/>
1664 <field name="value"/>
1665 <field name="value_amount"/>
1666 <field name="days"/>
1667 <field name="days2"/>
1673 <record id="view_payment_term_line_form" model="ir.ui.view">
1674 <field name="name">account.payment.term.line.form</field>
1675 <field name="model">account.payment.term.line</field>
1676 <field name="type">form</field>
1677 <field name="arch" type="xml">
1678 <form string="Payment Term" version="7.0">
1679 <field name="name"/>
1680 <field name="sequence"/>
1682 <group string="Amount Computation">
1683 <field name="value"/>
1684 <field name="value_amount" attrs="{'readonly':[('value','=','balance')]}"/>
1686 <group string="Due Date Computation">
1687 <field name="days"/>
1688 <field name="days2"/>
1692 <separator string="Example"/>
1693 <label string="At 14 net days 2 percent, remaining amount at 30 days end of month."/>
1695 <label string="Line 1:" colspan="2"/>
1696 <label string=" Valuation: Percent"/>
1697 <label string=" Number of Days: 14"/>
1698 <label string=" Value amount: 0.02"/>
1699 <label string=" Day of the Month: 0"/>
1702 <label string="Line 2:" colspan="2"/>
1703 <label string=" Valuation: Balance"/>
1704 <label string=" Number of Days: 30"/>
1705 <label string=" Value amount: n.a"/>
1706 <label string=" Day of the Month= -1"/>
1712 <record id="view_payment_term_search" model="ir.ui.view">
1713 <field name="name">account.payment.term.search</field>
1714 <field name="model">account.payment.term</field>
1715 <field name="type">search</field>
1716 <field name="arch" type="xml">
1717 <search string="Payment Term">
1718 <field name="name"/>
1719 <field name="active"/>
1724 <record id="view_payment_term_form" model="ir.ui.view">
1725 <field name="name">account.payment.term.form</field>
1726 <field name="model">account.payment.term</field>
1727 <field name="type">form</field>
1728 <field name="arch" type="xml">
1729 <form string="Payment Term" version="7.0">
1731 <field name="name"/>
1732 <field name="active"/>
1734 <separator string="Description on Invoices"/>
1735 <field name="note"/>
1736 <separator string="Computation"/>
1737 <field name="line_ids"/>
1742 <record id="action_payment_term_form" model="ir.actions.act_window">
1743 <field name="name">Payment Terms</field>
1744 <field name="res_model">account.payment.term</field>
1745 <field name="view_type">form</field>
1746 <field name="view_mode">tree,form</field>
1747 <field name="search_view_id" ref="view_payment_term_search"/>
1749 <menuitem action="action_payment_term_form"
1750 id="menu_action_payment_term_form" parent="menu_configuration_misc"/>
1753 # Account Subscriptions
1756 <record id="view_subscription_line_form" model="ir.ui.view">
1757 <field name="name">account.subscription.line.form</field>
1758 <field name="model">account.subscription.line</field>
1759 <field name="type">form</field>
1760 <field name="arch" type="xml">
1761 <form string="Subscription lines" version="7.0">
1763 <field name="date"/>
1764 <field name="move_id"/>
1770 <record id="view_subscription_line_tree" model="ir.ui.view">
1771 <field name="name">account.subscription.line.tree</field>
1772 <field name="model">account.subscription.line</field>
1773 <field name="type">tree</field>
1774 <field name="arch" type="xml">
1775 <tree string="Subscription lines">
1776 <field name="date"/>
1777 <field name="move_id"/>
1782 <record id="view_subscription_tree" model="ir.ui.view">
1783 <field name="name">account.subscription.tree</field>
1784 <field name="model">account.subscription</field>
1785 <field name="type">tree</field>
1786 <field name="arch" type="xml">
1787 <tree colors="blue:state == 'draft';gray:state == 'done';black:state == 'running'" string="Entry Subscription">
1788 <field name="name"/>
1789 <field name="model_id"/>
1791 <field name="date_start"/>
1792 <field name="state"/>
1797 <record id="view_subscription_search" model="ir.ui.view">
1798 <field name="name">account.subscription.search</field>
1799 <field name="model">account.subscription</field>
1800 <field name="type">search</field>
1801 <field name="arch" type="xml">
1802 <search string="Entry Subscription">
1804 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Subscription"/>
1805 <filter icon="terp-camera_test" string="Running" domain="[('state','=','running')]" help="Running Subscription"/>
1806 <separator orientation="vertical"/>
1807 <field name="name"/>
1808 <field name="model_id"/>
1809 <field name="date_start"/>
1812 <group expand="0" string="Group By...">
1813 <filter string="Model" icon="terp-folder-orange" domain="[]" context="{'group_by':'model_id'}"/>
1814 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1820 <record id="view_subscription_form" model="ir.ui.view">
1821 <field name="name">account.subscription.form</field>
1822 <field name="model">account.subscription</field>
1823 <field name="type">form</field>
1824 <field name="arch" type="xml">
1825 <form string="Recurring" version="7.0">
1827 <button name="state_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert" />
1828 <button name="compute" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific"/>
1829 <button name="remove_line" states="running" string="Remove Lines" type="object" icon="gtk-remove"/>
1830 <field name="state" widget="statusbar" statusbar_visible="draft,running,done"/>
1835 <field name="name"/>
1836 <field name="model_id"/>
1841 <group string="Starts on">
1842 <field name="date_start"/>
1843 <field name="period_total"/>
1846 <group string="Valid Up to">
1847 <field name="period_nbr"/>
1848 <field name="period_type"/>
1851 <separator string="Subscription Lines"/>
1852 <field name="lines_id" widget="one2many_list"/>
1857 <record id="action_subscription_form" model="ir.actions.act_window">
1858 <field name="name">Recurring Lines</field>
1859 <field name="res_model">account.subscription</field>
1860 <field name="view_type">form</field>
1861 <field name="view_mode">tree,form</field>
1862 <field name="search_view_id" ref="view_subscription_search"/>
1863 <field name="help">A recurring entry is a miscellaneous entry that occurs on a recurrent basis from a specific date, i.e. corresponding to the signature of a contract or an agreement with a customer or a supplier. With Define Recurring Entries, you can create such entries to automate the postings in the system.</field>
1866 name="Define Recurring Entries" action="action_subscription_form"
1867 id="menu_action_subscription_form" sequence="1"
1868 parent="account.menu_finance_recurrent_entries"/>
1870 <record id="action_subscription_form_running" model="ir.actions.act_window">
1871 <field name="name">Running Subscriptions</field>
1872 <field name="res_model">account.subscription</field>
1873 <field name="view_type">form</field>
1874 <field name="view_mode">tree,form</field>
1875 <field name="domain">[('state','=','running')]</field>
1876 <field name="filter" eval="True"/>
1879 <record id="action_subscription_form_new" model="ir.actions.act_window">
1880 <field name="name">New Subscription</field>
1881 <field name="res_model">account.subscription</field>
1882 <field name="view_type">form</field>
1883 <field name="view_mode">form,tree</field>
1884 <field name="view_id" ref="view_subscription_form"/>
1887 <record id="view_subscription_line_form_complete" model="ir.ui.view">
1888 <field name="name">account.subscription.line.form</field>
1889 <field name="model">account.subscription.line</field>
1890 <field name="type">form</field>
1891 <field eval="20" name="priority"/>
1892 <field name="arch" type="xml">
1893 <form string="Subscription lines" version="7.0">
1895 <field name="subscription_id"/>
1896 <field name="date"/>
1897 <field name="move_id"/>
1903 <record id="action_move_line_tree1" model="ir.actions.act_window">
1904 <field name="name">Journal Items</field>
1905 <field name="res_model">account.move.line</field>
1906 <field name="view_type">form</field>
1907 <field name="view_mode">tree,form</field>
1908 <field name="domain">[('account_id','child_of', [active_id]),('state','<>','draft')]</field>
1909 <field name="context">{'account_id':active_id}</field>
1912 <record id="view_move_line_tax_tree" model="ir.ui.view">
1913 <field name="name">account.move.line.tax.tree</field>
1914 <field name="model">account.move.line</field>
1915 <field name="type">tree</field>
1916 <field eval="4" name="priority"/>
1917 <field name="arch" type="xml">
1918 <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items">
1919 <field name="date"/>
1920 <field name="move_id"/>
1921 <field name="statement_id" string="St."/>
1922 <field name="name"/>
1923 <field name="partner_id"/>
1924 <field name="account_id"/>
1925 <field name="tax_code_id"/>
1926 <field name="tax_amount"/>
1927 <field name="debit" sum="Total debit"/>
1928 <field name="credit" sum="Total credit"/>
1929 <field name="account_tax_id"/>
1930 <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1931 <field name="state"/>
1936 <record id="action_tax_code_line_open" model="ir.actions.act_window">
1937 <field name="name">Journal Items</field>
1938 <field name="res_model">account.move.line</field>
1939 <field name="view_type">form</field>
1940 <field name="view_mode">tree,form</field>
1941 <field name="view_id" ref="view_move_line_tax_tree"/>
1942 <field name="domain">[('tax_code_id','child_of',active_id),('state','<>','draft')]</field>
1944 <record id="ir_open_tax_move_line" model="ir.values">
1945 <field name="key2">tree_but_open</field>
1946 <field name="model">account.tax.code</field>
1947 <field name="name">Tax Details</field>
1948 <field eval="'ir.actions.act_window,%d'%action_tax_code_line_open" name="value"/>
1957 id="act_account_journal_2_account_bank_statement"
1958 name="Bank statements"
1959 context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
1960 res_model="account.bank.statement"
1961 src_model="account.journal"/>
1964 id="act_account_journal_2_account_move_line"
1965 name="Journal Items"
1966 context="{'search_default_journal_id':active_id, 'default_journal_id': active_id}"
1967 res_model="account.move.line"
1968 src_model="account.journal"/>
1971 context="{'search_default_reconcile_id':False, 'search_default_partner_id':[active_id], 'default_partner_id': active_id}"
1972 domain="[('account_id.reconcile', '=', True),('account_id.type', 'in', ['receivable', 'payable'])]"
1973 id="act_account_partner_account_move_all"
1974 name="Receivables & Payables"
1975 res_model="account.move.line"
1976 src_model="res.partner"/>
1978 <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"/>
1980 <record id="view_account_addtmpl_wizard_form" model="ir.ui.view">
1981 <field name="name">Create Account</field>
1982 <field name="model">account.addtmpl.wizard</field>
1983 <field name="type">form</field>
1984 <field name="arch" type="xml">
1985 <form string="Create Account" version="7.0">
1987 <button icon="gtk-ok" name="action_create" string="Add" type="object" class="oe_highlight"/>
1989 <separator col="4" colspan="4" string="Create an Account Based on this Template"/>
1990 <field name="cparent_id"/>
1995 <act_window domain="[]" id="action_account_addtmpl_wizard_form"
1996 name="Create Account"
1998 res_model="account.addtmpl.wizard"
1999 context="{'tmpl_ids': active_id}"
2000 src_model="account.account.template"
2001 view_type="form" view_mode="form"/>
2003 <!-- Account Templates -->
2005 id="account_template_folder"
2007 parent="menu_finance_accounting"
2008 groups="base.group_multi_company"/>
2010 id="account_template_taxes"
2012 parent="account_template_folder"
2015 id="account_template_accounts"
2017 parent="account_template_folder"
2021 <record id="view_account_template_form" model="ir.ui.view">
2022 <field name="name">account.account.template.form</field>
2023 <field name="model">account.account.template</field>
2024 <field name="type">form</field>
2025 <field name="arch" type="xml">
2026 <form string="Account Template" version="7.0">
2028 <page string="General Information">
2030 <field name="name"/>
2031 <field name="code"/>
2033 <field name="parent_id"/>
2034 <field name="shortcut"/>
2035 <field name="type"/>
2036 <field name="user_type"/>
2038 <field name="currency_id"/>
2039 <field name="reconcile"/>
2040 <field name="chart_template_id"/>
2042 <separator string="Default Taxes"/>
2043 <field name="tax_ids"/>
2045 <page string="Notes">
2046 <field name="note"/>
2053 <record id="view_account_template_tree" model="ir.ui.view">
2054 <field name="name">account.account.template.tree</field>
2055 <field name="model">account.account.template</field>
2056 <field name="type">tree</field>
2057 <field name="arch" type="xml">
2058 <tree string="Account Template">
2059 <field name="code"/>
2060 <field name="name"/>
2061 <field name="type" invisible="1"/>
2062 <field name="user_type" invisible="1"/>
2067 <record id="view_account_template_search" model="ir.ui.view">
2068 <field name="name">account.account.template.search</field>
2069 <field name="model">account.account.template</field>
2070 <field name="type">search</field>
2071 <field name="arch" type="xml">
2072 <search string="Search Account Templates">
2074 <filter icon="terp-sale" string="Receivale Accounts" domain="[('type','=','receivable')]"/>
2075 <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
2076 <separator orientation="vertical"/>
2077 <field name="code"/>
2078 <field name="name"/>
2079 <field name="parent_id"/>
2080 <field name="type"/>
2081 <field name="user_type"/>
2084 <group expand="0" string="Group By...">
2085 <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
2086 <filter string="Account Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'user_type'}"/>
2092 <record id="action_account_template_form" model="ir.actions.act_window">
2093 <field name="name">Account Templates</field>
2094 <field name="res_model">account.account.template</field>
2095 <field name="view_type">form</field>
2096 <field name="view_mode">tree,form</field>
2097 <field name="search_view_id" ref="view_account_template_search"/>
2100 <menuitem action="action_account_template_form" id="menu_action_account_template_form" parent="account_template_accounts"/>
2102 <!-- Chart of Accounts Templates -->
2104 <record id="view_account_chart_template_form" model="ir.ui.view">
2105 <field name="name">account.chart.template.form</field>
2106 <field name="model">account.chart.template</field>
2107 <field name="type">form</field>
2108 <field name="arch" type="xml">
2109 <form string="Chart of Accounts Template" version="7.0">
2111 <field name="name"/>
2112 <field name="account_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
2113 <field name="bank_account_view_id" attrs="{'required': [('parent_id', '=', False)]}"/>
2114 <field name="tax_code_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
2115 <field name="parent_id" />
2116 <!--<field name="code_digits" />-->
2117 <field name="visible" />
2118 <field name="complete_tax_set" />
2120 <field name="tax_template_ids" colspan="4" readonly="1" nolabel="1"/>
2121 <separator string="Properties" colspan="4"/>
2123 <field name="property_account_receivable" domain="[('id', 'child_of', [account_root_id])]"/>
2124 <field name="property_account_payable" domain="[('id', 'child_of', [account_root_id])]"/>
2125 <field name="property_account_expense_categ" domain="[('id', 'child_of', [account_root_id])]"/>
2126 <field name="property_account_income_categ" domain="[('id', 'child_of', [account_root_id])]" />
2127 <field name="property_account_expense" domain="[('id', 'child_of', [account_root_id])]"/>
2128 <field name="property_account_income" domain="[('id', 'child_of', [account_root_id])]"/>
2129 <field name="property_account_income_opening" domain="[('id', 'child_of', [account_root_id])]"/>
2130 <field name="property_account_expense_opening" domain="[('id', 'child_of', [account_root_id])]"/>
2131 <field name="property_reserve_and_surplus_account" />
2136 <record id="view_account_chart_template_seacrh" model="ir.ui.view">
2137 <field name="name">account.chart.template.search</field>
2138 <field name="model">account.chart.template</field>
2139 <field name="type">search</field>
2140 <field name="arch" type="xml">
2141 <search string="Search Chart of Account Templates">
2143 <field name="name"/>
2144 <field name="account_root_id"/>
2145 <field name="bank_account_view_id"/>
2148 <group expand="0" string="Group By...">
2149 <filter string="Root Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'account_root_id'}"/>
2150 <filter string="Bank Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'bank_account_view_id'}"/>
2151 <separator orientation="vertical"/>
2152 <filter string="Receivable Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_receivable'}"/>
2153 <filter string="Payable Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_payable'}"/>
2154 <separator orientation="vertical"/>
2155 <filter string="Income Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_income_categ'}"/>
2156 <filter string="Expense Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_expense_categ'}"/>
2161 <record id="view_account_chart_template_tree" model="ir.ui.view">
2162 <field name="name">account.chart.template.tree</field>
2163 <field name="model">account.chart.template</field>
2164 <field name="type">tree</field>
2165 <field name="arch" type="xml">
2166 <tree string="Chart of Accounts Template">
2167 <field name="name"/>
2168 <field name="account_root_id"/>
2169 <field name="tax_code_root_id"/>
2170 <field name="bank_account_view_id"/>
2171 <field name="property_account_receivable" invisible="1"/>
2172 <field name="property_account_payable" invisible="1"/>
2173 <field name="property_account_expense_categ" invisible="1"/>
2174 <field name="property_account_income_categ" invisible="1"/>
2178 <record id="action_account_chart_template_form" model="ir.actions.act_window">
2179 <field name="name">Chart of Accounts Templates</field>
2180 <field name="res_model">account.chart.template</field>
2181 <field name="view_type">form</field>
2182 <field name="view_mode">tree,form</field>
2185 <menuitem action="action_account_chart_template_form" id="menu_action_account_chart_template_form" parent="account_template_accounts" sequence="1"/>
2187 <!-- Account Tax Templates -->
2189 <record id="view_account_tax_template_form" model="ir.ui.view">
2190 <field name="name">account.tax.template.form</field>
2191 <field name="model">account.tax.template</field>
2192 <field name="type">form</field>
2193 <field name="arch" type="xml">
2194 <form string="Account Tax Template" version="7.0">
2196 <field name="name"/>
2197 <field name="description"/>
2198 <field name="chart_template_id"/>
2199 <field name="type"/>
2200 <field name="type_tax_use"/>
2201 <field name="price_include"/>
2204 <page string="Tax Definition">
2206 <field name="applicable_type"/>
2207 <field name="amount" attrs="{'readonly':[('type','=','none'),('type','=','code')]}"/>
2208 <field name="include_base_amount"/>
2209 <field name="domain"/>
2211 <field name="account_collected_id"/>
2212 <label colspan="2" string="Keep empty to use the income account"/>
2213 <field name="account_paid_id"/>
2214 <label colspan="2" string="Keep empty to use the expense account"/>
2215 <field name="child_depend"/>
2216 <field name="sequence"/>
2219 <page string="Tax Declaration">
2221 <separator colspan="4" string="Invoices"/>
2222 <field name="base_code_id"/>
2223 <field name="base_sign"/>
2224 <field name="tax_code_id"/>
2225 <field name="tax_sign"/>
2227 <separator colspan="4" string="Credit Notes"/>
2228 <field name="ref_base_code_id"/>
2229 <field name="ref_base_sign"/>
2230 <field name="ref_tax_code_id"/>
2231 <field name="ref_tax_sign"/>
2234 <page string="Special Computation">
2235 <separator string="Compute Code (if type=code)"/>
2236 <field name="python_compute" attrs="{'readonly':[('type','!=','code')]}"/>
2237 <separator string="Compute Code for Taxes Included Prices"/>
2238 <field name="python_compute_inv"/>
2239 <separator string="Applicable Code (if type=code)"/>
2240 <field name="python_applicable" attrs="{'readonly':[('applicable_type','=','true')]}"/>
2246 <record id="view_account_tax_template_tree" model="ir.ui.view">
2247 <field name="name">account.tax.template.tree</field>
2248 <field name="model">account.tax.template</field>
2249 <field name="type">tree</field>
2250 <field name="arch" type="xml">
2251 <tree string="Account Tax Template">
2252 <field name="name" />
2253 <field name="description"/>
2257 <record id="view_account_tax_template_search" model="ir.ui.view">
2258 <field name="name">account.tax.template.search</field>
2259 <field name="model">account.tax.template</field>
2260 <field name="type">search</field>
2261 <field name="arch" type="xml">
2262 <search string="Search Tax Templates">
2264 <filter icon="terp-sale" string="Sale" domain="[('type_tax_use','=','sale')]" help="Taxes used in Sales"/>
2265 <filter icon="terp-purchase" string="Purchase" domain="[('type_tax_use','=','purchase')]" help="Taxes used in Purchases"/>
2266 <separator orientation="vertical"/>
2267 <field name="name"/>
2268 <field name="description"/>
2269 <field name="chart_template_id"/>
2275 <record id="action_account_tax_template_form" model="ir.actions.act_window">
2276 <field name="name">Tax Templates</field>
2277 <field name="res_model">account.tax.template</field>
2278 <field name="view_type">form</field>
2279 <field name="view_mode">tree,form</field>
2280 <field name="search_view_id" ref="view_account_tax_template_search"/>
2283 <menuitem action="action_account_tax_template_form" id="menu_action_account_tax_template_form" parent="account_template_taxes" sequence="13"/>
2285 <!-- Account Tax Code Templates -->
2286 <record id="view_tax_code_template_tree" model="ir.ui.view">
2287 <field name="name">account.tax.code.template.tree</field>
2288 <field name="model">account.tax.code.template</field>
2289 <field name="type">tree</field>
2290 <field name="field_parent">child_ids</field>
2291 <field name="arch" type="xml">
2292 <tree string="Account Tax Code Template" toolbar="1">
2293 <field name="name"/>
2294 <field name="code"/>
2295 <field name="parent_id" invisible="1"/>
2300 <record id="view_tax_code_template_search" model="ir.ui.view">
2301 <field name="name">account.tax.code.template.search</field>
2302 <field name="model">account.tax.code.template</field>
2303 <field name="type">search</field>
2304 <field name="arch" type="xml">
2305 <search string="Search tax template">
2307 <field name="name"/>
2308 <field name="code"/>
2309 <field name="parent_id"/>
2312 <group expand="0" string="Group By...">
2313 <filter string="Parent Code" icon="terp-folder-orange" domain="[]" context="{'group_by':'parent_id'}"/>
2319 <record id="view_tax_code_template_form" model="ir.ui.view">
2320 <field name="name">account.tax.code.template.form</field>
2321 <field name="model">account.tax.code.template</field>
2322 <field name="type">form</field>
2323 <field name="arch" type="xml">
2324 <form string="Account Tax Code Template" version="7.0">
2326 <field name="name"/>
2327 <field name="code"/>
2328 <field name="parent_id"/>
2329 <field name="sign"/>
2331 <separator string="Description"/>
2332 <field name="info"/>
2337 <record id="action_account_tax_code_template_form" model="ir.actions.act_window">
2338 <field name="name">Tax Code Templates</field>
2339 <field name="res_model">account.tax.code.template</field>
2340 <field name="view_type">form</field>
2341 <field name="view_mode">tree,form</field>
2342 <field name="search_view_id" ref="view_tax_code_template_search"/>
2344 <menuitem action="action_account_tax_code_template_form" id="menu_action_account_tax_code_template_form" parent="account_template_taxes" sequence="14"/>
2347 <!-- Wizard for Multi Charts of Accounts -->
2349 <record id="view_wizard_multi_chart" model="ir.ui.view">
2350 <field name="name">Generate Chart of Accounts from a Chart Template</field>
2351 <field name="model">wizard.multi.charts.accounts</field>
2352 <field name="type">form</field>
2353 <field name="inherit_id" ref="base.res_config_view_base"/>
2354 <field name="arch" type="xml">
2356 <form position="attributes" version="7.0">
2357 <attribute name="string">Accounting Application Configuration</attribute>
2359 <group string="res_config_contents" position="replace">
2360 <label string="This will automatically configure your chart of accounts, bank accounts, taxes and journals according to the selected template" width="150" />
2361 <separator string="Generate Your Chart of Accounts from a Chart Template" />
2362 <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 -->
2363 <field name="code_digits" groups="account.group_account_user"/>
2364 <field name="chart_template_id" widget="selection" on_change="onchange_chart_template_id(chart_template_id)" domain="[('visible','=', True)]"/>
2365 <field name="seq_journal"/>
2366 <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'))]"/>
2367 <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'))]"/>
2369 <field name ="sale_tax_rate" attrs="{'invisible': [('complete_tax_set', '=', True)]}" on_change="onchange_tax_rate(sale_tax_rate)"/>
2370 <field name ="purchase_tax_rate" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
2371 <field name ="complete_tax_set" invisible="1"/>
2372 <newline/> <!-- extended view because the web UI is not good for one2many -->
2373 <field colspan="4" mode="tree" name="bank_accounts_id" nolabel="1" widget="one2many_list" groups="account.group_account_user">
2374 <form string="Bank Information">
2375 <field name="acc_name"/>
2376 <field name="account_type"/>
2377 <field name="currency_id" widget="selection"/>
2379 <tree editable="bottom" string="Bank Information">
2380 <field name="acc_name"/>
2381 <field name="account_type"/>
2382 <field name="currency_id" widget="selection"/>
2390 <record id="action_wizard_multi_chart" model="ir.actions.act_window">
2391 <field name="name">Generate Chart of Accounts from a Chart Template</field>
2392 <field name="type">ir.actions.act_window</field>
2393 <field name="res_model">wizard.multi.charts.accounts</field>
2394 <field name="view_id" ref="view_wizard_multi_chart"/>
2395 <field name="view_type">form</field>
2396 <field name="view_mode">form</field>
2397 <field name="target">new</field>
2399 <record id="ir_actions_server_action_wizard_multi_chart" model="ir.actions.server">
2400 <field name="type">ir.actions.server</field>
2401 <field name="condition">True</field>
2402 <field name="state">code</field>
2403 <field name="model_id" ref="base.model_ir_actions_todo"/>
2404 <field eval="5" name="sequence"/>
2406 # check for unconfigured companies
2407 account_installer_obj = self.pool.get('account.installer')
2408 account_installer_obj.check_unconfigured_cmp(cr, uid, context=context)
2410 # fetch the act_window actions related to chart of account configuration
2411 # we use ir.actions.todo to enable the possibility for other modules to insert their own
2412 # wizards during the configuration process
2413 ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'account', 'action_wizard_multi_chart')
2415 action_ids += [ref[1]]
2416 ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'account', 'action_account_configuration_installer')
2418 action_ids += [ref[1]]
2419 todo_ids = pool.get('ir.actions.todo').search(cr, uid, [('action_id', 'in', action_ids)], context=context)
2420 pool.get('ir.actions.todo').write(cr, uid, todo_ids, {'state':'open'}, context=context)
2421 action = pool.get('res.config').next(cr, uid, [], context)
2423 <field name="name">New Company Financial Setting</field>
2426 <record id="account_account_graph" model="ir.ui.view">
2427 <field name="name">account.account.graph</field>
2428 <field name="model">account.account</field>
2429 <field name="type">graph</field>
2430 <field name="arch" type="xml">
2431 <graph string="Account Statistics" type="bar">
2432 <field name="name"/>
2433 <field name="balance" operator="+"/>
2438 <!-- Fiscal Position Templates -->
2440 <record id="view_account_position_template_search" model="ir.ui.view">
2441 <field name="name">account.fiscal.position.template.search</field>
2442 <field name="model">account.fiscal.position.template</field>
2443 <field name="type">search</field>
2444 <field name="arch" type="xml">
2445 <search string="Fiscal Position">
2446 <field name="name"/>
2451 <record id="view_account_position_template_form" model="ir.ui.view">
2452 <field name="name">account.fiscal.position.template.form</field>
2453 <field name="model">account.fiscal.position.template</field>
2454 <field name="type">form</field>
2455 <field name="arch" type="xml">
2456 <form string="Fiscal Position Template" version="7.0">
2458 <field name="name"/>
2459 <field name="chart_template_id"/>
2461 <field name="tax_ids">
2462 <tree string="Taxes Mapping" editable="bottom">
2463 <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2464 <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2466 <form string="Taxes Mapping" version="7.0">
2467 <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2468 <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2471 <field name="account_ids">
2472 <tree string="Accounts Mapping" editable="bottom">
2473 <field name="account_src_id"/>
2474 <field name="account_dest_id"/>
2476 <form string="Accounts Mapping" version="7.0">
2477 <field name="account_src_id"/>
2478 <field name="account_dest_id"/>
2484 <record id="view_account_position_template_tree" model="ir.ui.view">
2485 <field name="name">account.fiscal.position.template.tree</field>
2486 <field name="model">account.fiscal.position.template</field>
2487 <field name="type">tree</field>
2488 <field name="arch" type="xml">
2489 <tree string="Fiscal Position">
2490 <field name="name"/>
2495 <record id="action_account_fiscal_position_template_form" model="ir.actions.act_window">
2496 <field name="name">Fiscal Position Templates</field>
2497 <field name="res_model">account.fiscal.position.template</field>
2498 <field name="view_type">form</field>
2499 <field name="view_mode">tree,form</field>
2500 <field name="search_view_id" ref="view_account_position_template_search"/>
2504 action="action_account_fiscal_position_template_form"
2505 id="menu_action_account_fiscal_position_form_template"
2506 parent="account_template_taxes" sequence="20"/>
2508 <!-- Cash Statement -->
2509 <record id="view_cash_statement_tree" model="ir.ui.view">
2510 <field name="name">account.bank.statement.tree</field>
2511 <field name="model">account.bank.statement</field>
2512 <field name="type">tree</field>
2513 <field name="arch" type="xml">
2514 <tree colors="red:balance_end_real!=balance_end;blue:state=='draft' and (balance_end_real==balance_end);black:state == 'open'" string="Statement">
2515 <field name="name"/>
2516 <field name="date"/>
2517 <field name="period_id"/>
2518 <field name="journal_id"/>
2519 <field name="balance_start"/>
2520 <field name="balance_end_real"/>
2521 <field name="balance_end"/>
2522 <field name="state"/>
2527 <record id="view_bank_statement_form2" model="ir.ui.view">
2528 <field name="name">account.bank.statement.form</field>
2529 <field name="model">account.bank.statement</field>
2530 <field name="type">form</field>
2531 <field name="arch" type="xml">
2532 <form version="7.0">
2534 <button name="button_confirm_cash" states="open" string="Close CashBox" type="object"/>
2535 <button name="button_open" states="draft" string="Open CashBox" type="object"/>
2536 <button name="button_cancel" states="confirm,open" string="Cancel" type="object" groups="base.group_extended"/>
2537 <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,confirm"/>
2539 <sheet string="Statement">
2541 <field name="name"/>
2542 <field name='company_id' widget="selection" groups="base.group_multi_company" />
2543 <field name="journal_id" on_change="onchange_journal_id(journal_id)" widget="selection"/>
2544 <field name="user_id" readonly="1"/>
2545 <field name="period_id"/>
2546 <field name="currency" invisible="1"/>
2550 <page string="Cash Transactions" attrs="{'invisible': [('state','=','draft')]}">
2551 <field name="line_ids" context="{'date':date}">
2552 <tree editable="bottom" string="Statement lines">
2553 <field name="sequence" invisible="1"/>
2554 <field name="date"/>
2555 <field name="name"/>
2557 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
2558 <field name="type" on_change="onchange_type(partner_id, type)"/>
2559 <field domain="[('journal_id','=',parent.journal_id), ('company_id', '=', parent.company_id)]" name="account_id"/>
2560 <field name="analytic_account_id" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]" groups="analytic.group_analytic_accounting" />
2561 <field name="amount"/>
2563 <form string="Statement lines" version="7.0">
2565 <field name="date"/>
2566 <field name="name"/>
2568 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
2569 <field name="type" on_change="onchange_type(partner_id, type)"/>
2570 <field domain="[('journal_id', '=', parent.journal_id), ('type', '<>', 'view'), ('company_id', '=', parent.company_id)]" name="account_id"/>
2571 <field name="analytic_account_id" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]" groups="analytic.group_analytic_accounting" />
2572 <field name="amount"/>
2573 <field name="sequence"/>
2575 <separator string="Notes"/>
2576 <field name="note"/>
2580 <page string="CashBox">
2582 <field name="starting_details_ids" attrs="{'readonly':[('state','!=','draft')]}" nolabel="1">
2583 <tree string = "Opening Balance" editable="bottom">
2584 <field name="pieces"/>
2585 <field name="number" on_change="on_change_sub(pieces,number, parent.balance_end)"/>
2586 <field name="subtotal" sum="Total"/>
2588 <form string = "Opening Balance" version="7.0">
2589 <field name="pieces"/>
2590 <field name="number" on_change="on_change_sub(pieces,number, parent.balance_end)"/>
2591 <field name="subtotal"/>
2594 <field name="ending_details_ids" attrs="{'readonly':[('state','!=','open')]}" nolabel="1">
2595 <tree string = "Closing Balance" editable="bottom">
2596 <field name="pieces"/>
2597 <field name="number" on_change="on_change_sub(pieces,number, parent.balance_end)"/>
2598 <field name="subtotal" sum="Total"/>
2600 <form string = "Closing Balance" version="7.0">
2601 <field name="pieces"/>
2602 <field name="number" on_change="on_change_sub(pieces,number, parent.balance_end)"/>
2603 <field name="subtotal"/>
2608 <page string="Journal Entries" attrs="{'invisible': [('state','!=','confirm')]}">
2609 <field name="move_line_ids" string="Journal Entries"/>
2613 <group string="Dates">
2614 <field name="date" attrs="{'readonly':[('state','!=','draft')]}" on_change="onchange_date(date, company_id)"/>
2615 <field name="closing_date" readonly="1"/>
2617 <group string="Opening Balance">
2618 <field name="balance_start" readonly="1" string="Opening Balance"/>
2619 <field name="total_entry_encoding"/>
2621 <group string="Closing Balance">
2622 <field name="balance_end"/>
2623 <field name="balance_end_cash"/>
2630 <record id="account_cash_statement_graph" model="ir.ui.view">
2631 <field name="name">account.bank.statement.graph</field>
2632 <field name="model">account.bank.statement</field>
2633 <field name="type">graph</field>
2634 <field name="arch" type="xml">
2635 <graph string="Account Statistics" type="bar">
2636 <field name="date"/>
2637 <field name="balance_start" operator="+"/>
2638 <field name="balance_end" operator="+"/>
2642 <record id="action_view_bank_statement_tree" model="ir.actions.act_window">
2643 <field name="name">Cash Registers</field>
2644 <field name="type">ir.actions.act_window</field>
2645 <field name="res_model">account.bank.statement</field>
2646 <field name="view_type">form</field>
2647 <field name="view_mode">tree,form,graph</field>
2648 <field name="view_id" ref="view_cash_statement_tree"/>
2649 <field name="search_view_id" ref="view_account_bank_statement_filter"/>
2650 <field name="domain">[('journal_id.type', '=', 'cash')]</field>
2651 <field name="context">{'journal_type':'cash'}</field>
2652 <field name="help">A Cash Register allows you to manage cash entries in your cash journals. This feature provides an easy way to follow up cash payments on a daily basis. You can enter the coins that are in your cash box, and then post entries when money comes in or goes out of the cash box.</field>
2654 <record model="ir.actions.act_window.view" id="act_cash_statement1_all">
2655 <field name="sequence" eval="1"/>
2656 <field name="view_mode">tree</field>
2657 <field name="view_id" ref="view_cash_statement_tree"/>
2658 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2660 <record model="ir.actions.act_window.view" id="act_cash_statement2_all">
2661 <field name="sequence" eval="1"/>
2662 <field name="view_mode">form</field>
2663 <field name="view_id" ref="view_bank_statement_form2"/>
2664 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2666 <record model="ir.actions.act_window.view" id="act_cash_statement3_all">
2667 <field name="sequence" eval="1"/>
2668 <field name="view_mode">graph</field>
2669 <field name="view_id" ref="account_cash_statement_graph"/>
2670 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2672 <menuitem action="action_view_bank_statement_tree" id="journal_cash_move_lines"
2673 parent="menu_finance_bank_and_cash"/>
2675 <menuitem id="menu_account_customer" name="Customers"
2676 parent="menu_finance_receivables"
2677 action="base.action_partner_customer_form" sequence="100"/>
2679 <menuitem id="menu_account_supplier" name="Suppliers"
2680 parent="menu_finance_payables"
2681 action="base.action_partner_supplier_form" sequence="100"/>
2687 <record id="view_account_financial_report_form" model="ir.ui.view">
2688 <field name="name">account.financial.report.form</field>
2689 <field name="model">account.financial.report</field>
2690 <field name="type">form</field>
2691 <field name="arch" type="xml">
2692 <form string="Account Report" version="7.0">
2694 <field name="name"/>
2695 <field name="parent_id"/>
2696 <field name="sequence"/>
2697 <field name="type"/>
2698 <field name="sign"/>
2699 <field name="style_overwrite"/>
2702 <page string="Report">
2704 <field name="display_detail" attrs="{'invisible': [('type','not in',['accounts','account_type'])]}"/>
2705 <field name="account_report_id" attrs="{'invisible': [('type', '!=', 'account_report')]}"/>
2707 <field name="account_ids" attrs="{'invisible': [('type', '!=', 'accounts')]}"/>
2708 <field name="account_type_ids" attrs="{'invisible': [('type', '!=', 'account_type')]}"/>
2715 <record id="view_account_financial_report_tree" model="ir.ui.view">
2716 <field name="name">account.financial.report.tree</field>
2717 <field name="model">account.financial.report</field>
2718 <field name="type">tree</field>
2719 <field name="arch" type="xml">
2720 <tree string="Account Report">
2721 <field name="name"/>
2722 <field name="parent_id" invisible="1"/>
2723 <field name="type"/>
2724 <field name="account_report_id"/>
2729 <record id="view_account_financial_report_search" model="ir.ui.view">
2730 <field name="name">account.financial.report.search</field>
2731 <field name="model">account.financial.report</field>
2732 <field name="type">search</field>
2733 <field name="arch" type="xml">
2734 <search string="Account Report">
2736 <field name="name"/>
2737 <field name="type"/>
2738 <field name="account_report_id"/>
2741 <group expand="0" string="Group By...">
2742 <filter string="Parent Report" icon="terp-folder-orange" domain="" context="{'group_by':'parent_id'}"/>
2743 <separator orientation="vertical"/>
2744 <filter string="Report Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
2750 <record id="action_account_financial_report_tree" model="ir.actions.act_window">
2751 <field name="name">Financial Reports</field>
2752 <field name="type">ir.actions.act_window</field>
2753 <field name="res_model">account.financial.report</field>
2754 <field name="view_type">form</field>
2755 <field name="view_mode">tree,form</field>
2756 <field name="search_view_id" ref="view_account_financial_report_search"/>
2757 <field name="view_id" ref="view_account_financial_report_tree"/>
2758 <field name="help">Makes a generic system to draw financial reports easily.</field>
2761 <menuitem id="menu_account_financial_reports_tree" name="Account Reports" parent="menu_account_reports" action="action_account_financial_report_tree"/>
2763 <record id="view_account_report_tree_hierarchy" model="ir.ui.view">
2764 <field name="name">account.report.hierarchy</field>
2765 <field name="model">account.financial.report</field>
2766 <field name="type">tree</field>
2767 <field name="field_parent">children_ids</field>
2768 <field name="arch" type="xml">
2769 <tree string="Account Reports Hierarchy">
2770 <field name="name"/>
2771 <field name="type"/>
2772 <field name="parent_id" invisible="1"/>
2773 <field name="account_report_id"/>
2777 <record id="action_account_report_tree_hierarchy" model="ir.actions.act_window">
2778 <field name="name">Financial Reports Hierarchy</field>
2779 <field name="res_model">account.financial.report</field>
2780 <field name="view_type">tree</field>
2781 <field name="view_id" ref="view_account_report_tree_hierarchy"/>
2782 <field name="domain">[('parent_id','=',False)]</field>
2785 <menuitem id="menu_account_report_tree_hierarchy" name="Account Reports Hierarchy"
2786 parent="menu_account_reports" action="action_account_report_tree_hierarchy"/>