1 <?xml version="1.0" encoding="utf-8"?>
6 <record id="view_account_fiscalyear_form" model="ir.ui.view">
7 <field name="name">account.fiscalyear.form</field>
8 <field name="model">account.fiscalyear</field>
9 <field name="arch" type="xml">
10 <form string="Fiscal year">
12 <button name="create_period" states="draft" string="Create Monthly Periods" type="object" class="oe_highlight"/>
13 <button name="create_period3" states="draft" string="Create 3 Months Periods" type="object" class="oe_highlight"/>
14 <field name="state" widget="statusbar" nolabel="1" />
20 <field name="company_id" groups="base.group_multi_company"/>
21 <field name="end_journal_period_id"/>
24 <field name="date_start"/>
25 <field name="date_stop"/>
28 <field colspan="4" name="period_ids" nolabel="1" widget="one2many_list">
29 <form string="Period">
33 <field name="date_start"/>
34 <field name="date_stop"/>
35 <field name="special"/>
36 <field name="state" invisible="1"/>
43 <record id="view_account_fiscalyear_tree" model="ir.ui.view">
44 <field name="name">account.fiscalyear.tree</field>
45 <field name="model">account.fiscalyear</field>
46 <field name="arch" type="xml">
47 <tree colors="blue:state == 'draft';gray:state == 'done' " string="Fiscalyear">
50 <field name="company_id" groups="base.group_multi_company"/>
55 <record id="view_account_fiscalyear_search" model="ir.ui.view">
56 <field name="name">account.fiscalyear.search</field>
57 <field name="model">account.fiscalyear</field>
58 <field name="arch" type="xml">
59 <search string="Search Fiscalyear">
60 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Fiscal Year"/>
61 <filter string="Open" domain="[('state','=','draft')]" icon="terp-camera_test"/>
62 <filter string="Closed" domain="[('state','=','done')]" icon="terp-dialog-close"/>
64 <group expand="0" string="Group By">
65 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
70 <record id="action_account_fiscalyear" model="ir.actions.act_window">
71 <field name="name">Fiscal Years</field>
72 <field name="res_model">account.fiscalyear</field>
73 <field name="view_type">form</field>
74 <field name="view_mode">tree,form</field>
75 <field name="help" type="html">
76 <p class="oe_view_nocontent_create">
77 Click to start a new fiscal year.
79 Define your company's financial year according to your needs. A
80 financial year is a period at the end of which a company's
81 accounts are made up (usually 12 months). The financial year is
82 usually referred to by the date in which it ends. For example,
83 if a company's financial year ends November 30, 2011, then
84 everything between December 1, 2010 and November 30, 2011
85 would be referred to as FY 2011.
89 <menuitem id="next_id_23" name="Periods" parent="account.menu_finance_configuration" sequence="1" />
90 <menuitem id="menu_action_account_fiscalyear" action="action_account_fiscalyear" parent="next_id_23"/>
93 <record id="view_account_period_form" model="ir.ui.view">
94 <field name="name">account.period.form</field>
95 <field name="model">account.period</field>
96 <field name="arch" type="xml">
97 <form string="Account Period">
99 <button string="Close Period" name="%(account.action_account_period_close)d" type="action" class="oe_highlight" states="draft"/>
100 <button name="action_draft" states="done" string="Re-Open Period" type="object" groups="account.group_account_manager"/>
101 <field name="state" widget="statusbar" nolabel="1"/>
106 <field name="fiscalyear_id" widget="selection"/>
107 <label for="date_start" string="Duration"/>
109 <field name="date_start" class="oe_inline" nolabel="1"/> -
110 <field name="date_stop" nolabel="1" class="oe_inline"/>
115 <field name="special"/>
116 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
122 <record id="view_account_period_tree" model="ir.ui.view">
123 <field name="name">account.period.tree</field>
124 <field name="model">account.period</field>
125 <field name="arch" type="xml">
126 <tree colors="blue:state == 'draft';gray:state == 'done' " string="Period">
129 <field name="date_start"/>
130 <field name="date_stop"/>
131 <field name="special"/>
132 <field name="company_id" groups="base.group_multi_company"/>
133 <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="arch" type="xml">
141 <search string="Search Period">
142 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Period"/>
143 <filter string="To Close" name="draft" domain="[('state','=','draft')]" icon="terp-dialog-close"/>
147 <record id="action_account_period" model="ir.actions.act_window">
148 <field name="name">Periods</field>
149 <field name="res_model">account.period</field>
150 <field name="view_type">form</field>
151 <field name="view_mode">tree,form</field>
152 <field name="context">{'search_default_draft': 1}</field>
153 <field name="help" type="html">
154 <p class="oe_view_nocontent_create">
155 Click to add a fiscal period.
157 An accounting period typically is a month or a quarter. It
158 usually corresponds to the periods of the tax declaration.
162 <menuitem id="menu_action_account_period" action="action_account_period" parent="account.next_id_23"/>
165 <record id="view_account_form" model="ir.ui.view">
166 <field name="name">account.account.form</field>
167 <field name="model">account.account</field>
168 <field name="arch" type="xml">
169 <form string="Account">
170 <label for="code" class="oe_edit_only" string="Account Code and Name"/>
172 <field name="code" class="oe_inline" placeholder="Account code" style="width: 6em"/> -
173 <field name="name" class="oe_inline" placeholder="Account name"/>
177 <field name="parent_id"/>
179 <field name="user_type"/>
180 <field name="active"/>
181 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
184 <field name="debit" attrs="{'readonly':[('type','=','view')]}"/>
185 <field name="credit" attrs="{'readonly':[('type','=','view')]}"/>
186 <field name="balance"/>
189 <field name="tax_ids" domain="[('parent_id','=',False)]" widget="many2many_tags"/>
190 <field name="reconcile"/>
191 <field name="child_consol_ids"
192 attrs="{'invisible':[('type','!=','consolidation')]}"
193 widget="many2many_tags"/>
195 <group groups="base.group_multi_currency">
196 <field name="currency_id"/>
197 <field name="currency_mode" attrs="{'readonly': [('currency_id','=',False)]}"/>
205 <record id="view_account_list" model="ir.ui.view">
206 <field name="name">account.account.list</field>
207 <field name="model">account.account</field>
208 <field name="field_parent">child_id</field>
209 <field name="arch" type="xml">
210 <tree colors="blue:type == 'view';black:type in ('other','receivable','payable','consolidation');gray:type == 'closed'" string="Chart of accounts" toolbar="1" >
213 <field name="parent_id" invisible="1"/>
214 <field name="user_type" invisible="1"/>
215 <field name="debit"/>
216 <field name="credit"/>
217 <field name="balance"/>
219 <field name="company_id" groups="base.group_multi_company"/>
220 <field name="company_currency_id"/>
224 <record id="view_account_search" model="ir.ui.view">
225 <field name="name">account.account.search</field>
226 <field name="model">account.account</field>
227 <field name="arch" type="xml">
228 <search string="Accounts">
229 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account"/>
230 <filter icon="terp-sale" string="Receivable Accounts" domain="[('type','=','receivable')]"/>
231 <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
232 <field name="user_type"/>
233 <group expand="0" string="Group By">
234 <filter string="Parent Account" icon="terp-folder-orange" domain="" context="{'group_by':'parent_id'}"/>
235 <filter string="Account Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'user_type'}"/>
236 <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'type'}"/>
241 <record id="action_account_form" model="ir.actions.act_window">
242 <field name="name">Accounts</field>
243 <field name="res_model">account.account</field>
244 <field name="view_type">form</field>
245 <field name="view_mode">tree,form,graph</field>
246 <field name="search_view_id" ref="view_account_search"/>
247 <field name="view_id" ref="view_account_list"/>
248 <field name="help" type="html">
249 <p class="oe_view_nocontent_create">
250 Click to add an account.
252 An account is part of a ledger allowing your company
253 to register all kinds of debit and credit transactions.
254 Companies present their annual accounts in two main parts: the
255 balance sheet and the income statement (profit and loss
256 account). The annual accounts of a company are required by law
257 to disclose a certain amount of information.
261 <menuitem id="account_account_menu" name="Accounts" parent="account.menu_finance_configuration" sequence="2"/>
262 <menuitem action="action_account_form" id="menu_action_account_form" parent="account_account_menu" sequence="1"/>
265 id="act_account_acount_move_line_open_unreconciled"
266 name="Unreconciled Entries"
267 res_model="account.move.line"
268 context="{'search_default_account_id':[active_id], 'search_default_unreconciled':1, 'default_account_id': active_id}"
269 src_model="account.account"/>
271 <record id="view_account_tree" model="ir.ui.view">
272 <field name="name">account.account.tree</field>
273 <field name="model">account.account</field>
274 <field name="field_parent">child_id</field>
275 <field name="arch" type="xml">
276 <tree colors="blue:type == 'view';black:type in ('other','receivable','payable','consolidation');gray:type == 'closed'" string="Chart of accounts" toolbar="1" >
279 <field name="debit"/>
280 <field name="credit"/>
281 <field name="balance"/>
282 <field name="company_currency_id"/>
283 <field name="company_id" groups="base.group_multi_company"/>
285 <field name="parent_id" invisible="1"/>
289 <record id="action_account_tree" model="ir.actions.act_window">
290 <field name="name">Chart of Accounts</field>
291 <field name="res_model">account.account</field>
292 <field name="view_type">tree</field>
293 <field name="view_id" ref="view_account_tree"/>
294 <field name="domain">[('parent_id','=',False)]</field>
296 <record id="view_account_gain_loss_tree" model="ir.ui.view">
297 <field name="name">Unrealized Gain or Loss</field>
298 <field name="model">account.account</field>
299 <field name="arch" type="xml">
300 <tree string="Unrealized Gains and losses" create="false">
303 <field name="parent_id" invisible="1"/>
304 <field name="user_type" invisible="1"/>
305 <field name="type" invisible="1"/>
306 <field name="currency_id"/>
307 <field name="exchange_rate"/>
308 <field name="foreign_balance"/>
309 <field name="adjusted_balance"/>
310 <field name="balance"/>
311 <field name="unrealized_gain_loss"/>
315 <record id="action_account_gain_loss" model="ir.actions.act_window">
316 <field name="name">Unrealized Gain or Loss</field>
317 <field name="res_model">account.account</field>
318 <field name="view_type">form</field>
319 <field name="view_mode">tree</field>
320 <field name="view_id" ref="view_account_gain_loss_tree"/>
321 <field name="domain">[('currency_id','!=',False)]</field>
322 <field name="help" type="html">
323 <p class="oe_view_nocontent_create">
324 Click to add an account.
326 When doing multi-currency transactions, you may loose or gain
327 some amount due to changes of exchange rate. This menu gives
328 you a forecast of the Gain or Loss you'd realized if those
329 transactions were ended today. Only for accounts having a
330 secondary currency set.
335 name="Unrealized Gain or Loss"
336 action="action_account_gain_loss"
337 groups="account.group_account_user"
338 id="menu_unrealized_gains_losses"
339 parent="account.menu_multi_currency"/>
342 id="action_move_line_select"
344 context="{'search_default_account_id': [active_id]}"
345 res_model="account.move.line"
346 src_model="account.account"/>
348 <!-- Enable drill-down from Chart Of Accounts tree view -->
350 id="action_account_items"
352 context="{'search_default_account_id': [active_id], 'fiscalyear': context.get('fiscalyear')}"
353 res_model="account.move.line"
354 src_model="account.account"
355 key2="tree_but_open"/>
357 <!-- Account Journal -->
358 <record id="view_account_journal_tree" model="ir.ui.view">
359 <field name="name">account.journal.tree</field>
360 <field name="model">account.journal</field>
361 <field name="arch" type="xml">
362 <tree string="Account Journal">
366 <field name="user_id"/>
367 <field name="company_id" groups="base.group_multi_company"/>
371 <record id="view_account_journal_search" model="ir.ui.view">
372 <field name="name">account.journal.search</field>
373 <field name="model">account.journal</field>
374 <field name="arch" type="xml">
375 <search string="Search Account Journal">
376 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Journal"/>
377 <filter domain="['|', ('type', '=', 'sale'), ('type', '=', 'sale_refund')]" string="Sale" icon="terp-camera_test"/>
378 <filter domain="['|', ('type', '=', 'purchase'), ('type', '=', 'purchase_refund')]" string="Purchase" icon="terp-purchase"/>
379 <filter domain="['|', ('type', '=', 'cash'), ('type', '=', 'bank')]" string="Liquidity" icon="terp-dolar"/>
380 <filter domain="['|', ('type', '=', 'general'), ('type', '=', 'situation')]" string="Others" icon="terp-stock"/>
381 <field name="user_id"/>
382 <group expand="0" string="Group By">
383 <filter string="User" context="{'group_by':'user_id'}" icon="terp-personal"/>
384 <filter string="Type" context="{'group_by':'type'}" icon="terp-stock_symbol-selection"/>
385 <filter string="Company" context="{'group_by':'company_id'}" icon="terp-go-home" groups="base.group_multi_company"/>
390 <record id="view_account_journal_form" model="ir.ui.view">
391 <field name="name">account.journal.form</field>
392 <field name="model">account.journal</field>
393 <field name="arch" type="xml">
394 <form string="Account Journal">
395 <div class="oe_title">
396 <label for="name" class="oe_edit_only"/>
397 <h1><field name="name"/></h1>
405 <field name="default_debit_account_id" attrs="{'required':[('type','in', ('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
406 <field name="default_credit_account_id" attrs="{'required':[('type','in',('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
407 <field name="currency" groups="base.group_multi_currency"/>
408 <field name="company_id" groups="base.group_multi_company"/>
412 <page string="Advanced Settings">
415 <field name="user_id" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'account.group_account_user']}"/>
416 <field name="sequence_id" required="0"/>
419 <field name="centralisation"/>
420 <field name="entry_posted"/>
421 <field name="allow_date"/>
422 <field name="group_invoice_lines"/>
426 <page string="Entry Controls">
427 <separator colspan="4" string="Accounts Type Allowed (empty for no control)"/>
428 <field colspan="4" name="type_control_ids" nolabel="1"/>
429 <separator colspan="4" string="Accounts Allowed (empty for no control)"/>
430 <field colspan="4" name="account_control_ids" nolabel="1"/>
432 <page string="Cash Registers">
434 <group string="Accounts">
435 <field name="profit_account_id" domain="[('type','!=','view')]"/>
436 <field name="loss_account_id" domain="[('type','!=','view')]"/>
437 <field name="internal_account_id" domain="[('type','!=','view')]"/>
439 <group string="Miscellaneous">
440 <field name="with_last_closing_balance" attrs="{'invisible': [('type', 'not in', ['bank', 'cash'])]}"/>
441 <field name="cash_control" attrs="{'invisible':[('type','not in', ('cash',))]}"/>
444 <separator string="Available Coins" colspan="4" attrs="{'invisible' : ['|',('cash_control', '=', False),('type','not in', ('cash',))] }"/>
445 <field name="cashbox_line_ids" nolabel="1" string="Unit Of Currency Definition" colspan="4" attrs="{'invisible' : ['|',('cash_control', '=', False),('type','not in', ('cash',))]}">
446 <tree string="CashBox Lines" editable="bottom">
447 <field name="pieces" />
455 <record id="action_account_journal_form" model="ir.actions.act_window">
456 <field name="name">Journals</field>
457 <field name="res_model">account.journal</field>
458 <field name="view_type">form</field>
459 <field name="view_mode">tree,form</field>
460 <field name="help" type="html">
461 <p class="oe_view_nocontent_create">
462 Click to add a journal.
464 A journal is used to record transactions of all accounting data
465 related to the day-to-day business.
467 A typical company may use one journal per payment method (cash,
468 bank accounts, checks), one purchase journal, one sale journal
469 and one for miscellaneous information.
473 <menuitem action="action_account_journal_form" id="menu_action_account_journal_form" parent="menu_journals"/>
476 id="act_account_journal_2_account_bank_statement"
477 name="Bank statements"
478 context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
479 res_model="account.bank.statement"
480 src_model="account.journal"/>
483 id="act_account_journal_2_account_move_line"
485 context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
486 res_model="account.move.line"
487 src_model="account.journal"/>
489 <!-- Bank statement -->
491 <record id="action_bank_reconcile_bank_statements" model="ir.actions.client">
492 <field name="name">Reconciliation on Bank Statements</field>
493 <field name="tag">bank_statement_reconciliation_view</field>
494 <field name="context">{'statement_ids': [active_id]}</field>
497 <record id="view_account_bank_statement_filter" model="ir.ui.view">
498 <field name="name">account.cash.statement.select</field>
499 <field name="model">account.bank.statement</field>
500 <field name="arch" type="xml">
501 <search string="Search Bank Statements">
502 <field name="name" string="Bank Statement"/>
504 <filter string="Draft" name="state_draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
505 <filter string="Open" name="state_open" domain="[('state','=','open')]" icon="terp-check"/>
506 <filter string="Confirmed" name="state_confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
507 <field name="journal_id" domain="[('type', '=', 'cash')]" />
508 <group expand="0" string="Group By">
509 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
510 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
511 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
517 <record id="view_bank_statement_tree" model="ir.ui.view">
518 <field name="name">account.bank.statement.tree</field>
519 <field name="model">account.bank.statement</field>
520 <field name="arch" type="xml">
521 <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">
524 <field name="period_id"/>
525 <field name="journal_id"/>
526 <field name="balance_start"/>
527 <field name="balance_end_real"/>
528 <field name="balance_end" invisible="1"/>
529 <field name="state"/>
534 <record id="view_bank_statement_search" model="ir.ui.view">
535 <field name="name">account.bank.statement.search</field>
536 <field name="model">account.bank.statement</field>
537 <field name="arch" type="xml">
538 <search string="Search Bank Statements">
539 <field name="name" string="Bank Statement"/>
541 <filter string="Draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
542 <filter string="Confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
543 <field name="period_id"/>
544 <field name="journal_id" domain="[('type', '=', 'bank')]" />
545 <group expand="0" string="Group By">
546 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
547 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
548 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
554 <record id="view_bank_statement_form" model="ir.ui.view">
555 <field name="name">account.bank.statement.form</field>
556 <field name="model">account.bank.statement</field>
557 <field name="priority">1</field>
558 <field name="arch" type="xml">
559 <form string="Bank Statement">
561 <field name="all_lines_reconciled" invisible="1" />
562 <span attrs="{'invisible':['|',('all_lines_reconciled','=',True),('line_ids','=',[])]}">
563 <button name="%(action_bank_reconcile_bank_statements)d" states="draft" string="Reconcile" type="action" class="oe_highlight"/>
565 <span attrs="{'invisible':[('all_lines_reconciled','=',False)]}">
566 <button name="button_confirm_bank" states="draft" string="Close" type="object" class="oe_highlight"/>
568 <button name="button_cancel" states="confirm" string="Cancel Statement" type="object"/>
569 <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/>
572 <div class="oe_right oe_button_box" name="import_buttons">
573 <button class="oe_inline oe_stat_button" name="%(action_view_account_statement_from_invoice_lines)d"
574 string="Import Invoice" type="action"
575 attrs="{'invisible':[('state','=','confirm')]}" widget="statinfo" icon="fa-pencil-square-o"/>
576 <button class="oe_inline oe_stat_button" name="button_journal_entries"
577 string="Journal Items" type="object"
578 attrs="{'invisible':[('move_line_ids','=',[])]}" icon="fa-bars"/>
579 <field name="move_line_ids" invisible="1"/>
581 <label for="name" class="oe_edit_only"/>
582 <h1><field name="name"/></h1>
585 <field name="journal_id" domain="[('type', '=', 'bank')]" on_change="onchange_journal_id(journal_id)" attrs="{'readonly': [('move_line_ids', '!=', [])]}" widget="selection"/>
586 <label for="date" string="Date / Period"/>
588 <field name="date" on_change="onchange_date(date, company_id)" class="oe_inline"/>
589 <field name="period_id" class="oe_inline"/>
591 <field name='company_id' widget="selection" groups="base.group_multi_company" />
592 <field name="currency" invisible="1"/>
594 <field name="balance_start" widget="monetary" options='{"currency_field" : "currency"}'/>
595 <field name="balance_end_real" widget="monetary" options='{"currency_field" : "currency"}'/>
600 <page string="Transactions" name="statement_line_ids">
601 <field name="line_ids" context="{'date':date}">
602 <tree editable="bottom" string="Statement lines" colors="grey:journal_entry_id!=False">
603 <field name="sequence" readonly="1" invisible="1"/>
604 <field name="journal_entry_id" invisible="1"/>
605 <field name="date" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
606 <field name="name" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
607 <field name="ref" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
608 <field name="partner_id" domain="[
610 '|',('parent_id','=',False),('is_company','=',True),
611 '|',('customer','=',True),('supplier','=',True)]"
612 context="{'default_supplier': 1}"
613 attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
614 <field name="amount" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
615 <field name="amount_currency" groups="base.group_multi_currency" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
616 <field name="currency_id" groups="base.group_multi_currency" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
617 <field name="bank_account_id" groups="base.group_no_one"/>
622 <group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total">
623 <div class="oe_subtotal_footer_separator oe_inline">
624 <label for="balance_end" />
625 <button name="button_dummy" states="draft" string="(update)" type="object" class="oe_edit_only oe_link"/>
627 <field name="balance_end" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary' options="{'currency_field': 'currency_id'}"/>
629 <div class="oe_clear"/>
635 <record id="action_bank_statement_tree" model="ir.actions.act_window">
636 <field name="name">Bank Statements</field>
637 <field name="res_model">account.bank.statement</field>
638 <field name="view_type">form</field>
639 <field name="view_mode">tree,form,graph</field>
640 <field name="domain">[('journal_id.type', '=', 'bank')]</field>
641 <field name="context">{'journal_type':'bank'}</field>
642 <field name="search_view_id" ref="view_bank_statement_search"/>
643 <field name="help" type="html">
644 <p class="oe_view_nocontent_create">
645 Click to register a bank statement.
647 A bank statement is a summary of all financial transactions
648 occurring over a given period of time on a bank account. You
649 should receive this periodicaly from your bank.
651 Odoo allows you to reconcile a statement line directly with
652 the related sale or puchase invoices.
656 <record model="ir.actions.act_window.view" id="action_bank_statement_tree_bank">
657 <field name="sequence" eval="1"/>
658 <field name="view_mode">tree</field>
659 <field name="view_id" ref="view_bank_statement_tree"/>
660 <field name="act_window_id" ref="action_bank_statement_tree"/>
662 <record model="ir.actions.act_window.view" id="action_bank_statement_form_bank">
663 <field name="sequence" eval="1"/>
664 <field name="view_mode">form</field>
665 <field name="view_id" ref="view_bank_statement_form"/>
666 <field name="act_window_id" ref="action_bank_statement_tree"/>
669 <menuitem string="Bank Statements" action="action_bank_statement_tree" id="menu_bank_statement_tree" parent="menu_finance_bank_and_cash" sequence="7"/>
671 <record id="action_bank_statement_draft_tree" model="ir.actions.act_window">
672 <field name="name">Draft statements</field>
673 <field name="res_model">account.bank.statement</field>
674 <field name="view_type">form</field>
675 <field name="view_mode">tree,form</field>
676 <field name="domain">[('state','=','draft')]</field>
677 <field name="filter" eval="True"/>
680 <record id="action_bank_reconcile" model="ir.actions.client">
681 <field name="name">Reconciliation on Bank Statements</field>
682 <field name="res_model">account.bank.statement.line</field>
683 <field name="tag">bank_statement_reconciliation_view</field>
686 <!-- because of the needaction badge, groups needs to be specified -->
687 <menuitem id="menu_bank_reconcile_bank_statements" name="Reconcile" parent="account.periodical_processing_bank_statements" groups="group_account_user" action="action_bank_reconcile" sequence="20"/>
689 <record id="view_account_statement_operation_template_form" model="ir.ui.view">
690 <field name="name">account.statement.operation.template.form</field>
691 <field name="model">account.statement.operation.template</field>
692 <field name="arch" type="xml">
693 <form string="Statement Operation Templates">
695 <div class="oe_title">
696 <label for="name" class="oe_edit_only"/>
703 <field name="account_id" domain="[('type', 'not in', ['view', 'closed', 'consolidation'])]"/>
704 <field name="amount_type"/>
705 <field name="tax_id" domain="[('type_tax_use', 'in', ['purchase', 'all']), ('parent_id', '=', False)]"/>
708 <field name="label"/>
709 <label for="amount"/>
711 <field name="amount" class="oe_inline" />
712 <label string="%" class="oe_inline" attrs="{'invisible':[('amount_type','not in',('percentage_of_total', 'percentage_of_balance'))]}" />
714 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
721 <record id="view_account_statement_operation_template_tree" model="ir.ui.view">
722 <field name="name">account.statement.operation.template.tree</field>
723 <field name="model">account.statement.operation.template</field>
724 <field name="arch" type="xml">
725 <tree string="Bank Reconciliation Move Presets">
727 <field name="account_id"/>
728 <field name="amount_type"/>
732 <record id="view_account_statement_operation_template_search" model="ir.ui.view">
733 <field name="name">account.statement.operation.template.search</field>
734 <field name="model">account.statement.operation.template</field>
735 <field name="arch" type="xml">
736 <search string="Bank Reconciliation Move preset">
737 <filter string="With tax" domain="[('tax_id','!=',False)]"/>
738 <field name="amount_type"/>
742 <record id="action_account_statement_operation_template" model="ir.actions.act_window">
743 <field name="name">Statement Operations</field>
744 <field name="res_model">account.statement.operation.template</field>
745 <field name="view_type">form</field>
746 <field name="view_mode">tree,form</field>
747 <field name="search_view_id" ref="view_account_statement_operation_template_search"/>
748 <field name="help" type="html">
749 <p class="oe_view_nocontent_create">
750 Click to create a statement operation template.
752 Those can be used to quickly create a move line when reconciling
753 your bank statements.
759 id="account_template_folder"
761 parent="account_account_menu"
762 groups="account.group_account_manager"
765 id="account_report_folder"
767 parent="account_account_menu"
768 groups="account.group_account_manager"
770 <menuitem action="action_account_statement_operation_template" id="menu_action_account_statement_operation_template" parent="account_template_folder" name="Statement Operation Templates" sequence="22"/>
772 <!-- Account Types -->
773 <record id="view_account_type_search" model="ir.ui.view">
774 <field name="name">account.account.type.search</field>
775 <field name="model">account.account.type</field>
776 <field name="arch" type="xml">
777 <search string="Account Type">
778 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account Type"/>
782 <record id="view_account_type_tree" model="ir.ui.view">
783 <field name="name">account.account.type.tree</field>
784 <field name="model">account.account.type</field>
785 <field name="arch" type="xml">
786 <tree string="Account Type">
792 <record id="view_account_type_form" model="ir.ui.view">
793 <field name="name">account.account.type.form</field>
794 <field name="model">account.account.type</field>
795 <field name="arch" type="xml">
796 <form string="Account Type">
803 <field name="report_type"/>
804 <field name="close_method"/>
807 <separator string="Description"/>
812 <record id="action_account_type_form" model="ir.actions.act_window">
813 <field name="name">Account Types</field>
814 <field name="res_model">account.account.type</field>
815 <field name="view_type">form</field>
816 <field name="view_mode">tree,form</field>
817 <field name="search_view_id" ref="view_account_type_search"/>
818 <field name="help" type="html">
819 <p class="oe_view_nocontent_create">
820 Click to define a new account type.
822 An account type is used to determine how an account is used in
823 each journal. The deferral method of an account type determines
824 the process for the annual closing. Reports such as the Balance
825 Sheet and the Profit and Loss report use the category
826 (profit/loss or balance sheet).
830 <menuitem action="action_account_type_form" sequence="2" id="menu_action_account_type_form" parent="account_account_menu" groups="base.group_no_one"/>
833 <record id="view_account_move_tree" model="ir.ui.view">
834 <field name="name">account.move.tree</field>
835 <field name="model">account.move</field>
836 <field name="arch" type="xml">
837 <tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries">
841 <field name="period_id"/>
842 <field name="journal_id"/>
843 <field name="partner_id"/>
844 <field name="amount" sum="Total Amount"/>
845 <field name="state"/>
851 <record id="view_move_reconcile_form" model="ir.ui.view">
852 <field name="name">account.move.reconcile.form</field>
853 <field name="model">account.move.reconcile</field>
854 <field name="arch" type="xml">
855 <form string="Journal Entry Reconcile">
858 <field name="create_date"/>
861 <separator string="Reconcile Entries"/>
862 <field name="line_id"/>
863 <separator string="Partial Reconcile Entries"/>
864 <field name="line_partial_ids"/>
870 <record id="view_tax_code_search" model="ir.ui.view">
871 <field name="name">account.tax.code.search</field>
872 <field name="model">account.tax.code</field>
873 <field name="arch" type="xml">
874 <search string="Account Tax Code">
875 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Tax Code"/>
876 <field name="parent_id"/>
877 <field name="company_id" groups="base.group_multi_company"/>
881 <record id="view_tax_code_tree" model="ir.ui.view">
882 <field name="name">account.tax.code.tree</field>
883 <field name="model">account.tax.code</field>
884 <field name="field_parent">child_ids</field>
885 <field name="priority">100</field>
886 <field name="arch" type="xml">
887 <tree string="Account Tax Code" toolbar="1">
890 <field name="sum_period"/>
892 <field name="company_id" groups="base.group_multi_company"/>
896 <record id="view_tax_code_form" model="ir.ui.view">
897 <field name="name">account.tax.code.form</field>
898 <field name="model">account.tax.code</field>
899 <field name="arch" type="xml">
900 <form string="Account Tax Code">
902 <group col="4" colspan="2">
905 <field name="parent_id"/>
906 <field name="company_id" groups="base.group_multi_company"/>
908 <group string="Reporting Configuration">
909 <field name="notprintable"/>
912 <group string="Statistics">
913 <field name="sum_period"/>
917 <separator string="Description"/>
922 <record id="action_tax_code_list" model="ir.actions.act_window">
923 <field name="name">Tax codes</field>
924 <field name="res_model">account.tax.code</field>
925 <field name="view_type">form</field>
926 <field name="view_mode">tree,form</field>
927 <field name="view_id" ref="view_tax_code_tree"/>
928 <field name="search_view_id" ref="view_tax_code_search"/>
929 <field name="help" type="html">
930 <p class="oe_view_nocontent_create">
931 Click to define a new tax code.
933 Depending on the country, a tax code is usually a cell to fill
934 in your legal tax statement. Odoo allows you to define the
935 tax structure and each tax computation will be registered in
936 one or several tax code.
940 <menuitem id="next_id_27" name="Taxes" parent="account.menu_finance_configuration" sequence="4"/>
941 <menuitem action="action_tax_code_list" id="menu_action_tax_code_list" parent="next_id_27" sequence="2" groups="base.group_no_one"/>
944 id="action_tax_code_line_open"
946 domain="[('tax_code_id','child_of',active_id),('state','<>','draft')]"
947 res_model="account.move.line"
948 src_model="account.tax.code"/>
950 <!-- Enable drill-down from Chart Of Taxes tree view -->
952 id="action_tax_code_items"
954 domain="[('tax_code_id','child_of',active_id),('state','!=','draft')]"
955 res_model="account.move.line"
956 src_model="account.tax.code"
957 key2="tree_but_open"/>
961 <record id="view_tax_tree" model="ir.ui.view">
962 <field name="name">account.tax.tree</field>
963 <field name="model">account.tax</field>
964 <field name="field_parent">child_ids</field>
965 <field name="arch" type="xml">
966 <tree string="Account Tax">
968 <field name="price_include"/>
969 <field name="description"/>
970 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
971 <field name="type_tax_use" invisible="1"/>
975 <record id="view_account_tax_search" model="ir.ui.view">
976 <field name="name">account.tax.search</field>
977 <field name="model">account.tax</field>
978 <field name="arch" type="xml">
979 <search string="Search Taxes">
980 <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax"/>
981 <field name="company_id" groups="base.group_multi_company"/>
982 <filter string="Sale" domain="[('type_tax_use','=','sale')]" />
983 <filter string="Purchase" domain="[('type_tax_use','=','purchase')]" />
984 <group string="Group By">
985 <filter string="Company" domain="[]" context="{'group_by':'company_id'}"/>
986 <filter string="Tax Application" domain="[]" context="{'group_by':'type_tax_use'}"/>
991 <record id="view_tax_form" model="ir.ui.view">
992 <field name="name">account.tax.form</field>
993 <field name="model">account.tax</field>
994 <field name="arch" type="xml">
995 <form string="Account Tax">
999 <field name="description"/>
1002 <field name="type_tax_use"/>
1003 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
1004 <field name="active"/>
1008 <page string="Tax Definition">
1010 <group string="Tax Computation">
1013 <field name="type"/>
1014 <field name="amount" attrs="{'invisible':[('type','in',('none', 'code', 'balance'))]}"/>
1016 <field name="python_compute" attrs="{'invisible':[('type','!=','code')],'required':[('type','=','code')]}"/>
1017 <field name="python_compute_inv" attrs="{'invisible':[('type','!=','code')],'required':[('type','=','code')]}"/>
1018 <field name="price_include"/>
1020 <group string="Misc">
1021 <field name="sequence"/>
1022 <field name="include_base_amount"/>
1023 <field name="child_depend"/>
1025 <group string="Invoices">
1026 <field name="account_collected_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
1027 <field name="account_analytic_collected_id" domain="[('type','<>','view'), ('company_id', '=', company_id)]" groups="analytic.group_analytic_accounting"/>
1029 <field name="base_code_id"/>
1030 <field name="base_sign"/>
1031 <field name="tax_code_id"/>
1032 <field name="tax_sign"/>
1035 <group string="Refunds">
1036 <field name="account_paid_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
1037 <field name="account_analytic_paid_id" domain="[('type','<>','view'), ('company_id', '=', company_id)]" groups="analytic.group_analytic_accounting"/>
1039 <field name="ref_base_code_id"/>
1040 <field name="ref_base_sign"/>
1041 <field name="ref_tax_code_id"/>
1042 <field name="ref_tax_sign"/>
1044 <group string="Children/Sub Taxes" colspan="2">
1045 <field name="child_ids" nolabel="1" colspan="2">
1046 <tree string="Account Tax">
1047 <field name="sequence"/>
1048 <field name="name"/>
1049 <field name="price_include"/>
1050 <field name="description"/>
1056 <page string="Special Computation">
1058 <separator colspan="4" string="Applicability Options"/>
1059 <field name="applicable_type"/>
1060 <field name="domain"/>
1061 <separator colspan="4" string="Applicable Code (if type=code)"/>
1062 <field colspan="4" name="python_applicable" nolabel="1" attrs="{'readonly':[('applicable_type','=','true')], 'required':[('applicable_type','=','code')]}"/>
1069 <record id="action_tax_form" model="ir.actions.act_window">
1070 <field name="name">Taxes</field>
1071 <field name="res_model">account.tax</field>
1072 <field name="view_type">form</field>
1073 <field name="view_id" ref="view_tax_tree"/>
1074 <field name="domain">[('parent_id','=',False)]</field>
1076 <menuitem action="action_tax_form" id="menu_action_tax_form" parent="next_id_27" sequence="1"/>
1078 <record id="action_tax_code_tree" model="ir.actions.act_window">
1079 <field name="name">Chart of Taxes</field>
1080 <field name="res_model">account.tax.code</field>
1081 <field name="domain">[('parent_id','=',False)]</field>
1082 <field name="view_type">tree</field>
1083 <field name="view_id" ref="view_tax_code_tree"/>
1086 <!-- Journal Items -->
1087 <record id="view_move_line_form" model="ir.ui.view">
1088 <field name="name">account.move.line.form</field>
1089 <field name="model">account.move.line</field>
1090 <field eval="2" name="priority"/>
1091 <field name="arch" type="xml">
1092 <form string="Journal Item">
1096 <field name="name"/>
1098 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1101 <field name="journal_id"/>
1102 <field name="period_id"/>
1103 <field name="company_id" required="1" groups="base.group_multi_company"/>
1106 <notebook colspan="4">
1107 <page string="Information">
1109 <group string="Amount">
1110 <field name="account_id" domain="[('company_id', '=', company_id), ('type','<>','view'), ('type','<>','consolidation')]"/>
1111 <field name="debit"/>
1112 <field name="credit"/>
1113 <field name="quantity"/>
1115 <group string="Accounting Documents">
1116 <field name="invoice" readonly="True"/>
1117 <field name="move_id" required="False"/>
1118 <field name="statement_id" readonly="True"/>
1120 <group string="Dates">
1121 <field name="date"/>
1122 <field name="date_maturity"/>
1123 <field name="date_created" readonly="True"/>
1125 <group string="Taxes">
1126 <field name="tax_code_id"/>
1127 <field name="tax_amount"/>
1128 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1130 <group attrs="{'readonly':[('state','=','valid')]}" string="Currency" groups="base.group_multi_currency">
1131 <field name="currency_id" invisible="1"/>
1132 <field name="amount_currency" widget="monetary" options="{'currency_field': 'currency_id'}"/>
1134 <group string="Reconciliation">
1135 <field name="reconcile_id"/>
1136 <field name="reconcile_partial_id"/>
1138 <group string="States">
1139 <field name="state"/>
1140 <field name="blocked"/>
1142 <group groups="analytic.group_analytic_accounting" string="Analytic">
1143 <field name="analytic_account_id" domain="[('type','in',('normal','contract'))]"/>
1146 <field name="narration" colspan="4" nolabel="1" placeholder="Add an internal note..."/>
1148 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1149 <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)}"/>
1156 <record id="view_move_line_form2" model="ir.ui.view">
1157 <field name="name">account.move.line.form2</field>
1158 <field name="model">account.move.line</field>
1159 <field eval="9" name="priority"/>
1160 <field name="arch" type="xml">
1161 <form string="Journal Item">
1162 <notebook colspan="4">
1163 <page string="Information">
1165 <separator colspan="4" string="General Information"/>
1166 <field name="name"/>
1167 <field name="date"/>
1168 <field name="journal_id" readonly="False"/>
1169 <field name="period_id" readonly="False"/>
1170 <field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation'),('company_id', '=', company_id)]"/>
1171 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1173 <field name="debit"/>
1174 <field name="credit"/>
1176 <separator colspan="4" string="Optional Information"/>
1177 <field name="currency_id" invisible="1"/>
1178 <field name="amount_currency" groups="base.group_multi_currency" widget="monetary" options="{'currency_field': 'currency_id'}"/>
1179 <field name="quantity"/>
1180 <field name="move_id" required="False"/>
1182 <field name="date_maturity"/>
1183 <field name="date_created"/>
1184 <field name="date_created"/>
1185 <field name="blocked"/>
1187 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1188 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1189 <separator colspan="4" string="Status"/>
1191 <field name="reconcile_id"/>
1192 <field name="reconcile_partial_id"/>
1193 <field name="state"/>
1196 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1197 <field name="analytic_lines"/>
1203 <record id="view_move_line_tree" model="ir.ui.view">
1204 <field name="name">account.move.line.tree</field>
1205 <field name="model">account.move.line</field>
1206 <field eval="1" name="priority"/>
1207 <field name="arch" type="xml">
1208 <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" create="true" on_write="on_create_write" editable="top">
1209 <field name="journal_id" options='{"no_open":True}' invisible="context.get('journal_id',False)"/>
1210 <field name="period_id" options='{"no_open":True}' invisible="context.get('period_id',False)"/>
1211 <field name="date"/>
1212 <field name="name"/>
1214 <field name="statement_id" invisible="1"/>
1215 <field name="partner_id" on_change="onchange_partner_id(move_id, partner_id, account_id, debit, credit, date, journal_id)"/>
1216 <field name="account_id" options='{"no_open":True}' domain="[('journal_id','=',journal_id), ('company_id', '=', company_id)]" on_change="onchange_account_id(account_id, partner_id, context)"/>
1217 <field name="account_tax_id" options='{"no_open":True}' invisible="context.get('journal_type', False) not in ['sale','sale_refund','purchase','purchase_refund','general']"/>
1218 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('type','not in',['view','template'])]" invisible="not context.get('analytic_journal_id',False)"/>
1219 <field name="move_id" required="0"/>
1220 <field name="debit" sum="Total Debit"/>
1221 <field name="credit" sum="Total Credit"/>
1222 <field name="date_maturity" invisible="context.get('journal_type', False) not in ['sale','sale_refund','purchase','purchase_refund']"/>
1223 <field name="reconcile_ref"/>
1224 <field name="invoice" invisible="1"/>
1225 <field name="amount_currency" readonly="True" invisible="not context.get('currency',False)"/>
1226 <field name="currency_id" readonly="True" invisible="not context.get('currency',False)" />
1227 <field name="state" invisible="1"/>
1228 <field name="company_id" invisible="1"/>
1232 <record id="account_move_line_graph" model="ir.ui.view">
1233 <field name="name">account.move.line.graph</field>
1234 <field name="model">account.move.line</field>
1235 <field name="arch" type="xml">
1236 <graph string="Account Statistics" type="bar">
1237 <field name="account_id"/>
1238 <field name="debit" operator="+"/>
1239 <field name="credit" operator="+"/>
1243 <record id="view_account_move_line_filter" model="ir.ui.view">
1244 <field name="name">Journal Items</field>
1245 <field name="model">account.move.line</field>
1246 <field name="arch" type="xml">
1247 <search string="Search Journal Items">
1248 <field name="name" filter_domain="['|', ('name','ilike',self), ('ref','ilike',self)]" string="Move"/>
1249 <field name="date"/>
1250 <filter icon="terp-document-new" string="Unbalanced" domain="[('state','=','draft')]" help="Unbalanced Journal Items"/>
1252 <filter icon="terp-document-new" string="Unposted" domain="[('move_id.state','=','draft')]" help="Unposted Journal Items"/>
1253 <filter name="posted" icon="terp-camera_test" string="Posted" domain="[('move_id.state','=','posted')]" help="Posted Journal Items"/>
1255 <filter icon="terp-dolar_ok!" string="Unreconciled" domain="[('reconcile_id','=',False), ('account_id.reconcile','=',True)]" help="Unreconciled Journal Items" name="unreconciled"/>
1257 <filter string="Next Partner to Reconcile" help="Next Partner Entries to reconcile" name="next_partner" context="{'next_partner_only': 1}" icon="terp-gtk-jump-to-ltr" domain="[('account_id.reconcile','=',True),('reconcile_id','=',False)]"/>
1258 <field name="move_id" string="Number (Move)"/>
1259 <field name="account_id"/>
1260 <field name="partner_id"/>
1261 <field name="journal_id" context="{'journal_id':self}" widget="selection"/> <!-- it's important to keep widget='selection' in this filter viewbecause without that the value passed in the context is not the ID but the textual value (name) of the selected journal -->
1262 <field name="period_id" context="{'period_id':self}" widget="selection"/> <!-- it's important to keep the widget='selection' in this field, for the same reason as explained above -->
1263 <group expand="0" string="Group By">
1264 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1265 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1266 <filter string="Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
1267 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1272 <record id="action_account_moves_all_a" model="ir.actions.act_window">
1273 <field name="context">{'journal_type':'general'}</field>
1274 <field name="name">Journal Items</field>
1275 <field name="res_model">account.move.line</field>
1276 <field name="view_id" ref="view_move_line_tree"/>
1277 <field name="view_mode">tree_account_move_line_quickadd,form</field>
1278 <field name="help" type="html">
1279 <p class="oe_view_nocontent_create">
1280 Select the period and the journal you want to fill.
1282 This view can be used by accountants in order to quickly record
1283 entries in Odoo. If you want to record a supplier invoice,
1284 start by recording the line of the expense account. Odoo
1285 will propose to you automatically the Tax related to this
1286 account and the counterpart "Account Payable".
1291 action="action_account_moves_all_a"
1292 icon="STOCK_JUSTIFY_FILL"
1293 id="menu_action_account_moves_all"
1294 parent="account.menu_finance_entries"
1296 groups="group_account_user"
1298 <record id="action_account_moves_all_tree" model="ir.actions.act_window">
1299 <field name="name">Journal Items</field>
1300 <field name="res_model">account.move.line</field>
1301 <field name="context">{'search_default_partner_id': [active_id], 'default_partner_id': active_id}</field>
1302 <field name="view_id" ref="view_move_line_tree"/>
1304 <record id="view_move_line_tree_reconcile" model="ir.ui.view">
1305 <field name="model">account.move.line</field>
1306 <field eval="24" name="priority"/>
1307 <field name="type">tree</field>
1308 <field name="arch" type="xml">
1309 <tree_account_reconciliation colors="red:state == 'draft';black:state == 'valid'" string="Journal Items to Reconcile" create="false">
1310 <field name="date"/>
1311 <field name="move_id"/>
1313 <field name="name"/>
1314 <field name="partner_id"/>
1315 <field name="account_id"/>
1316 <field name="period_id" invisible="1"/>
1317 <field name="journal_id" invisible="1"/>
1318 <field name="reconcile_partial_id"/>
1319 <field name="state" invisible="1"/>
1320 <field name="debit" sum="Total debit"/>
1321 <field name="credit" sum="Total credit"/>
1322 </tree_account_reconciliation>
1325 <record id="action_account_manual_reconcile" model="ir.actions.act_window">
1326 <field name="context">{'search_default_unreconciled': 1,'view_mode':True}</field>
1327 <field name="name">Journal Items to Reconcile</field>
1328 <field name="res_model">account.move.line</field>
1329 <field name="view_id" ref="view_move_line_tree_reconcile"/>
1330 <field name="view_mode">tree_account_reconciliation</field>
1331 <field name="help" type="html">
1333 No journal items found.
1338 name="Manual Reconciliation"
1339 action="action_account_manual_reconcile"
1340 id="menu_manual_reconcile"
1341 parent="account.periodical_processing_reconciliation"/>
1343 <!-- Account.Entry Edition -->
1344 <record id="view_move_tree" model="ir.ui.view">
1345 <field name="name">account.move.tree</field>
1346 <field name="model">account.move</field>
1347 <field name="arch" type="xml">
1348 <tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries">
1349 <field name="name"/>
1351 <field name="date"/>
1352 <field name="period_id"/>
1353 <field name="journal_id"/>
1354 <field name="partner_id"/>
1355 <field name="amount" sum="Total Amount"/>
1356 <field name="to_check"/>
1357 <field name="state"/>
1361 <record id="view_move_form" model="ir.ui.view">
1362 <field name="name">account.move.form</field>
1363 <field name="model">account.move</field>
1364 <field name="arch" type="xml">
1365 <form string="Account Entry">
1367 <button name="button_validate" states="draft" string="Post" type="object" class="oe_highlight" groups="account.group_account_invoice"/>
1368 <button name="button_cancel" states="posted" string="Cancel Entry" type="object" groups="account.group_account_invoice"/>
1369 <field name="state" widget="statusbar"/>
1371 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
1373 <field name="name" readonly="True" attrs="{'invisible':[('name','=','/')]}"/>
1377 <field name="journal_id"/>
1378 <field name="period_id"/>
1379 <field name="company_id" required="1" groups="base.group_multi_company"/>
1380 <field name="partner_id" invisible="1"/>
1384 <field name="date"/>
1385 <field name="to_check"/>
1386 <field name="amount" invisible="1"/>
1390 <page string="Journal Items">
1391 <field name="line_id" widget="one2many_list"
1392 context="{'line_id': line_id , 'journal_id': journal_id }">
1393 <form string="Journal Item">
1394 <group col="6" colspan="4">
1395 <field name="name"/>
1397 <field name="partner_id" on_change="onchange_partner_id(False, partner_id, account_id, debit, credit, date, journal_id, context)"/>
1399 <field name="journal_id"/>
1400 <field name="period_id"/>
1401 <field name="company_id" required="1" groups="base.group_multi_company"/>
1403 <notebook colspan="4">
1404 <page string="Information">
1406 <group string="Amount">
1407 <field name="account_id" domain="[('company_id', '=', parent.company_id), ('type','<>','view'),('type','<>','consolidation')]"/>
1408 <field name="debit"/>
1409 <field name="credit"/>
1410 <field name="quantity"/>
1413 <group string="Accounting Documents">
1414 <field name="invoice"/>
1415 <field name="move_id" required="False"/>
1416 <field name="statement_id"/>
1419 <group string="Dates">
1420 <field name="date"/>
1421 <field name="date_maturity"/>
1422 <field name="date_created"/>
1425 <group string="Taxes">
1426 <field name="tax_code_id"/>
1427 <field name="tax_amount"/>
1428 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1431 <group string="Currency" groups="base.group_multi_currency">
1432 <field name="currency_id"/>
1433 <field name="amount_currency"/>
1436 <group string="Reconciliation">
1437 <field name="reconcile_id"/>
1438 <field name="reconcile_partial_id"/>
1441 <group string="States">
1442 <field name="state"/>
1443 <field name="blocked"/>
1446 <group groups="analytic.group_analytic_accounting" string="Analytic">
1447 <field name="analytic_account_id"/>
1450 <separator string="Internal Note"/>
1451 <field name="narration"/>
1453 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1454 <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)}"/>
1458 <tree colors="blue:state == 'draft';black:state == 'posted'" editable="top" string="Journal Items">
1459 <field name="invoice"/>
1460 <field name="name"/>
1461 <field name="partner_id" on_change="onchange_partner_id(False, partner_id, account_id, debit, credit, parent.date, parent.journal_id, context)"/>
1462 <field name="account_id" domain="[('journal_id','=',parent.journal_id),('company_id', '=', parent.company_id)]"/>
1463 <field name="date_maturity"/>
1464 <field name="debit" sum="Total Debit"/>
1465 <field name="credit" sum="Total Credit"/>
1466 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1467 <field name="amount_currency"/>
1468 <field name="currency_id" groups="base.group_multi_currency"/>
1469 <field name="tax_code_id"/>
1470 <field name="tax_amount"/>
1471 <field name="state"/>
1472 <field name="reconcile_id"/>
1473 <field name="reconcile_partial_id"/>
1476 <field name="narration" colspan="4" placeholder="Add an internal note..." nolabel="1" height="50"/>
1482 <record id="view_account_move_filter" model="ir.ui.view">
1483 <field name="name">account.move.select</field>
1484 <field name="model">account.move</field>
1485 <field name="arch" type="xml">
1486 <search string="Search Move">
1487 <field name="name" filter_domain="['|', ('name','ilike',self), ('ref','ilike',self)]" string="Move"/>
1488 <field name="date"/>
1489 <filter icon="terp-document-new" string="Unposted" domain="[('state','=','draft')]" help="Unposted Journal Entries"/>
1490 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Journal Entries"/>
1492 <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('to_check','=',True)]" help="Journal Entries to Review"/>
1493 <field name="partner_id"/>
1494 <field name="journal_id"/>
1495 <field name="period_id"/>
1496 <group expand="0" string="Group By">
1497 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1498 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1499 <filter string="States" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1500 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1501 <filter string="Entries Month" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" help="Journal Entries by Month"/>
1506 <record id="action_move_journal_line" model="ir.actions.act_window">
1507 <field name="name">Journal Entries</field>
1508 <field name="res_model">account.move</field>
1509 <field name="view_type">form</field>
1510 <field name="view_mode">tree,form</field>
1511 <field name="view_id" ref="view_move_tree"/>
1512 <field name="search_view_id" ref="view_account_move_filter"/>
1513 <field name="help" type="html">
1514 <p class="oe_view_nocontent_create">
1515 Click to create a journal entry.
1517 A journal entry consists of several journal items, each of
1518 which is either a debit or a credit transaction.
1520 Odoo automatically creates one journal entry per accounting
1521 document: invoice, refund, supplier payment, bank statements,
1522 etc. So, you should record journal entries manually only/mainly
1523 for miscellaneous operations.
1528 icon="STOCK_JUSTIFY_FILL"
1529 action="action_move_journal_line"
1530 id="menu_action_move_journal_line_form"
1531 parent="account.menu_finance_entries"
1532 groups="group_account_user"
1535 <record id="action_move_line_form" model="ir.actions.act_window">
1536 <field name="name">Entries</field>
1537 <field name="type">ir.actions.act_window</field>
1538 <field name="res_model">account.move</field>
1539 <field name="view_type">form</field>
1540 <field name="view_id" ref="view_move_tree"/>
1541 <field name="search_view_id" ref="view_account_move_filter"/>
1545 id="act_account_move_to_account_move_line_open"
1546 name="Journal Items"
1547 context="{'search_default_move_id': active_id, 'default_move_id': active_id}"
1548 res_model="account.move.line"
1549 src_model="account.move"/>
1552 domain="[('reconcile_id', '=', active_id)]"
1553 id="act_account_acount_move_line_reconcile_open"
1554 name="Reconciled entries"
1555 res_model="account.move.line"
1556 src_model="account.move.reconcile"/>
1558 <!-- TODO: Print Journal (and change state), Close Journal (and verify that there is no draft Entry Lines) -->
1559 <record id="view_journal_period_tree" model="ir.ui.view">
1560 <field name="name">account.journal.period.tree</field>
1561 <field name="model">account.journal.period</field>
1562 <field name="arch" type="xml">
1563 <tree colors="blue:state == 'draft';gray:state == 'done';black:state == 'printed'" string="Journals">
1564 <field icon="icon" name="fiscalyear_id"/>
1565 <field name="period_id"/>
1566 <field name="journal_id"/>
1567 <field name="state"/>
1568 <field name="company_id" groups="base.group_multi_company"/>
1572 <record id="action_account_journal_period_tree" model="ir.actions.act_window">
1573 <field name="name">Journals</field>
1574 <field name="res_model">account.journal.period</field>
1575 <field name="view_type">tree</field>
1578 <!-- Account Models -->
1579 <record id="view_model_line_tree" model="ir.ui.view">
1580 <field name="name">account.model.line.tree</field>
1581 <field name="model">account.model.line</field>
1582 <field name="arch" type="xml">
1583 <tree string="Journal Entry Model Line" editable="bottom">
1584 <field name="sequence"/>
1585 <field name="name"/>
1586 <field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation'), ('company_id', '=', parent.company_id)]"/>
1587 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1588 <field name="partner_id"/>
1589 <field name="debit"/>
1590 <field name="credit"/>
1591 <field name="date_maturity"/>
1595 <record id="view_model_line_form" model="ir.ui.view">
1596 <field name="name">account.model.line.form</field>
1597 <field name="model">account.model.line</field>
1598 <field name="arch" type="xml">
1599 <form string="Journal Entry Model Line">
1601 <field colspan="4" name="name"/>
1602 <field name="sequence"/>
1603 <field name="account_id" domain="[('type','<>','view'), ('type','<>','consolidation'), ('company_id', '=', parent.company_id)]"/>
1604 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1605 <field name="partner_id"/>
1606 <field name="debit"/>
1607 <field name="credit"/>
1608 <field name="quantity"/>
1609 <field name="date_maturity"/>
1614 <record id="view_model_form" model="ir.ui.view">
1615 <field name="name">account.model.form</field>
1616 <field name="model">account.model</field>
1617 <field name="arch" type="xml">
1618 <form string="Journal Entry Model">
1620 <field name="name"/>
1621 <field name="journal_id" on_change="onchange_journal_id(journal_id)"/>
1622 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
1625 <field name="lines_id" widget="one2many_list"/>
1626 <separator string="Legend"/>
1627 <field name="legend"/>
1628 <button name="%(action_account_use_model_create_entry)d" string="Create entries" type="action" icon="gtk-execute"/>
1632 <record id="view_model_tree" model="ir.ui.view">
1633 <field name="name">account.model.tree</field>
1634 <field name="model">account.model</field>
1635 <field name="arch" type="xml">
1636 <tree string="Journal Entry Model">
1637 <field name="name"/>
1638 <field name="journal_id"/>
1639 <field name="company_id" groups="base.group_multi_company"/>
1643 <record id="view_model_search" model="ir.ui.view">
1644 <field name="name">account.model.search</field>
1645 <field name="model">account.model</field>
1646 <field name="arch" type="xml">
1647 <search string="Journal Entry Model">
1648 <field name="name" string="Journal Entry Model"/>
1649 <filter string="Sale" icon="terp-camera_test" domain="[('journal_id.type', '=', 'sale')]"/>
1650 <filter string="Purchase" icon="terp-purchase" domain="[('journal_id.type', '=', 'purchase')]"/>
1651 <field name="journal_id"/>
1652 <field name="company_id" groups="base.group_multi_company"/>
1653 <group expand="0" string="Group By">
1654 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1660 <record id="action_model_form" model="ir.actions.act_window">
1661 <field name="name">Recurring Models</field>
1662 <field name="res_model">account.model</field>
1663 <field name="view_type">form</field>
1664 <field name="view_mode">tree,form</field>
1665 <field name="search_view_id" ref="view_model_search"/>
1668 action="action_model_form" name="Models" id="menu_action_model_form" sequence="5"
1669 parent="account.menu_configuration_recurrent_entries"/>
1671 <!-- Payment Terms -->
1672 <record id="view_payment_term_line_tree" model="ir.ui.view">
1673 <field name="name">account.payment.term.line.tree</field>
1674 <field name="model">account.payment.term.line</field>
1675 <field name="arch" type="xml">
1676 <tree string="Payment Term">
1677 <field name="value"/>
1678 <field name="value_amount" attrs="{'readonly':[('value','=','balance')]}"/>
1679 <field name="days"/>
1680 <field name="days2"/>
1684 <record id="view_payment_term_line_form" model="ir.ui.view">
1685 <field name="name">account.payment.term.line.form</field>
1686 <field name="model">account.payment.term.line</field>
1687 <field name="arch" type="xml">
1688 <form string="Payment Term">
1690 <group string="Amount Computation">
1691 <field name="value" widget="radio" nolabel="1" colspan="4"/>
1692 <label for="value_amount" string="Amount To Pay" attrs="{'invisible':[('value','=','balance')]}"/>
1693 <div attrs="{'invisible':[('value','=','balance')]}">
1694 <field name="value_amount" class="oe_inline"/>
1697 <group string="Due Date Computation">
1698 <field name="days"/>
1699 <field name="days2"/>
1705 <record id="view_payment_term_search" model="ir.ui.view">
1706 <field name="name">account.payment.term.search</field>
1707 <field name="model">account.payment.term</field>
1708 <field name="arch" type="xml">
1709 <search string="Payment Term">
1710 <field name="name" string="Payment Term"/>
1711 <field name="active"/>
1715 <record id="view_payment_term_form" model="ir.ui.view">
1716 <field name="name">account.payment.term.form</field>
1717 <field name="model">account.payment.term</field>
1718 <field name="arch" type="xml">
1719 <form string="Payment Term">
1721 <field name="name"/>
1722 <field name="active"/>
1725 <field name="note" placeholder="Payment term explanation for the customer..."/>
1726 <separator string="Computation"/>
1727 <field name="line_ids"/>
1731 <record id="action_payment_term_form" model="ir.actions.act_window">
1732 <field name="name">Payment Terms</field>
1733 <field name="res_model">account.payment.term</field>
1734 <field name="view_type">form</field>
1735 <field name="view_mode">tree,form</field>
1736 <field name="search_view_id" ref="view_payment_term_search"/>
1738 <menuitem id="account_followup_main_menu" parent="menu_finance_configuration" name="Follow-ups" sequence="6"/>
1740 <menuitem action="action_payment_term_form"
1741 id="menu_action_payment_term_form" parent="account_followup_main_menu" sequence="0"/>
1743 <!-- Account Subscriptions -->
1744 <record id="view_subscription_line_form" model="ir.ui.view">
1745 <field name="name">account.subscription.line.form</field>
1746 <field name="model">account.subscription.line</field>
1747 <field name="arch" type="xml">
1748 <form string="Subscription lines">
1750 <field name="date"/>
1751 <field name="move_id"/>
1756 <record id="view_subscription_line_tree" model="ir.ui.view">
1757 <field name="name">account.subscription.line.tree</field>
1758 <field name="model">account.subscription.line</field>
1759 <field name="arch" type="xml">
1760 <tree string="Subscription lines">
1761 <field name="date"/>
1762 <field name="move_id"/>
1766 <record id="view_subscription_tree" model="ir.ui.view">
1767 <field name="name">account.subscription.tree</field>
1768 <field name="model">account.subscription</field>
1769 <field name="arch" type="xml">
1770 <tree colors="blue:state == 'draft';gray:state == 'done';black:state == 'running'" string="Entry Subscription">
1771 <field name="name"/>
1772 <field name="model_id"/>
1774 <field name="date_start"/>
1775 <field name="state"/>
1779 <record id="view_subscription_search" model="ir.ui.view">
1780 <field name="name">account.subscription.search</field>
1781 <field name="model">account.subscription</field>
1782 <field name="arch" type="xml">
1783 <search string="Entry Subscription">
1784 <field name="name" string="Account Subscription"/>
1785 <field name="date_start"/>
1786 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Subscription"/>
1787 <filter icon="terp-camera_test" string="Running" domain="[('state','=','running')]" help="Running Subscription"/>
1788 <field name="model_id"/>
1789 <group expand="0" string="Group By">
1790 <filter string="Model" icon="terp-folder-orange" domain="[]" context="{'group_by':'model_id'}"/>
1791 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1796 <record id="view_subscription_form" model="ir.ui.view">
1797 <field name="name">account.subscription.form</field>
1798 <field name="model">account.subscription</field>
1799 <field name="arch" type="xml">
1800 <form string="Recurring">
1802 <button name="state_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert" />
1803 <button name="compute" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific" class="oe_highlight"/>
1804 <button name="remove_line" states="running" string="Remove Lines" type="object" icon="gtk-remove" class="oe_highlight"/>
1805 <field name="state" widget="statusbar" statusbar_visible="draft,running,done"/>
1810 <field name="name"/>
1811 <field name="model_id"/>
1815 <field name="date_start"/>
1816 <field name="period_type"/>
1817 <field name="period_nbr"/>
1818 <field name="period_total"/>
1821 <separator string="Subscription Lines"/>
1822 <field name="lines_id" widget="one2many_list"/>
1827 <record id="action_subscription_form" model="ir.actions.act_window">
1828 <field name="name">Recurring Lines</field>
1829 <field name="res_model">account.subscription</field>
1830 <field name="view_type">form</field>
1831 <field name="view_mode">tree,form</field>
1832 <field name="search_view_id" ref="view_subscription_search"/>
1833 <field name="help" type="html">
1834 <p class="oe_view_nocontent_create">
1835 Click to define a new recurring entry.
1837 A recurring entry occurs on a recurrent basis from a specific
1838 date, i.e. corresponding to the signature of a contract or an
1839 agreement with a customer or a supplier. You can create such
1840 entries to automate the postings in the system.
1845 name="Define Recurring Entries" action="action_subscription_form"
1846 id="menu_action_subscription_form" sequence="1"
1847 parent="account.menu_configuration_recurrent_entries"/>
1849 <record id="action_subscription_form_running" model="ir.actions.act_window">
1850 <field name="name">Running Subscriptions</field>
1851 <field name="res_model">account.subscription</field>
1852 <field name="view_type">form</field>
1853 <field name="view_mode">tree,form</field>
1854 <field name="domain">[('state','=','running')]</field>
1855 <field name="filter" eval="True"/>
1858 <record id="action_subscription_form_new" model="ir.actions.act_window">
1859 <field name="name">New Subscription</field>
1860 <field name="res_model">account.subscription</field>
1861 <field name="view_type">form</field>
1862 <field name="view_mode">form,tree</field>
1863 <field name="view_id" ref="view_subscription_form"/>
1866 <record id="view_subscription_line_form_complete" model="ir.ui.view">
1867 <field name="name">account.subscription.line.form</field>
1868 <field name="model">account.subscription.line</field>
1869 <field eval="20" name="priority"/>
1870 <field name="arch" type="xml">
1871 <form string="Subscription lines">
1873 <field name="subscription_id"/>
1874 <field name="date"/>
1875 <field name="move_id"/>
1881 <!-- Account Templates -->
1884 id="account_template_taxes"
1889 <record id="view_account_template_form" model="ir.ui.view">
1890 <field name="name">account.account.template.form</field>
1891 <field name="model">account.account.template</field>
1892 <field name="arch" type="xml">
1893 <form string="Account Template">
1895 <field name="name"/>
1896 <field name="code"/>
1898 <field name="parent_id"/>
1899 <field name="shortcut"/>
1900 <field name="type"/>
1901 <field name="user_type"/>
1903 <field name="currency_id" groups="base.group_multi_currency"/>
1904 <field name="reconcile"/>
1905 <field name="chart_template_id"/>
1907 <separator string="Default Taxes"/>
1908 <field name="tax_ids"/>
1909 <separator string="Notes"/>
1910 <field name="note" placeholder="Internal notes..."/>
1914 <record id="view_account_template_tree" model="ir.ui.view">
1915 <field name="name">account.account.template.tree</field>
1916 <field name="model">account.account.template</field>
1917 <field name="arch" type="xml">
1918 <tree string="Account Template">
1919 <field name="code"/>
1920 <field name="name"/>
1921 <field name="type" invisible="1"/>
1922 <field name="user_type" invisible="1"/>
1926 <record id="view_account_template_search" model="ir.ui.view">
1927 <field name="name">account.account.template.search</field>
1928 <field name="model">account.account.template</field>
1929 <field name="arch" type="xml">
1930 <search string="Search Account Templates">
1931 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account Template"/>
1932 <filter icon="terp-sale" string="Receivable Accounts" domain="[('type','=','receivable')]"/>
1933 <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
1934 <field name="parent_id"/>
1935 <field name="user_type"/>
1936 <field name="type"/>
1937 <group expand="0" string="Group By">
1938 <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
1939 <filter string="Account Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'user_type'}"/>
1944 <record id="action_account_template_form" model="ir.actions.act_window">
1945 <field name="name">Account Templates</field>
1946 <field name="res_model">account.account.template</field>
1947 <field name="view_type">form</field>
1948 <field name="view_mode">tree,form</field>
1949 <field name="search_view_id" ref="view_account_template_search"/>
1951 <menuitem action="action_account_template_form" id="menu_action_account_template_form" parent="account_template_folder"
1954 <record id="view_account_addtmpl_wizard_form" model="ir.ui.view">
1955 <field name="name">Create Account</field>
1956 <field name="model">account.addtmpl.wizard</field>
1957 <field name="arch" type="xml">
1958 <form string="Create Account">
1960 <button icon="gtk-ok" name="action_create" string="Add" type="object" class="oe_highlight" />
1962 <separator col="4" colspan="4" string="Create an Account Based on this Template"/>
1963 <field name="cparent_id"/>
1968 <act_window domain="[]" id="action_account_addtmpl_wizard_form"
1969 name="Create Account"
1971 res_model="account.addtmpl.wizard"
1972 context="{'tmpl_ids': active_id}"
1973 src_model="account.account.template"
1974 view_type="form" view_mode="form"/>
1977 <!-- Chart of Accounts Templates -->
1978 <record id="view_account_chart_template_form" model="ir.ui.view">
1979 <field name="name">account.chart.template.form</field>
1980 <field name="model">account.chart.template</field>
1981 <field name="arch" type="xml">
1982 <form string="Chart of Accounts Template">
1984 <field name="name"/>
1985 <field name="account_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
1986 <field name="bank_account_view_id" attrs="{'required': [('parent_id', '=', False)]}"/>
1987 <field name="tax_code_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
1988 <field name="parent_id" />
1989 <!--<field name="code_digits" />-->
1990 <field name="visible" />
1991 <field name="complete_tax_set" />
1993 <separator string="Default Taxes" colspan="4"/>
1994 <field name="tax_template_ids" colspan="4" nolabel="1"/>
1995 <separator string="Properties" colspan="4"/>
1997 <field name="property_account_receivable" domain="[('id', 'child_of', [account_root_id])]"/>
1998 <field name="property_account_payable" domain="[('id', 'child_of', [account_root_id])]"/>
1999 <field name="property_account_expense_categ" domain="[('id', 'child_of', [account_root_id])]"/>
2000 <field name="property_account_income_categ" domain="[('id', 'child_of', [account_root_id])]" />
2001 <field name="property_account_expense" domain="[('id', 'child_of', [account_root_id])]"/>
2002 <field name="property_account_income" domain="[('id', 'child_of', [account_root_id])]"/>
2003 <field name="property_account_income_opening" domain="[('id', 'child_of', [account_root_id])]"/>
2004 <field name="property_account_expense_opening" domain="[('id', 'child_of', [account_root_id])]"/>
2009 <record id="view_account_chart_template_seacrh" model="ir.ui.view">
2010 <field name="name">account.chart.template.search</field>
2011 <field name="model">account.chart.template</field>
2012 <field name="arch" type="xml">
2013 <search string="Search Chart of Account Templates">
2014 <field name="name" string="Account Template"/>
2015 <field name="account_root_id"/>
2016 <field name="bank_account_view_id"/>
2017 <group expand="0" string="Group By">
2018 <filter string="Root Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'account_root_id'}"/>
2019 <filter string="Bank Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'bank_account_view_id'}"/>
2020 <filter string="Receivable Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_receivable'}"/>
2021 <filter string="Payable Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_payable'}"/>
2022 <filter string="Income Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_income_categ'}"/>
2023 <filter string="Expense Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_expense_categ'}"/>
2028 <record id="view_account_chart_template_tree" model="ir.ui.view">
2029 <field name="name">account.chart.template.tree</field>
2030 <field name="model">account.chart.template</field>
2031 <field name="arch" type="xml">
2032 <tree string="Chart of Accounts Template">
2033 <field name="name"/>
2034 <field name="account_root_id"/>
2035 <field name="tax_code_root_id"/>
2036 <field name="bank_account_view_id"/>
2037 <field name="property_account_receivable" invisible="1"/>
2038 <field name="property_account_payable" invisible="1"/>
2039 <field name="property_account_expense_categ" invisible="1"/>
2040 <field name="property_account_income_categ" invisible="1"/>
2044 <record id="action_account_chart_template_form" model="ir.actions.act_window">
2045 <field name="name">Chart of Accounts Templates</field>
2046 <field name="res_model">account.chart.template</field>
2047 <field name="view_type">form</field>
2048 <field name="view_mode">tree,form</field>
2050 <menuitem action="action_account_chart_template_form" id="menu_action_account_chart_template_form" parent="account_template_folder" sequence="1"/>
2052 <!-- Account Tax Templates -->
2053 <record id="view_account_tax_template_form" model="ir.ui.view">
2054 <field name="name">account.tax.template.form</field>
2055 <field name="model">account.tax.template</field>
2056 <field name="arch" type="xml">
2057 <form string="Account Tax Template">
2059 <field name="name"/>
2060 <field name="description"/>
2061 <field name="chart_template_id"/>
2062 <field name="type"/>
2063 <field name="type_tax_use"/>
2064 <field name="price_include"/>
2067 <page string="Tax Definition">
2069 <field name="applicable_type"/>
2070 <field name="amount" attrs="{'readonly':[('type','=','none'),('type','=','code')]}"/>
2071 <field name="include_base_amount"/>
2072 <field name="domain"/>
2074 <field name="account_collected_id"/>
2075 <label colspan="2" string="Keep empty to use the income account"/>
2076 <field name="account_paid_id"/>
2077 <label colspan="2" string="Keep empty to use the expense account"/>
2078 <field name="child_depend"/>
2079 <field name="sequence"/>
2082 <page string="Tax Declaration">
2084 <separator colspan="4" string="Invoices"/>
2085 <field name="base_code_id"/>
2086 <field name="base_sign"/>
2087 <field name="tax_code_id"/>
2088 <field name="tax_sign"/>
2090 <separator colspan="4" string="Credit Notes"/>
2091 <field name="ref_base_code_id"/>
2092 <field name="ref_base_sign"/>
2093 <field name="ref_tax_code_id"/>
2094 <field name="ref_tax_sign"/>
2097 <page string="Special Computation">
2098 <separator string="Compute Code (if type=code)"/>
2099 <field name="python_compute" attrs="{'readonly':[('type','!=','code')]}"/>
2100 <separator string="Compute Code for Taxes Included Prices"/>
2101 <field name="python_compute_inv"/>
2102 <separator string="Applicable Code (if type=code)"/>
2103 <field name="python_applicable" attrs="{'readonly':[('applicable_type','=','true')]}"/>
2109 <record id="view_account_tax_template_tree" model="ir.ui.view">
2110 <field name="name">account.tax.template.tree</field>
2111 <field name="model">account.tax.template</field>
2112 <field name="arch" type="xml">
2113 <tree string="Account Tax Template">
2114 <field name="name" />
2115 <field name="description"/>
2119 <record id="view_account_tax_template_search" model="ir.ui.view">
2120 <field name="name">account.tax.template.search</field>
2121 <field name="model">account.tax.template</field>
2122 <field name="arch" type="xml">
2123 <search string="Search Tax Templates">
2124 <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax Template"/>
2125 <filter icon="terp-sale" string="Sale" domain="[('type_tax_use','=','sale')]" help="Taxes used in Sales"/>
2126 <filter icon="terp-purchase" string="Purchase" domain="[('type_tax_use','=','purchase')]" help="Taxes used in Purchases"/>
2127 <field name="chart_template_id"/>
2131 <record id="action_account_tax_template_form" model="ir.actions.act_window">
2132 <field name="name">Tax Templates</field>
2133 <field name="res_model">account.tax.template</field>
2134 <field name="view_type">form</field>
2135 <field name="view_mode">tree,form</field>
2136 <field name="search_view_id" ref="view_account_tax_template_search"/>
2138 <menuitem action="action_account_tax_template_form" id="menu_action_account_tax_template_form" parent="account_template_taxes" sequence="13"/>
2140 <!-- Account Tax Code Templates -->
2141 <record id="view_tax_code_template_tree" model="ir.ui.view">
2142 <field name="name">account.tax.code.template.tree</field>
2143 <field name="model">account.tax.code.template</field>
2144 <field name="field_parent">child_ids</field>
2145 <field name="arch" type="xml">
2146 <tree string="Account Tax Code Template" toolbar="1">
2147 <field name="name"/>
2148 <field name="code"/>
2149 <field name="parent_id" invisible="1"/>
2153 <record id="view_tax_code_template_search" model="ir.ui.view">
2154 <field name="name">account.tax.code.template.search</field>
2155 <field name="model">account.tax.code.template</field>
2156 <field name="arch" type="xml">
2157 <search string="Search tax template">
2158 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Tax Template"/>
2159 <field name="parent_id"/>
2160 <group expand="0" string="Group By">
2161 <filter string="Parent Code" icon="terp-folder-orange" domain="[]" context="{'group_by':'parent_id'}"/>
2166 <record id="view_tax_code_template_form" model="ir.ui.view">
2167 <field name="name">account.tax.code.template.form</field>
2168 <field name="model">account.tax.code.template</field>
2169 <field name="arch" type="xml">
2170 <form string="Account Tax Code Template">
2172 <field name="name"/>
2173 <field name="code"/>
2174 <field name="parent_id"/>
2175 <field name="sign"/>
2177 <separator string="Description"/>
2178 <field name="info"/>
2182 <record id="action_account_tax_code_template_form" model="ir.actions.act_window">
2183 <field name="name">Tax Code</field>
2184 <field name="res_model">account.tax.code.template</field>
2185 <field name="view_type">form</field>
2186 <field name="view_mode">tree,form</field>
2187 <field name="search_view_id" ref="view_tax_code_template_search"/>
2189 <menuitem action="action_account_tax_code_template_form" id="menu_action_account_tax_code_template_form" parent="account_template_taxes" sequence="14"/>
2192 <!-- Wizard for Multi Charts of Accounts -->
2193 <record id="view_wizard_multi_chart" model="ir.ui.view">
2194 <field name="name">Set Your Accounting Options</field>
2195 <field name="model">wizard.multi.charts.accounts</field>
2196 <field name="inherit_id" ref="base.res_config_view_base"/>
2197 <field name="arch" type="xml">
2198 <form position="attributes">
2199 <attribute name="string">Accounting Application Configuration</attribute>
2201 <group string="res_config_contents" position="replace">
2202 <field name="only_one_chart_template" invisible="1"/>
2203 <field name="complete_tax_set" invisible="1"/>
2205 <group attrs="{'invisible': [('only_one_chart_template','=',True)]}">
2206 <field name="chart_template_id" widget="selection" on_change="onchange_chart_template_id(chart_template_id)" domain="[('visible','=', True)]"/>
2209 <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 -->
2210 <field name="currency_id" class="oe_inline"/>
2211 <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'))]"/>
2212 <label for="sale_tax_rate" string="Sale Tax" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
2213 <div attrs="{'invisible': [('complete_tax_set', '=', True)]}">
2214 <field name="sale_tax_rate" class="oe_inline" on_change="onchange_tax_rate(sale_tax_rate)"/> %%
2216 <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'))]"/>
2217 <label for="purchase_tax_rate" string="Purchase Tax" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
2218 <div attrs="{'invisible': [('complete_tax_set', '=', True)]}">
2219 <field name="purchase_tax_rate" class="oe_inline"/> %%
2222 <group groups="account.group_account_user">
2223 <field name="code_digits"/>
2229 <record id="action_wizard_multi_chart" model="ir.actions.act_window">
2230 <field name="name">Set Your Accounting Options</field>
2231 <field name="type">ir.actions.act_window</field>
2232 <field name="res_model">wizard.multi.charts.accounts</field>
2233 <field name="view_id" ref="view_wizard_multi_chart"/>
2234 <field name="view_type">form</field>
2235 <field name="view_mode">form</field>
2236 <field name="target">new</field>
2239 <record id="account_account_graph" model="ir.ui.view">
2240 <field name="name">account.account.graph</field>
2241 <field name="model">account.account</field>
2242 <field name="arch" type="xml">
2243 <graph string="Account Statistics" type="bar">
2244 <field name="name"/>
2245 <field name="balance" operator="+"/>
2250 <!-- Fiscal Position Templates -->
2252 <record id="view_account_position_template_search" model="ir.ui.view">
2253 <field name="name">account.fiscal.position.template.search</field>
2254 <field name="model">account.fiscal.position.template</field>
2255 <field name="arch" type="xml">
2256 <search string="Fiscal Position">
2257 <field name="name" string="Fiscal Position Template"/>
2262 <record id="view_account_position_template_form" model="ir.ui.view">
2263 <field name="name">account.fiscal.position.template.form</field>
2264 <field name="model">account.fiscal.position.template</field>
2265 <field name="arch" type="xml">
2266 <form string="Fiscal Position Template">
2268 <field name="name"/>
2269 <field name="chart_template_id"/>
2271 <field name="tax_ids">
2272 <tree string="Taxes Mapping" editable="bottom">
2273 <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2274 <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2276 <form string="Taxes Mapping">
2277 <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2278 <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2281 <field name="account_ids">
2282 <tree string="Accounts Mapping" editable="bottom">
2283 <field name="account_src_id"/>
2284 <field name="account_dest_id"/>
2286 <form string="Accounts Mapping">
2287 <field name="account_src_id"/>
2288 <field name="account_dest_id"/>
2294 <record id="view_account_position_template_tree" model="ir.ui.view">
2295 <field name="name">account.fiscal.position.template.tree</field>
2296 <field name="model">account.fiscal.position.template</field>
2297 <field name="arch" type="xml">
2298 <tree string="Fiscal Position">
2299 <field name="name"/>
2304 <record id="action_account_fiscal_position_template_form" model="ir.actions.act_window">
2305 <field name="name">Fiscal Position</field>
2306 <field name="res_model">account.fiscal.position.template</field>
2307 <field name="view_type">form</field>
2308 <field name="view_mode">tree,form</field>
2309 <field name="search_view_id" ref="view_account_position_template_search"/>
2313 action="action_account_fiscal_position_template_form"
2314 id="menu_action_account_fiscal_position_form_template"
2315 parent="account_template_taxes" sequence="20"/>
2317 <!-- Cash Statement -->
2318 <record id="view_cash_statement_tree" model="ir.ui.view">
2319 <field name="name">account.bank.statement.tree</field>
2320 <field name="model">account.bank.statement</field>
2321 <field name="arch" type="xml">
2322 <tree colors="red:balance_end_real!=balance_end;blue:state=='draft' and (balance_end_real==balance_end);black:state == 'open'" string="Statement">
2323 <field name="name"/>
2324 <field name="date"/>
2325 <field name="period_id"/>
2326 <field name="journal_id"/>
2327 <field name="balance_start"/>
2328 <field name="balance_end_real"/>
2329 <field name="balance_end" invisible="1" />
2330 <field name="state"/>
2334 <record id="view_bank_statement_form2" model="ir.ui.view">
2335 <field name="name">account.bank.statement.form</field>
2336 <field name="model">account.bank.statement</field>
2337 <field name="priority">2</field>
2338 <field name="arch" type="xml">
2339 <form string="Statement">
2341 <field name="all_lines_reconciled" invisible="1" />
2342 <span attrs="{'invisible':['|',('all_lines_reconciled','=',True),('line_ids','=',[])]}">
2343 <button name="%(action_bank_reconcile_bank_statements)d" states="open" string="Reconcile" type="action" class="oe_highlight"/>
2345 <span attrs="{'invisible':[('all_lines_reconciled','=',False)]}">
2346 <button name="button_confirm_cash" states="open" string="Close CashBox" type="object" class="oe_highlight"/>
2348 <button name="button_open" states="draft" string="Open CashBox" type="object" class="oe_highlight"/>
2349 <button name="button_cancel" states="confirm,open" string="Cancel CashBox" type="object"/>
2350 <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,confirm"/>
2352 <sheet string="Statement">
2353 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
2354 <h1><field name="name" class="oe_inline" attrs="{'invisible':[('name','=','/')]}"/></h1>
2357 <field name="journal_id" on_change="onchange_journal_id(journal_id)" widget="selection" domain="[('type', '=', 'cash')]" />
2358 <field name="user_id" attrs="{'readonly':[('state','!=','draft')]}" string="Responsible"/>
2359 <field name='company_id' widget="selection" groups="base.group_multi_company" />
2362 <field name="date" attrs="{'readonly':[('state','!=','draft')]}" on_change="onchange_date(date, company_id)"/>
2363 <field name="closing_date" readonly="1"/>
2364 <field name="period_id" class="oe_inline"/>
2365 <field name="currency" invisible="1"/>
2366 <field name="cash_control" invisible="1"/>
2370 <page string="Cash Transactions" attrs="{'invisible': [('state','=','draft')]}">
2371 <field name="line_ids" context="{'date':date}">
2372 <tree editable="bottom" string="Statement lines">
2373 <field name="sequence" invisible="1"/>
2374 <field name="date"/>
2375 <field name="name"/>
2377 <field name="partner_id"/>
2378 <field name="amount"/>
2380 <form string="Statement lines">
2382 <field name="date"/>
2383 <field name="name"/>
2385 <field name="partner_id"/>
2386 <field name="amount"/>
2387 <field name="sequence"/>
2389 <separator string="Notes"/>
2390 <field name="note"/>
2394 <page string="Cash Control" attrs="{'invisible' : [('cash_control', '=', False)]}">
2395 <group col="2" expand="1">
2396 <group string="Opening Cash Control" attrs="{'invisible' : [('state', '!=', 'draft')]}">
2397 <field name="opening_details_ids" colspan="2" nolabel="1">
2398 <tree string="Opening Cashbox Lines" editable="bottom">
2399 <field name="pieces"/>
2400 <field name="number_opening" on_change="on_change_sub_opening(pieces, number_opening)" />
2401 <field name="subtotal_opening" string="Opening Subtotal" sum="Total"/>
2406 <group string="Opening Cash Control" attrs="{'invisible' : [('state', '=', 'draft')]}">
2407 <field name="details_ids" colspan="2" nolabel="1" attrs="{'readonly' : [('state', '!=', 'draft')]}">
2408 <tree string="Opening Cashbox Lines" editable="bottom">
2409 <field name="pieces"/>
2410 <field name="number_opening" on_change="on_change_sub_opening(pieces, number_opening)"/>
2411 <field name="subtotal_opening" string="Opening Subtotal" sum="Total"/>
2415 <group string="Closing Cash Control" attrs="{'invisible' : [('state', '=', 'draft')]}">
2416 <field name="closing_details_ids" colspan="2" nolabel="1" attrs="{'readonly' : [('state', '=', 'confirm')]}">
2417 <tree string="Closing Cashbox Lines" editable="bottom">
2418 <field name="pieces" readonly="1" />
2419 <field name="number_closing" on_change="on_change_sub_closing(pieces, number_closing)"/>
2420 <field name="subtotal_closing" string="Closing Subtotal" sum="Total"/>
2427 <page string="Journal Entries" attrs="{'invisible': [('state','!=','confirm')]}">
2428 <field name="move_line_ids" string="Journal Entries"/>
2432 <group class="oe_subtotal_footer oe_right">
2433 <label for="balance_start" class="oe_subtotal_footer_separator oe_open_balance" string="Opening Balance" style="padding-right: 23px !important; padding-top: 6px !important;"/>
2434 <field name="balance_start" attrs="{'readonly' : ['|', ('cash_control', '=', True), ('state', '=', 'confirm')]}" nolabel="1" widget="monetary" class="oe_subtotal_footer_separator oe_open_balance" options="{'currency_field': 'currency'}" help="Total of opening cash control lines"/>
2435 <label for="total_entry_encoding" string="+ Transactions" class="oe_force_bold oe_mini_subtotal_footer_separator" style="padding-right: 20px !important;"/>
2436 <field name="total_entry_encoding" nolabel="1" class="oe_bold oe_account_total" widget="monetary" options="{'currency_field': 'currency'}"/>
2437 <label for="balance_end" string="= Theoretical Closing Balance" class="oe_force_bold oe_mini_subtotal_footer_separator" style="padding-right: 20px !important;" help="Sum of opening balance and transactions."/>
2438 <field name="balance_end" nolabel="1" class="oe_bold oe_account_total" widget="monetary" options="{'currency_field': 'currency'}"/>
2441 <group class="oe_subtotal_footer oe_right" attrs="{'invisible': [('state', '=', 'draft')]}">
2442 <label for="balance_end_real" class="oe_subtotal_footer_separator oe_real_closing_balance" string="Real Closing Balance" style="padding-right: 23px !important; padding-top: 6px !important;"/>
2443 <field name="balance_end_real" attrs="{'readonly' : ['|', ('cash_control', '=', True), ('state', '=', 'confirm')]}" nolabel="1" class="oe_subtotal_footer_separator oe_real_closing_balance" widget="monetary" options="{'currency_field': 'currency'}" help="Total of closing cash control lines."/>
2447 <group class="oe_subtotal_footer oe_right" attrs="{'invisible': [('state', '=', 'draft')]}">
2448 <label for="difference" string="Difference" class="oe_subtotal_footer_separator oe_difference" style="padding-right: 20px !important;"/>
2449 <field name="difference" nolabel="1" class="oe_subtotal_footer_separator oe_difference" widget="monetary" options="{'currency_field': 'currency'}"/>
2457 <record id="account_cash_statement_graph" model="ir.ui.view">
2458 <field name="name">account.bank.statement.graph</field>
2459 <field name="model">account.bank.statement</field>
2460 <field name="arch" type="xml">
2461 <graph string="Account Statistics" type="bar">
2462 <field name="date"/>
2463 <field name="balance_start" operator="+"/>
2464 <field name="balance_end" operator="+"/>
2468 <record id="action_view_bank_statement_tree" model="ir.actions.act_window">
2469 <field name="name">Cash Registers</field>
2470 <field name="type">ir.actions.act_window</field>
2471 <field name="res_model">account.bank.statement</field>
2472 <field name="view_type">form</field>
2473 <field name="view_mode">tree,form,graph</field>
2474 <field name="view_id" ref="view_cash_statement_tree"/>
2475 <field name="search_view_id" ref="view_account_bank_statement_filter"/>
2476 <field name="domain">[('journal_id.type', '=', 'cash')]</field>
2477 <field name="context">{'journal_type':'cash'}</field>
2478 <field name="help" type="html">
2479 <p class="oe_view_nocontent_create">
2480 Click to create a new cash log.
2482 A Cash Register allows you to manage cash entries in your cash
2483 journals. This feature provides an easy way to follow up cash
2484 payments on a daily basis. You can enter the coins that are in
2485 your cash box, and then post entries when money comes in or
2486 goes out of the cash box.
2491 <record model="ir.actions.act_window.view" id="act_cash_statement1_all">
2492 <field name="sequence" eval="1"/>
2493 <field name="view_mode">tree</field>
2494 <field name="view_id" ref="view_cash_statement_tree"/>
2495 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2497 <record model="ir.actions.act_window.view" id="act_cash_statement2_all">
2498 <field name="sequence" eval="1"/>
2499 <field name="view_mode">form</field>
2500 <field name="view_id" ref="view_bank_statement_form2"/>
2501 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2503 <record model="ir.actions.act_window.view" id="act_cash_statement3_all">
2504 <field name="sequence" eval="1"/>
2505 <field name="view_mode">graph</field>
2506 <field name="view_id" ref="account_cash_statement_graph"/>
2507 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2509 <menuitem action="action_view_bank_statement_tree" id="journal_cash_move_lines"
2510 parent="menu_finance_bank_and_cash"/>
2512 <menuitem id="menu_account_customer" name="Customers"
2513 parent="menu_finance_receivables"
2514 action="base.action_partner_customer_form" sequence="100"/>
2516 <menuitem id="menu_account_supplier" name="Suppliers"
2517 parent="menu_finance_payables"
2518 action="base.action_partner_supplier_form" sequence="7"/>
2520 <!-- Account Reports -->
2521 <record id="view_account_financial_report_form" model="ir.ui.view">
2522 <field name="name">account.financial.report.form</field>
2523 <field name="model">account.financial.report</field>
2524 <field name="arch" type="xml">
2525 <form string="Account Report">
2527 <field name="name"/>
2528 <field name="parent_id"/>
2529 <field name="sequence"/>
2530 <field name="type"/>
2531 <field name="sign"/>
2532 <field name="style_overwrite"/>
2534 <notebook attrs="{'invisible': [('type','not in',['accounts','account_type'])]}">
2535 <page string="Report">
2537 <field name="display_detail" attrs="{'invisible': [('type','not in',['accounts','account_type'])]}"/>
2538 <field name="account_report_id" attrs="{'invisible': [('type', '!=', 'account_report')]}"/>
2540 <field name="account_ids" attrs="{'invisible': [('type', '!=', 'accounts')]}"/>
2541 <field name="account_type_ids" attrs="{'invisible': [('type', '!=', 'account_type')]}"/>
2547 <record id="view_account_financial_report_tree" model="ir.ui.view">
2548 <field name="name">account.financial.report.tree</field>
2549 <field name="model">account.financial.report</field>
2550 <field name="arch" type="xml">
2551 <tree string="Account Report">
2552 <field name="name"/>
2553 <field name="parent_id" invisible="1"/>
2554 <field name="type"/>
2555 <field name="account_report_id"/>
2559 <record id="view_account_financial_report_search" model="ir.ui.view">
2560 <field name="name">account.financial.report.search</field>
2561 <field name="model">account.financial.report</field>
2562 <field name="arch" type="xml">
2563 <search string="Account Report">
2564 <field name="name" string="Account Report"/>
2565 <field name="type"/>
2566 <field name="account_report_id"/>
2567 <group expand="0" string="Group By">
2568 <filter string="Parent Report" icon="terp-folder-orange" domain="" context="{'group_by':'parent_id'}"/>
2569 <filter string="Report Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
2574 <record id="action_account_financial_report_tree" model="ir.actions.act_window">
2575 <field name="name">Financial Reports</field>
2576 <field name="type">ir.actions.act_window</field>
2577 <field name="res_model">account.financial.report</field>
2578 <field name="view_type">form</field>
2579 <field name="view_mode">tree,form</field>
2580 <field name="search_view_id" ref="view_account_financial_report_search"/>
2581 <field name="view_id" ref="view_account_financial_report_tree"/>
2583 <menuitem id="menu_account_financial_reports_tree" name="Account Reports Types" parent="menu_account_reports" action="action_account_financial_report_tree"/>
2585 <record id="view_account_report_tree_hierarchy" model="ir.ui.view">
2586 <field name="name">account.report.hierarchy</field>
2587 <field name="model">account.financial.report</field>
2588 <field name="field_parent">children_ids</field>
2589 <field name="arch" type="xml">
2590 <tree string="Account Reports Hierarchy">
2591 <field name="name"/>
2592 <field name="type"/>
2593 <field name="parent_id" invisible="1"/>
2594 <field name="account_report_id"/>
2598 <record id="action_account_report_tree_hierarchy" model="ir.actions.act_window">
2599 <field name="name">Financial Reports Hierarchy</field>
2600 <field name="res_model">account.financial.report</field>
2601 <field name="view_type">tree</field>
2602 <field name="view_id" ref="view_account_report_tree_hierarchy"/>
2603 <field name="domain">[('parent_id','=',False)]</field>
2605 <menuitem id="menu_account_report_tree_hierarchy" name="Account Reports Hierarchy"
2606 parent="menu_account_reports" action="action_account_report_tree_hierarchy"/>