1 <?xml version="1.0" encoding="utf-8"?>
9 <record id="view_account_fiscalyear_form" model="ir.ui.view">
10 <field name="name">account.fiscalyear.form</field>
11 <field name="model">account.fiscalyear</field>
12 <field name="arch" type="xml">
13 <form string="Fiscal year" version="7.0">
15 <button name="create_period" states="draft" string="Create Monthly Periods" type="object" class="oe_highlight"/>
16 <button name="create_period3" states="draft" string="Create 3 Months Periods" type="object" class="oe_highlight"/>
17 <field name="state" widget="statusbar" nolabel="1" />
23 <field name="company_id" groups="base.group_multi_company"/>
24 <field name="end_journal_period_id"/>
27 <field name="date_start"/>
28 <field name="date_stop"/>
31 <field colspan="4" name="period_ids" nolabel="1" widget="one2many_list">
32 <form string="Period" version="7.0">
36 <field name="date_start"/>
37 <field name="date_stop"/>
38 <field name="special"/>
39 <field name="state" invisible="1"/>
46 <record id="view_account_fiscalyear_tree" model="ir.ui.view">
47 <field name="name">account.fiscalyear.tree</field>
48 <field name="model">account.fiscalyear</field>
49 <field name="arch" type="xml">
50 <tree colors="blue:state == 'draft';gray:state == 'done' " string="Fiscalyear">
53 <field name="company_id" groups="base.group_multi_company"/>
58 <record id="view_account_fiscalyear_search" model="ir.ui.view">
59 <field name="name">account.fiscalyear.search</field>
60 <field name="model">account.fiscalyear</field>
61 <field name="arch" type="xml">
62 <search string="Search Fiscalyear">
63 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Fiscal Year"/>
64 <filter string="Open" domain="[('state','=','draft')]" icon="terp-camera_test"/>
65 <filter string="Closed" domain="[('state','=','done')]" icon="terp-dialog-close"/>
67 <group expand="0" string="Group By...">
68 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
73 <record id="action_account_fiscalyear_form" model="ir.actions.act_window">
74 <field name="name">Fiscal Years</field>
75 <field name="res_model">account.fiscalyear</field>
76 <field name="view_type">form</field>
77 <field name="view_mode">tree,form</field>
78 <field name="help" type="html">
79 <p class="oe_view_nocontent_create">
80 Click to start a new fiscal year.
82 Define your company's financial year according to your needs. A
83 financial year is a period at the end of which a company's
84 accounts are made up (usually 12 months). The financial year is
85 usually referred to by the date in which it ends. For example,
86 if a company's financial year ends November 30, 2011, then
87 everything between December 1, 2010 and November 30, 2011
88 would be referred to as FY 2011.
92 <menuitem id="next_id_23" name="Periods" parent="account.menu_finance_configuration" sequence="5" />
93 <menuitem action="action_account_fiscalyear_form" id="menu_action_account_fiscalyear_form" parent="next_id_23"/>
99 <record id="view_account_period_form" model="ir.ui.view">
100 <field name="name">account.period.form</field>
101 <field name="model">account.period</field>
102 <field name="arch" type="xml">
103 <form string="Account Period" version="7.0">
105 <button string="Close Period" name="%(account.action_account_period_close)d" type="action" class="oe_highlight" states="draft"/>
106 <button name="action_draft" states="done" string="Set to Draft" type="object" groups="account.group_account_manager"/>
107 <field name="state" widget="statusbar" nolabel="1"/>
113 <field name="fiscalyear_id" widget="selection"/>
114 <label for="date_start" string="Duration"/>
116 <field name="date_start" class="oe_inline" nolabel="1"/> -
117 <field name="date_stop" nolabel="1" class="oe_inline"/>
122 <field name="special"/>
123 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
130 <record id="view_account_period_tree" model="ir.ui.view">
131 <field name="name">account.period.tree</field>
132 <field name="model">account.period</field>
133 <field name="arch" type="xml">
134 <tree colors="blue:state == 'draft';gray:state == 'done' " string="Period">
137 <field name="date_start"/>
138 <field name="date_stop"/>
139 <field name="special"/>
140 <field name="company_id" groups="base.group_multi_company"/>
141 <field name="state"/>
146 <record id="view_account_period_search" model="ir.ui.view">
147 <field name="name">account.period.search</field>
148 <field name="model">account.period</field>
149 <field name="arch" type="xml">
150 <search string="Search Period">
151 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Period"/>
152 <filter string="To Close" name="draft" domain="[('state','=','draft')]" icon="terp-dialog-close"/>
157 <record id="action_account_period_form" model="ir.actions.act_window">
158 <field name="name">Periods</field>
159 <field name="res_model">account.period</field>
160 <field name="view_type">form</field>
161 <field name="view_mode">tree,form</field>
162 <field name="context">{'search_default_draft': 1}</field>
163 <field name="help" type="html">
164 <p class="oe_view_nocontent_create">
165 Click to add a fiscal period.
167 An accounting period typically is a month or a quarter. It
168 usually corresponds to the periods of the tax declaration.
172 <menuitem action="action_account_period_form" id="menu_action_account_period_form" parent="account.next_id_23" groups="base.group_no_one"/>
178 <record id="view_account_form" model="ir.ui.view">
179 <field name="name">account.account.form</field>
180 <field name="model">account.account</field>
181 <field name="arch" type="xml">
182 <form string="Account" version="7.0">
183 <label for="code" class="oe_edit_only" string="Account Code and Name"/>
185 <field name="code" class="oe_inline" placeholder="Account code" style="width: 6em"/> -
186 <field name="name" class="oe_inline" placeholder="Account name"/>
190 <field name="parent_id"/>
192 <field name="user_type"/>
193 <field name="active"/>
194 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
197 <field name="debit" attrs="{'readonly':[('type','=','view')]}"/>
198 <field name="credit" attrs="{'readonly':[('type','=','view')]}"/>
199 <field name="balance"/>
202 <field name="tax_ids" domain="[('parent_id','=',False)]" widget="many2many_tags"/>
203 <field name="reconcile"/>
204 <field name="child_consol_ids"
205 attrs="{'invisible':[('type','!=','consolidation')]}"
206 widget="many2many_tags"/>
208 <group groups="base.group_multi_currency">
209 <field name="currency_id"/>
210 <field name="currency_mode" attrs="{'readonly': [('currency_id','=',False)]}"/>
219 <record id="view_account_search" model="ir.ui.view">
220 <field name="name">account.account.search</field>
221 <field name="model">account.account</field>
222 <field name="arch" type="xml">
223 <search string="Accounts">
224 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account"/>
225 <filter icon="terp-sale" string="Receivable Accounts" domain="[('type','=','receivable')]"/>
226 <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
227 <field name="user_type"/>
228 <group expand="0" string="Group By...">
229 <filter string="Parent Account" icon="terp-folder-orange" domain="" context="{'group_by':'parent_id'}"/>
230 <filter string="Account Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'user_type'}"/>
231 <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'type'}"/>
237 <record id="view_account_list" model="ir.ui.view">
238 <field name="name">account.account.list</field>
239 <field name="model">account.account</field>
240 <field name="field_parent">child_id</field>
241 <field name="arch" type="xml">
242 <tree colors="blue:type == 'view';black:type in ('other','receivable','payable','consolidation');gray:type == 'closed'" string="Chart of accounts" toolbar="1" >
245 <field name="parent_id" invisible="1"/>
246 <field name="user_type" invisible="1"/>
247 <field name="debit"/>
248 <field name="credit"/>
249 <field name="balance"/>
251 <field name="company_id" groups="base.group_multi_company"/>
252 <field name="company_currency_id"/>
256 <record id="action_account_form" model="ir.actions.act_window">
257 <field name="name">Accounts</field>
258 <field name="res_model">account.account</field>
259 <field name="view_type">form</field>
260 <field name="view_mode">tree,form,graph</field>
261 <field name="search_view_id" ref="view_account_search"/>
262 <field name="view_id" ref="view_account_list"/>
263 <field name="help" type="html">
264 <p class="oe_view_nocontent_create">
265 Click to add an account.
267 An account is part of a ledger allowing your company
268 to register all kinds of debit and credit transactions.
269 Companies present their annual accounts in two main parts: the
270 balance sheet and the income statement (profit and loss
271 account). The annual accounts of a company are required by law
272 to disclose a certain amount of information.
276 <menuitem id="account_account_menu" name="Accounts" parent="account.menu_finance_configuration" sequence="15"/>
277 <menuitem action="action_account_form" id="menu_action_account_form" parent="account_account_menu"/>
279 <record id="view_account_tree" model="ir.ui.view">
280 <field name="name">account.account.tree</field>
281 <field name="model">account.account</field>
282 <field name="field_parent">child_id</field>
283 <field name="arch" type="xml">
284 <tree colors="blue:type == 'view';black:type in ('other','receivable','payable','consolidation');gray:type == 'closed'" string="Chart of accounts" toolbar="1" >
287 <field name="debit"/>
288 <field name="credit"/>
289 <field name="balance"/>
290 <field name="company_currency_id"/>
291 <field name="company_id" groups="base.group_multi_company"/>
293 <field name="parent_id" invisible="1"/>
297 <record id="action_account_tree" model="ir.actions.act_window">
298 <field name="name">Chart of Accounts</field>
299 <field name="res_model">account.account</field>
300 <field name="view_type">tree</field>
301 <field name="view_id" ref="view_account_tree"/>
302 <field name="domain">[('parent_id','=',False)]</field>
305 <record id="view_account_gain_loss_tree" model="ir.ui.view">
306 <field name="name">Unrealized Gain or Loss</field>
307 <field name="model">account.account</field>
308 <field name="arch" type="xml">
309 <tree string="Unrealized Gains and losses">
312 <field name="parent_id" invisible="1"/>
313 <field name="user_type" invisible="1"/>
314 <field name="type" invisible="1"/>
315 <field name="currency_id"/>
316 <field name="exchange_rate"/>
317 <field name="foreign_balance"/>
318 <field name="adjusted_balance"/>
319 <field name="balance"/>
320 <field name="unrealized_gain_loss"/>
325 <record id="action_account_gain_loss" model="ir.actions.act_window">
326 <field name="name">Unrealized Gain or Loss</field>
327 <field name="res_model">account.account</field>
328 <field name="view_type">form</field>
329 <field name="view_mode">tree</field>
330 <field name="view_id" ref="view_account_gain_loss_tree"/>
331 <field name="domain">[('currency_id','!=',False)]</field>
332 <field name="help" type="html">
333 <p class="oe_view_nocontent_create">
334 Click to add an account.
336 When doing multi-currency transactions, you may loose or gain
337 some amount due to changes of exchange rate. This menu gives
338 you a forecast of the Gain or Loss you'd realized if those
339 transactions were ended today. Only for accounts having a
340 secondary currency set.
346 name="Unrealized Gain or Loss"
347 action="action_account_gain_loss"
348 groups="account.group_account_user"
349 id="menu_unrealized_gains_losses"
350 parent="account.menu_multi_currency"/>
355 Account Journal Columns
358 <record id="view_journal_column_form" model="ir.ui.view">
359 <field name="name">account.journal.column.form</field>
360 <field name="model">account.journal.column</field>
361 <field name="arch" type="xml">
362 <form string="Journal Column" version="7.0">
364 <field name="field"/>
365 <field name="sequence"/>
369 <record id="view_journal_column_tree" model="ir.ui.view">
370 <field name="name">account.journal.column.tree</field>
371 <field name="model">account.journal.column</field>
372 <field name="arch" type="xml">
373 <tree string="Journal Column">
374 <field name="sequence"/>
380 <record id="view_account_journal_view_search" model="ir.ui.view">
381 <field name="name">account.journal.view.search</field>
382 <field name="model">account.journal.view</field>
383 <field name="arch" type="xml">
384 <search string="Journal View">
385 <field name="name" string="Journal View"/>
389 <record id="view_account_journal_view_tree" model="ir.ui.view">
390 <field name="name">account.journal.view.tree</field>
391 <field name="model">account.journal.view</field>
392 <field name="arch" type="xml">
393 <tree string="Journal View">
398 <record id="view_account_journal_view_form" model="ir.ui.view">
399 <field name="name">account.journal.view.form</field>
400 <field name="model">account.journal.view</field>
401 <field name="arch" type="xml">
402 <form string="Journal View" version="7.0">
404 <field name="columns_id"/>
408 <record id="action_account_journal_view" model="ir.actions.act_window">
409 <field name="name">Journal Views</field>
410 <field name="res_model">account.journal.view</field>
411 <field name="view_type">form</field>
412 <field name="view_mode">tree,form</field>
413 <field name="search_view_id" ref="view_account_journal_view_search"/>
414 <field name="help" type="html">
415 <p class="oe_view_nocontent_create">
416 Click to specify lists of columns to display for a type of journal.
418 Journal views determine the way you can record entries in
419 your journal. Select the fields you want to appear in a journal
420 and determine the sequence in which they will appear.
422 On the journal definition form, you can select the view you
423 want to use to display journal items related to this journal.
428 <menuitem action="action_account_journal_view" id="menu_action_account_journal_view" parent="account.menu_journals" sequence="20"/>
434 <record id="view_account_journal_tree" model="ir.ui.view">
435 <field name="name">account.journal.tree</field>
436 <field name="model">account.journal</field>
437 <field name="arch" type="xml">
438 <tree string="Account Journal">
442 <field name="user_id"/>
443 <field name="company_id" groups="base.group_multi_company"/>
447 <record id="view_account_journal_search" model="ir.ui.view">
448 <field name="name">account.journal.search</field>
449 <field name="model">account.journal</field>
450 <field name="arch" type="xml">
451 <search string="Search Account Journal">
452 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Journal"/>
453 <filter domain="['|', ('type', '=', 'sale'), ('type', '=', 'sale_refund')]" string="Sale" icon="terp-camera_test"/>
454 <filter domain="['|', ('type', '=', 'purchase'), ('type', '=', 'purchase_refund')]" string="Purchase" icon="terp-purchase"/>
455 <filter domain="['|', ('type', '=', 'cash'), ('type', '=', 'bank')]" string="Liquidity" icon="terp-dolar"/>
456 <filter domain="['|', ('type', '=', 'general'), ('type', '=', 'situation')]" string="Others" icon="terp-stock"/>
457 <field name="user_id"/>
458 <group expand="0" string="Group By...">
459 <filter string="User" context="{'group_by':'user_id'}" icon="terp-personal"/>
460 <filter string="Type" context="{'group_by':'type'}" icon="terp-stock_symbol-selection"/>
466 <record id="view_account_journal_form" model="ir.ui.view">
467 <field name="name">account.journal.form</field>
468 <field name="model">account.journal</field>
469 <field name="arch" type="xml">
470 <form string="Account Journal" version="7.0">
471 <div class="oe_title">
472 <label for="name" class="oe_edit_only"/>
473 <h1><field name="name"/></h1>
478 <field name="type" on_change="onchange_type(type, currency, context)"/>
481 <field name="default_debit_account_id" attrs="{'required':[('type','in', ('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
482 <field name="default_credit_account_id" attrs="{'required':[('type','in',('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
483 <field name="currency" groups="base.group_multi_currency"/>
484 <field name="company_id" groups="base.group_multi_company"/>
488 <page string="Advanced Settings">
491 <field name="user_id"/>
492 <field name="view_id" widget="selection"/>
493 <field name="sequence_id" required="0"/>
496 <field name="centralisation"/>
497 <field name="entry_posted"/>
498 <field name="allow_date"/>
499 <field name="group_invoice_lines"/>
503 <page string="Entry Controls">
504 <separator colspan="4" string="Accounts Type Allowed (empty for no control)"/>
505 <field colspan="4" name="type_control_ids" nolabel="1"/>
506 <separator colspan="4" string="Accounts Allowed (empty for no control)"/>
507 <field colspan="4" name="account_control_ids" nolabel="1"/>
509 <page string="Cash Registers">
511 <group string="Accounts">
512 <field name="profit_account_id" domain="[('type','!=','view')]"/>
513 <field name="loss_account_id" domain="[('type','!=','view')]"/>
514 <field name="internal_account_id"/>
516 <group string="Miscellaneous">
517 <field name="with_last_closing_balance"/>
518 <field name="cash_control"/>
521 <separator string="Available Coins" colspan="4" attrs="{'invisible' : [('cash_control', '=', False)] }"/>
522 <field name="cashbox_line_ids" nolabel="1" string="Unit Of Currency Definition" colspan="4" attrs="{'invisible' : [('cash_control', '=', False)]}">
523 <tree string="CashBox Lines" editable="bottom">
524 <field name="pieces" />
533 <record id="action_account_journal_form" model="ir.actions.act_window">
534 <field name="name">Journals</field>
535 <field name="res_model">account.journal</field>
536 <field name="view_type">form</field>
537 <field name="view_mode">tree,form</field>
538 <field name="help" type="html">
539 <p class="oe_view_nocontent_create">
540 Click to add a journal.
542 A journal is used to record transactions of all accounting data
543 related to the day-to-day business.
545 A typical company may use one journal per payment method (cash,
546 bank accounts, checks), one purchase journal, one sale journal
547 and one for miscellaneous information.
551 <menuitem action="action_account_journal_form" id="menu_action_account_journal_form" parent="menu_journals"/>
553 <record id="view_account_bank_statement_filter" model="ir.ui.view">
554 <field name="name">account.cash.statement.select</field>
555 <field name="model">account.bank.statement</field>
556 <field name="arch" type="xml">
557 <search string="Search Bank Statements">
558 <field name="name" string="Bank Statement"/>
560 <filter string="Draft" name="state_draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
561 <filter string="Open" name="state_open" domain="[('state','=','open')]" icon="terp-check"/>
562 <filter string="Confirmed" name="state_confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
563 <field name="journal_id" domain="[('type', '=', 'cash')]" />
564 <group expand="0" string="Group By...">
565 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
566 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
567 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
573 <record id="view_bank_statement_tree" model="ir.ui.view">
574 <field name="name">account.bank.statement.tree</field>
575 <field name="model">account.bank.statement</field>
576 <field name="arch" type="xml">
577 <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">
580 <field name="period_id"/>
581 <field name="journal_id"/>
582 <field name="balance_start"/>
583 <field name="balance_end_real"/>
584 <field name="balance_end" invisible="1"/>
585 <field name="state"/>
589 <record id="view_bank_statement_search" model="ir.ui.view">
590 <field name="name">account.bank.statement.search</field>
591 <field name="model">account.bank.statement</field>
592 <field name="arch" type="xml">
593 <search string="Search Bank Statements">
594 <field name="name" string="Bank Statement"/>
596 <filter string="Draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
597 <filter string="Confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
598 <field name="period_id"/>
599 <field name="journal_id" domain="[('type', '=', 'bank')]" />
600 <group expand="0" string="Group By...">
601 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
602 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
603 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
608 <record id="view_bank_statement_form" model="ir.ui.view">
609 <field name="name">account.bank.statement.form</field>
610 <field name="model">account.bank.statement</field>
611 <field name="arch" type="xml">
612 <form string="Bank Statement" version="7.0">
614 <button name="button_confirm_bank" states="draft" string="Confirm" type="object" class="oe_highlight"/>
615 <button name="button_dummy" states="draft" string="Compute" type="object" class="oe_highlight"/>
616 <button name="button_cancel" states="confirm" string="Cancel" type="object"/>
617 <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/>
620 <div class="oe_right oe_button_box" name="import_buttons">
621 <!-- Put here related buttons -->
623 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
625 <field name="name" attrs="{'invisible':[('name','=','/')]}"/>
629 <field name="journal_id" domain="[('type', '=', 'bank')]" on_change="onchange_journal_id(journal_id)" widget="selection"/>
630 <label for="date" string="Date / Period"/>
632 <field name="date" on_change="onchange_date(date, company_id)" class="oe_inline"/>
633 <field name="period_id" class="oe_inline"/>
635 <field name='company_id' widget="selection" groups="base.group_multi_company" />
636 <field name="currency" invisible="1"/>
638 <field name="balance_start" widget="monetary" options='{"currency_field" : "currency"}'/>
639 <field name="balance_end_real" widget="monetary" options='{"currency_field" : "currency"}'/>
644 <page string="Transactions" name="statement_line_ids">
645 <field name="line_ids" context="{'date':date}">
646 <tree editable="bottom" string="Statement lines">
647 <field name="sequence" readonly="1" invisible="1"/>
651 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
652 <field name="type" on_change="onchange_type(partner_id, type)"/>
653 <field domain="[('journal_id','=',parent.journal_id), ('company_id', '=', parent.company_id)]" name="account_id"/>
654 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]"/>
655 <field name="amount"/>
657 <form string="Statement lines" version="7.0">
662 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
663 <field name="type" on_change="onchange_type(partner_id, type)"/>
664 <field domain="[('journal_id', '=', parent.journal_id), ('type', '<>', 'view'), ('company_id', '=', parent.company_id)]" name="account_id"/>
665 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]"/>
666 <field name="amount"/>
667 <field name="sequence" readonly="0"/>
669 <separator string="Notes"/>
674 <page string="Journal Entries" name="move_live_ids">
675 <field name="move_line_ids"/>
684 <record id="action_bank_statement_tree" model="ir.actions.act_window">
685 <field name="name">Bank Statements</field>
686 <field name="res_model">account.bank.statement</field>
687 <field name="view_type">form</field>
688 <field name="view_mode">tree,form,graph</field>
689 <field name="domain">[('journal_id.type', '=', 'bank')]</field>
690 <field name="context">{'journal_type':'bank'}</field>
691 <field name="search_view_id" ref="view_bank_statement_search"/>
692 <field name="help" type="html">
693 <p class="oe_view_nocontent_create">
694 Click to register a bank statement.
696 A bank statement is a summary of all financial transactions
697 occurring over a given period of time on a bank account. You
698 should receive this periodicaly from your bank.
700 OpenERP allows you to reconcile a statement line directly with
701 the related sale or puchase invoices.
705 <record model="ir.actions.act_window.view" id="action_bank_statement_tree_bank">
706 <field name="sequence" eval="1"/>
707 <field name="view_mode">tree</field>
708 <field name="view_id" ref="view_bank_statement_tree"/>
709 <field name="act_window_id" ref="action_bank_statement_tree"/>
711 <record model="ir.actions.act_window.view" id="action_bank_statement_form_bank">
712 <field name="sequence" eval="1"/>
713 <field name="view_mode">form</field>
714 <field name="view_id" ref="view_bank_statement_form"/>
715 <field name="act_window_id" ref="action_bank_statement_tree"/>
718 <menuitem string="Bank Statements" action="action_bank_statement_tree" id="menu_bank_statement_tree" parent="menu_finance_bank_and_cash" sequence="7"/>
720 <record id="action_bank_statement_draft_tree" model="ir.actions.act_window">
721 <field name="name">Draft statements</field>
722 <field name="res_model">account.bank.statement</field>
723 <field name="view_type">form</field>
724 <field name="view_mode">tree,form</field>
725 <field name="domain">[('state','=','draft')]</field>
726 <field name="filter" eval="True"/>
732 <record id="view_account_type_search" model="ir.ui.view">
733 <field name="name">account.account.type.search</field>
734 <field name="model">account.account.type</field>
735 <field name="arch" type="xml">
736 <search string="Account Type">
737 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account Type"/>
742 <record id="view_account_type_tree" model="ir.ui.view">
743 <field name="name">account.account.type.tree</field>
744 <field name="model">account.account.type</field>
745 <field name="arch" type="xml">
746 <tree string="Account Type">
753 <record id="view_account_type_form" model="ir.ui.view">
754 <field name="name">account.account.type.form</field>
755 <field name="model">account.account.type</field>
756 <field name="arch" type="xml">
757 <form string="Account Type" version="7.0">
764 <field name="report_type"/>
765 <field name="close_method"/>
768 <separator string="Description"/>
773 <record id="action_account_type_form" model="ir.actions.act_window">
774 <field name="name">Account Types</field>
775 <field name="res_model">account.account.type</field>
776 <field name="view_type">form</field>
777 <field name="view_mode">tree,form</field>
778 <field name="search_view_id" ref="view_account_type_search"/>
779 <field name="help" type="html">
780 <p class="oe_view_nocontent_create">
781 Click to define a new account type.
783 An account type is used to determine how an account is used in
784 each journal. The deferral method of an account type determines
785 the process for the annual closing. Reports such as the Balance
786 Sheet and the Profit and Loss report use the category
787 (profit/loss or balance sheet).
791 <menuitem action="action_account_type_form" sequence="20" id="menu_action_account_type_form" parent="account_account_menu" groups="base.group_no_one"/>
795 <record id="view_account_move_tree" model="ir.ui.view">
796 <field name="name">account.move.tree</field>
797 <field name="model">account.move</field>
798 <field name="arch" type="xml">
799 <tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries">
803 <field name="period_id"/>
804 <field name="journal_id"/>
805 <field name="partner_id"/>
806 <field name="amount" sum="Total Amount"/>
807 <field name="state"/>
816 <record id="view_move_reconcile_form" model="ir.ui.view">
817 <field name="name">account.move.reconcile.form</field>
818 <field name="model">account.move.reconcile</field>
819 <field name="arch" type="xml">
820 <form string="Journal Entry Reconcile" version="7.0">
823 <field name="create_date"/>
826 <separator string="Reconcile Entries"/>
827 <field name="line_id"/>
828 <separator string="Partial Reconcile Entries"/>
829 <field name="line_partial_ids"/>
837 <record id="view_tax_code_search" model="ir.ui.view">
838 <field name="name">account.tax.code.search</field>
839 <field name="model">account.tax.code</field>
840 <field name="arch" type="xml">
841 <search string="Account Tax Code">
842 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Tax Code"/>
843 <field name="parent_id"/>
844 <field name="company_id" groups="base.group_multi_company"/>
848 <record id="view_tax_code_tree" model="ir.ui.view">
849 <field name="name">account.tax.code.tree</field>
850 <field name="model">account.tax.code</field>
851 <field name="field_parent">child_ids</field>
852 <field name="priority">100</field>
853 <field name="arch" type="xml">
854 <tree string="Account Tax Code" toolbar="1">
857 <field name="sum_period"/>
859 <field name="company_id" groups="base.group_multi_company"/>
863 <record id="view_tax_code_form" model="ir.ui.view">
864 <field name="name">account.tax.code.form</field>
865 <field name="model">account.tax.code</field>
866 <field name="arch" type="xml">
867 <form string="Account Tax Code" version="7.0">
869 <group col="4" colspan="2">
872 <field name="parent_id"/>
873 <field name="company_id" groups="base.group_multi_company"/>
875 <group string="Reporting Configuration">
876 <field name="notprintable"/>
879 <group string="Statistics">
880 <field name="sum_period"/>
884 <separator string="Description"/>
889 <record id="action_tax_code_list" model="ir.actions.act_window">
890 <field name="name">Tax codes</field>
891 <field name="res_model">account.tax.code</field>
892 <field name="view_type">form</field>
893 <field name="view_mode">tree,form</field>
894 <field name="view_id" ref="view_tax_code_tree"/>
895 <field name="search_view_id" ref="view_tax_code_search"/>
896 <field name="help" type="html">
897 <p class="oe_view_nocontent_create">
898 Click to define a new tax code.
900 Depending on the country, a tax code is usually a cell to fill
901 in your legal tax statement. OpenERP allows you to define the
902 tax structure and each tax computation will be registered in
903 one or several tax code.
907 <menuitem id="next_id_27" name="Taxes" parent="account.menu_finance_configuration" sequence="20"/>
908 <menuitem action="action_tax_code_list" id="menu_action_tax_code_list" parent="next_id_27" sequence="12" groups="base.group_no_one"/>
914 <record id="view_tax_tree" model="ir.ui.view">
915 <field name="name">account.tax.tree</field>
916 <field name="model">account.tax</field>
917 <field name="field_parent">child_ids</field>
918 <field name="arch" type="xml">
919 <tree string="Account Tax">
921 <field name="price_include"/>
922 <field name="description"/>
923 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
927 <record id="view_account_tax_search" model="ir.ui.view">
928 <field name="name">account.tax.search</field>
929 <field name="model">account.tax</field>
930 <field name="arch" type="xml">
931 <search string="Search Taxes">
932 <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax"/>
933 <field name="company_id" groups="base.group_multi_company"/>
937 <record id="view_tax_form" model="ir.ui.view">
938 <field name="name">account.tax.form</field>
939 <field name="model">account.tax</field>
940 <field name="arch" type="xml">
941 <form string="Account Tax" version="7.0">
945 <field name="description"/>
948 <field name="type_tax_use"/>
949 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
950 <field name="active"/>
954 <page string="Tax Definition">
956 <group string="Tax Computation">
960 <field name="amount" class="oe_inline"
961 attrs="{'invisible':[('type','in',('none', 'code', 'balance'))]}"/>
962 <label string="%%" attrs="{'invisible':[('type','<>','percent')]}"/>
964 <field name="python_compute" attrs="{'invisible':[('type','!=','code')],'required':[('type','=','code')]}"/>
965 <field name="python_compute_inv" attrs="{'invisible':[('type','!=','code')],'required':[('type','=','code')]}"/>
966 <field name="price_include"/>
968 <group string="Misc">
969 <field name="sequence"/>
970 <field name="include_base_amount"/>
971 <field name="child_depend"/>
973 <group string="Invoices">
974 <field name="account_collected_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
975 <field name="account_analytic_collected_id" domain="[('type','<>','view'), ('company_id', '=', company_id), ('parent_id', '<>', False)]" groups="analytic.group_analytic_accounting"/>
977 <field name="base_code_id"/>
978 <field name="base_sign"/>
979 <field name="tax_code_id"/>
980 <field name="tax_sign"/>
983 <group string="Refunds">
984 <field name="account_paid_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
985 <field name="account_analytic_paid_id" domain="[('type','<>','view'), ('company_id', '=', company_id), ('parent_id', '<>', False)]" groups="analytic.group_analytic_accounting"/>
987 <field name="ref_base_code_id"/>
988 <field name="ref_base_sign"/>
989 <field name="ref_tax_code_id"/>
990 <field name="ref_tax_sign"/>
992 <group string="Children/Sub Taxes" colspan="2">
993 <field name="child_depend" class="oe_inline"/>
994 <field name="child_ids" nolabel="1" colspan="2">
995 <tree string="Account Tax">
996 <field name="sequence"/>
998 <field name="price_include"/>
999 <field name="description"/>
1005 <page string="Special Computation">
1007 <separator colspan="4" string="Applicability Options"/>
1008 <field name="applicable_type"/>
1009 <field name="domain"/>
1010 <separator colspan="4" string="Applicable Code (if type=code)"/>
1011 <field colspan="4" name="python_applicable" nolabel="1" attrs="{'readonly':[('applicable_type','=','true')], 'required':[('applicable_type','=','code')]}"/>
1018 <record id="action_tax_form" model="ir.actions.act_window">
1019 <field name="name">Taxes</field>
1020 <field name="res_model">account.tax</field>
1021 <field name="view_type">form</field>
1022 <field name="view_id" ref="view_tax_tree"/>
1023 <field name="domain">[('parent_id','=',False)]</field>
1025 <menuitem action="action_tax_form" id="menu_action_tax_form" parent="next_id_27"/>
1027 <record id="action_tax_code_tree" model="ir.actions.act_window">
1028 <field name="name">Chart of Taxes</field>
1029 <field name="res_model">account.tax.code</field>
1030 <field name="domain">[('parent_id','=',False)]</field>
1031 <field name="view_type">tree</field>
1032 <field name="view_id" ref="view_tax_code_tree"/>
1039 <record id="view_move_line_tree_reconcile" model="ir.ui.view">
1040 <field name="model">account.move.line</field>
1041 <field eval="24" name="priority"/>
1042 <field name="arch" type="xml">
1043 <tree_account_reconciliation colors="red:state == 'draft';black:state == 'valid'" string="Journal Items to Reconcile" create="false" version="7.0">
1044 <field name="date"/>
1045 <field name="move_id"/>
1047 <field name="name"/>
1048 <field name="partner_id"/>
1049 <field name="account_id"/>
1050 <field name="reconcile_partial_id"/>
1051 <field name="state" invisible="1"/>
1052 <field name="debit" sum="Total debit"/>
1053 <field name="credit" sum="Total credit"/>
1054 </tree_account_reconciliation>
1058 <record id="view_move_line_tree" model="ir.ui.view">
1059 <field name="name">account.move.line.tree</field>
1060 <field name="model">account.move.line</field>
1061 <field eval="4" name="priority"/>
1062 <field name="arch" type="xml">
1063 <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" editable="top" on_write="on_create_write">
1064 <field name="date"/>
1065 <field name="period_id"/>
1066 <field name="move_id"/>
1068 <field name="invoice"/>
1069 <field name="name"/>
1070 <field name="partner_id" on_change="onchange_partner_id(move_id, partner_id, account_id, debit, credit, date, journal_id)"/>
1071 <field name="account_id" domain="[('journal_id','=',journal_id), ('company_id', '=', company_id)]"/>
1072 <field name="journal_id"/>
1073 <field name="debit" sum="Total debit"/>
1074 <field name="credit" sum="Total credit"/>
1075 <field name="account_tax_id"/>
1076 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]"/>
1077 <field name="amount_currency" attrs="{'readonly':[('state','=','valid')]}"/>
1078 <field name="currency_id" attrs="{'readonly':[('state','=','valid')]}" groups="base.group_multi_currency"/>
1079 <field name="reconcile_partial_id"/>
1080 <field name="reconcile_id"/>
1081 <field name="state" invisible="1"/>
1086 <record id="view_move_line_form" model="ir.ui.view">
1087 <field name="name">account.move.line.form</field>
1088 <field name="model">account.move.line</field>
1089 <field eval="2" name="priority"/>
1090 <field name="arch" type="xml">
1091 <form string="Journal Item" version="7.0">
1095 <field name="name"/>
1097 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1100 <field name="journal_id"/>
1101 <field name="period_id"/>
1102 <field name="company_id" required="1" groups="base.group_multi_company"/>
1105 <notebook colspan="4">
1106 <page string="Information">
1108 <group string="Amount">
1109 <field name="account_id" domain="[('company_id', '=', company_id), ('type','<>','view'), ('type','<>','consolidation')]"/>
1110 <field name="debit"/>
1111 <field name="credit"/>
1112 <field name="quantity"/>
1114 <group string="Accounting Documents">
1115 <field name="invoice" readonly="True"/>
1116 <field name="move_id" required="False"/>
1117 <field name="statement_id" readonly="True"/>
1119 <group string="Dates">
1120 <field name="date"/>
1121 <field name="date_maturity"/>
1122 <field name="date_created" readonly="True"/>
1124 <group string="Taxes">
1125 <field name="tax_code_id"/>
1126 <field name="tax_amount"/>
1127 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1129 <group attrs="{'readonly':[('state','=','valid')]}" string="Currency" groups="base.group_multi_currency">
1130 <field name="currency_id" invisible="1"/>
1131 <field name="amount_currency" widget="monetary" options="{'currency_field': 'currency_id'}"/>
1133 <group string="Reconciliation">
1134 <field name="reconcile_id"/>
1135 <field name="reconcile_partial_id"/>
1137 <group string="States">
1138 <field name="state"/>
1139 <field name="blocked"/>
1141 <group groups="analytic.group_analytic_accounting" string="Analytic">
1142 <field name="analytic_account_id" domain="[('parent_id','!=',False)]"/>
1145 <field name="narration" colspan="4" nolabel="1" placeholder="Add an internal note..."/>
1147 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1148 <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" version="7.0">
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" domain="[('parent_id','!=',False)]" 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"/>
1204 <record id="account_move_line_graph" model="ir.ui.view">
1205 <field name="name">account.move.line.graph</field>
1206 <field name="model">account.move.line</field>
1207 <field name="arch" type="xml">
1208 <graph string="Account Statistics" type="bar">
1209 <field name="account_id"/>
1210 <field name="debit" operator="+"/>
1211 <field name="credit" operator="+"/>
1216 <record id="view_account_move_line_filter" model="ir.ui.view">
1217 <field name="name">Journal Items</field>
1218 <field name="model">account.move.line</field>
1219 <field name="arch" type="xml">
1220 <search string="Search Journal Items">
1221 <field name="date"/>
1222 <filter icon="terp-document-new" string="Unbalanced" domain="[('state','=','draft')]" help="Unbalanced Journal Items"/>
1224 <filter icon="terp-document-new" string="Unposted" domain="[('move_id.state','=','draft')]" help="Unposted Journal Items"/>
1225 <filter name="posted" icon="terp-camera_test" string="Posted" domain="[('move_id.state','=','posted')]" help="Posted Journal Items"/>
1227 <filter icon="terp-dolar_ok!" string="Unreconciled" domain="[('reconcile_id','=',False), ('account_id.reconcile','=',True)]" help="Unreconciled Journal Items" name="unreconciled"/>
1229 <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)]"/>
1230 <field name="move_id" string="Number (Move)"/>
1231 <field name="account_id"/>
1232 <field name="partner_id"/>
1233 <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 -->
1234 <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 -->
1235 <group expand="0" string="Group By...">
1236 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1237 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1238 <filter string="Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
1239 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1245 <record id="action_account_moves_all_a" model="ir.actions.act_window">
1246 <field name="name">Journal Items</field>
1247 <field name="res_model">account.move.line</field>
1248 <field name="view_type">form</field>
1249 <field name="view_mode">tree,form</field>
1250 <field name="context">{}</field>
1251 <field name="search_view_id" ref="view_account_move_line_filter"/>
1252 <field name="help" type="html">
1253 <p class="oe_view_nocontent_create">
1254 Click to register a new journal item.
1256 This view can be used by accountants in order to quickly record
1257 entries in OpenERP. If you want to record a supplier invoice,
1258 start by recording the line of the expense account. OpenERP
1259 will propose to you automatically the Tax related to this
1260 account and the counterpart "Account Payable".
1266 action="action_account_moves_all_a"
1267 icon="STOCK_JUSTIFY_FILL"
1268 id="menu_action_account_moves_all"
1269 parent="account.menu_finance_entries"
1271 groups="group_account_user"
1274 <record id="action_view_move_line" model="ir.actions.act_window">
1275 <field name="name">Lines to reconcile</field>
1276 <field name="res_model">account.move.line</field>
1277 <field name="view_type">form</field>
1278 <field name="view_mode">tree,form</field>
1279 <field name="domain">[('account_id.reconcile', '=', True),('reconcile_id','=',False)]</field>
1280 <field eval="False" name="view_id"/>
1281 <field eval="True" name="filter"/>
1282 <field name="search_view_id" ref="view_account_move_line_filter"/>
1285 <record id="action_move_line_select" model="ir.actions.act_window">
1286 <field name="name">Journal Items</field>
1287 <field name="res_model">account.move.line</field>
1288 <field name="view_type">form</field>
1289 <field name="view_mode">tree,form</field>
1290 <field name="view_id" ref="view_move_line_tree"/>
1291 <field name="search_view_id" ref="view_account_move_line_filter"/>
1292 <field name="context">{'search_default_account_id': [active_id]}</field>
1295 <record id="ir_account_move_line_select" model="ir.values">
1296 <field name="key2">tree_but_open</field>
1297 <field name="model">account.account</field>
1298 <field name="name">Open Journal Items</field>
1299 <field eval="'ir.actions.act_window,%d'%action_move_line_select" name="value"/>
1302 Account.Entry Edition
1305 <record id="view_move_tree" model="ir.ui.view">
1306 <field name="name">account.move.tree</field>
1307 <field name="model">account.move</field>
1308 <field name="arch" type="xml">
1309 <tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries">
1310 <field name="name"/>
1312 <field name="date"/>
1313 <field name="period_id"/>
1314 <field name="journal_id"/>
1315 <field name="partner_id"/>
1316 <field name="amount" sum="Total Amount"/>
1317 <field name="to_check"/>
1318 <field name="state"/>
1322 <record id="view_move_form" model="ir.ui.view">
1323 <field name="name">account.move.form</field>
1324 <field name="model">account.move</field>
1325 <field name="arch" type="xml">
1326 <form string="Account Entry" version="7.0">
1328 <button name="button_validate" states="draft" string="Post" type="object" class="oe_highlight" groups="account.group_account_invoice"/>
1329 <button name="button_cancel" states="posted" string="Cancel" type="object" groups="account.group_account_invoice"/>
1330 <field name="state" widget="statusbar"/>
1332 <sheet string="Journal Entries" >
1333 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
1335 <field name="name" readonly="True" attrs="{'invisible':[('name','=','/')]}"/>
1339 <field name="journal_id"/>
1340 <field name="period_id"/>
1341 <field name="company_id" required="1" groups="base.group_multi_company"/>
1342 <field name="partner_id" invisible="1"/>
1346 <field name="date"/>
1347 <field name="to_check"/>
1348 <field name="amount" invisible="1"/>
1352 <page string="Journal Items">
1353 <field name="balance" invisible="1"/>
1354 <field name="line_id" widget="one2many_list"
1355 on_change="onchange_line_id(line_id)"
1356 context="{'balance': balance , 'journal': journal_id }">
1357 <form string="Journal Item" version="7.0">
1358 <group col="6" colspan="4">
1359 <field name="name"/>
1361 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1363 <field name="journal_id"/>
1364 <field name="period_id"/>
1365 <field name="company_id" required="1" groups="base.group_multi_company"/>
1367 <notebook colspan="4">
1368 <page string="Information">
1370 <group string="Amount">
1371 <field name="account_id" domain="[('company_id', '=', parent.company_id), ('type','<>','view'),('type','<>','consolidation')]"/>
1372 <field name="debit"/>
1373 <field name="credit"/>
1374 <field name="quantity"/>
1377 <group string="Accounting Documents">
1378 <field name="invoice"/>
1379 <field name="move_id" required="False"/>
1380 <field name="statement_id"/>
1383 <group string="Dates">
1384 <field name="date"/>
1385 <field name="date_maturity"/>
1386 <field name="date_created"/>
1389 <group string="Taxes">
1390 <field name="tax_code_id"/>
1391 <field name="tax_amount"/>
1392 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1395 <group string="Currency" groups="base.group_multi_currency">
1396 <field name="currency_id"/>
1397 <field name="amount_currency"/>
1400 <group string="Reconciliation">
1401 <field name="reconcile_id"/>
1402 <field name="reconcile_partial_id"/>
1405 <group string="States">
1406 <field name="state"/>
1407 <field name="blocked"/>
1410 <group groups="analytic.group_analytic_accounting" string="Analytic">
1411 <field name="analytic_account_id" domain="[('parent_id','!=',False)]"/>
1414 <separator string="Internal Note"/>
1415 <field name="narration"/>
1417 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1418 <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)}"/>
1422 <tree colors="blue:state == 'draft';black:state == 'posted'" editable="top" string="Journal Items">
1424 <field name="invoice"/>
1425 <field name="name"/>
1426 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,parent.date,parent.journal_id)"/>
1427 <field name="account_id" domain="[('journal_id','=',parent.journal_id),('company_id', '=', parent.company_id)]"/>
1428 <field name="date_maturity"/>
1429 <field name="debit" sum="Total Debit"/>
1430 <field name="credit" sum="Total Credit"/>
1431 <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1432 <field name="amount_currency"/>
1433 <field name="currency_id" groups="base.group_multi_currency"/>
1434 <field name="tax_code_id"/>
1435 <field name="tax_amount"/>
1436 <field name="state"/>
1437 <field name="reconcile_id"/>
1438 <field name="reconcile_partial_id"/>
1441 <field name="narration" colspan="4" placeholder="Add an internal note..." nolabel="1" height="50"/>
1449 <record id="view_account_move_filter" model="ir.ui.view">
1450 <field name="name">account.move.select</field>
1451 <field name="model">account.move</field>
1452 <field name="arch" type="xml">
1453 <search string="Search Move">
1454 <field name="name" filter_domain="['|', ('name','ilike',self), ('ref','ilike',self)]" string="Move"/>
1455 <field name="date"/>
1456 <filter icon="terp-document-new" string="Unposted" domain="[('state','=','draft')]" help="Unposted Journal Entries"/>
1457 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Journal Entries"/>
1459 <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('to_check','=',True)]" help="Journal Entries to Review"/>
1460 <field name="partner_id"/>
1461 <field name="journal_id"/>
1462 <field name="period_id"/>
1463 <group expand="0" string="Group By...">
1464 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1465 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1466 <filter string="States" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1467 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1468 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1474 <record id="action_move_journal_line" model="ir.actions.act_window">
1475 <field name="name">Journal Entries</field>
1476 <field name="res_model">account.move</field>
1477 <field name="view_type">form</field>
1478 <field name="view_mode">tree,form</field>
1479 <field name="view_id" ref="view_move_tree"/>
1480 <field name="search_view_id" ref="view_account_move_filter"/>
1481 <field name="help" type="html">
1482 <p class="oe_view_nocontent_create">
1483 Click to create a journal entry.
1485 A journal entry consists of several journal items, each of
1486 which is either a debit or a credit transaction.
1488 OpenERP automatically creates one journal entry per accounting
1489 document: invoice, refund, supplier payment, bank statements,
1490 etc. So, you should record journal entries manually only/mainly
1491 for miscellaneous operations.
1497 icon="STOCK_JUSTIFY_FILL"
1498 action="action_move_journal_line"
1499 id="menu_action_move_journal_line_form"
1500 parent="account.menu_finance_entries"
1501 groups="group_account_user"
1504 <record id="action_move_line_form" model="ir.actions.act_window">
1505 <field name="name">Entries</field>
1506 <field name="type">ir.actions.act_window</field>
1507 <field name="res_model">account.move</field>
1508 <field name="view_type">form</field>
1509 <field name="view_id" ref="view_move_tree"/>
1510 <field name="search_view_id" ref="view_account_move_filter"/>
1514 id="act_account_move_to_account_move_line_open"
1515 name="Journal Items"
1516 context="{'search_default_move_id':[active_id], 'default_move_id': active_id}"
1517 res_model="account.move.line"
1518 src_model="account.move"/>
1520 <record id="action_move_line_search" model="ir.actions.act_window">
1521 <field name="name">Journal Items</field>
1522 <field name="res_model">account.move.line</field>
1523 <field name="view_type">form</field>
1524 <field name="view_mode">tree,form</field>
1525 <field name="view_id" ref="view_move_line_tree"/>
1526 <field name="search_view_id" ref="view_account_move_line_filter"/>
1528 <record id="action_move_line_search_view1" model="ir.actions.act_window.view">
1529 <field eval="10" name="sequence"/>
1530 <field name="view_mode">tree</field>
1531 <field name="view_id" ref="view_move_line_tree"/>
1532 <field name="act_window_id" ref="action_move_line_search"/>
1534 <record id="action_move_line_search_view2" model="ir.actions.act_window.view">
1535 <field eval="11" name="sequence"/>
1536 <field name="view_mode">form</field>
1537 <field name="act_window_id" ref="action_move_line_search"/>
1540 <record id="action_account_manual_reconcile" model="ir.actions.act_window">
1541 <field name="context">{'search_default_unreconciled': 1,'view_mode':True}</field>
1542 <field name="name">Journal Items to Reconcile</field>
1543 <field name="res_model">account.move.line</field>
1544 <field name="view_id" ref="view_move_line_tree_reconcile"/>
1545 <field name="view_mode">tree_account_reconciliation</field>
1546 <field name="help" type="html">
1548 No journal items found.
1553 name="Journal Items to Reconcile"
1554 action="action_account_manual_reconcile"
1555 id="menu_manual_reconcile_bank"
1557 parent="account.menu_finance_bank_and_cash"/>
1560 name="Manual Reconciliation"
1561 action="action_account_manual_reconcile"
1562 id="menu_manual_reconcile"
1563 parent="account.periodical_processing_reconciliation"/>
1567 id="act_account_acount_move_line_open"
1569 context="{'search_default_account_id':[active_id], 'search_default_unreconciled':0, 'default_account_id': active_id}"
1570 res_model="account.move.line"
1571 src_model="account.account"/>
1574 id="act_account_acount_move_line_open_unreconciled"
1575 name="Unreconciled Entries"
1576 res_model="account.move.line"
1577 context="{'search_default_account_id':[active_id], 'search_default_unreconciled':1, 'default_account_id': active_id}"
1578 src_model="account.account"/>
1581 domain="[('reconcile_id', '=', active_id)]"
1582 id="act_account_acount_move_line_reconcile_open"
1583 name="Reconciled entries"
1584 res_model="account.move.line"
1585 src_model="account.move.reconcile"/>
1590 Print Journal (and change state)
1591 Close Journal (and verify that there is no draft Entry Lines)
1594 <record id="view_journal_period_tree" model="ir.ui.view">
1595 <field name="name">account.journal.period.tree</field>
1596 <field name="model">account.journal.period</field>
1597 <field name="arch" type="xml">
1598 <tree colors="blue:state == 'draft';gray:state == 'done';black:state == 'printed'" string="Journals">
1599 <field icon="icon" name="fiscalyear_id"/>
1600 <field name="period_id"/>
1601 <field name="journal_id"/>
1602 <field name="state"/>
1603 <field name="company_id" groups="base.group_multi_company"/>
1607 <record id="action_account_journal_period_tree" model="ir.actions.act_window">
1608 <field name="name">Journals</field>
1609 <field name="res_model">account.journal.period</field>
1610 <field name="view_type">tree</field>
1617 <record id="view_model_line_tree" model="ir.ui.view">
1618 <field name="name">account.model.line.tree</field>
1619 <field name="model">account.model.line</field>
1620 <field name="arch" type="xml">
1621 <tree string="Journal Entry Model Line" editable="bottom">
1622 <field name="sequence"/>
1623 <field name="name"/>
1624 <field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation'), ('company_id', '=', parent.company_id)]"/>
1625 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1626 <field name="partner_id"/>
1627 <field name="debit"/>
1628 <field name="credit"/>
1629 <field name="date_maturity"/>
1635 <record id="view_model_line_form" model="ir.ui.view">
1636 <field name="name">account.model.line.form</field>
1637 <field name="model">account.model.line</field>
1638 <field name="arch" type="xml">
1639 <form string="Journal Entry Model Line" version="7.0">
1641 <field colspan="4" name="name"/>
1642 <field name="sequence"/>
1643 <field name="account_id" domain="[('type','<>','view'), ('type','<>','consolidation'), ('company_id', '=', parent.company_id)]"/>
1644 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1645 <field name="partner_id"/>
1646 <field name="debit"/>
1647 <field name="credit"/>
1648 <field name="quantity"/>
1649 <field name="date_maturity"/>
1655 <record id="view_model_form" model="ir.ui.view">
1656 <field name="name">account.model.form</field>
1657 <field name="model">account.model</field>
1658 <field name="arch" type="xml">
1659 <form string="Journal Entry Model" version="7.0">
1661 <field name="name"/>
1662 <field name="journal_id" on_change="onchange_journal_id(journal_id)"/>
1663 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
1666 <field name="lines_id" widget="one2many_list"/>
1667 <separator string="Legend"/>
1668 <field name="legend"/>
1669 <button name="%(action_account_use_model_create_entry)d" string="Create entries" type="action" icon="gtk-execute"/>
1674 <record id="view_model_tree" model="ir.ui.view">
1675 <field name="name">account.model.tree</field>
1676 <field name="model">account.model</field>
1677 <field name="arch" type="xml">
1678 <tree string="Journal Entry Model">
1679 <field name="name"/>
1680 <field name="journal_id"/>
1681 <field name="company_id" groups="base.group_multi_company"/>
1686 <record id="view_model_search" model="ir.ui.view">
1687 <field name="name">account.model.search</field>
1688 <field name="model">account.model</field>
1689 <field name="arch" type="xml">
1690 <search string="Journal Entry Model">
1691 <field name="name" string="Journal Entry Model"/>
1692 <filter string="Sale" icon="terp-camera_test" domain="[('journal_id.type', '=', 'sale')]"/>
1693 <filter string="Purchase" icon="terp-purchase" domain="[('journal_id.type', '=', 'purchase')]"/>
1694 <field name="journal_id"/>
1695 <field name="company_id" groups="base.group_multi_company"/>
1696 <group expand="0" string="Group By...">
1697 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1703 <record id="action_model_form" model="ir.actions.act_window">
1704 <field name="name">Recurring Models</field>
1705 <field name="res_model">account.model</field>
1706 <field name="view_type">form</field>
1707 <field name="view_mode">tree,form</field>
1708 <field name="search_view_id" ref="view_model_search"/>
1711 action="action_model_form" id="menu_action_model_form" sequence="5"
1712 parent="account.menu_configuration_misc"/>
1718 <record id="view_payment_term_line_tree" model="ir.ui.view">
1719 <field name="name">account.payment.term.line.tree</field>
1720 <field name="model">account.payment.term.line</field>
1721 <field name="arch" type="xml">
1722 <tree string="Payment Term">
1723 <field name="sequence"/>
1724 <field name="name"/>
1725 <field name="value"/>
1726 <field name="value_amount"/>
1727 <field name="days"/>
1728 <field name="days2"/>
1734 <record id="view_payment_term_line_form" model="ir.ui.view">
1735 <field name="name">account.payment.term.line.form</field>
1736 <field name="model">account.payment.term.line</field>
1737 <field name="arch" type="xml">
1738 <form string="Payment Term" version="7.0">
1740 <field name="name"/>
1741 <field name="sequence"/>
1744 <group string="Amount Computation">
1745 <field name="value"/>
1746 <field name="value_amount" attrs="{'readonly':[('value','=','balance')]}"/>
1748 <group string="Due Date Computation">
1749 <field name="days"/>
1750 <field name="days2"/>
1754 <separator string="Example"/>
1755 <label string="At 14 net days 2 percent, remaining amount at 30 days end of month."/>
1757 <label string="Line 1:" colspan="2"/>
1758 <label string=" Valuation: Percent"/>
1759 <label string=" Number of Days: 14"/>
1760 <label string=" Value amount: 0.02"/>
1761 <label string=" Day of the Month: 0"/>
1764 <label string="Line 2:" colspan="2"/>
1765 <label string=" Valuation: Balance"/>
1766 <label string=" Number of Days: 30"/>
1767 <label string=" Value amount: n.a"/>
1768 <label string=" Day of the Month= -1"/>
1774 <record id="view_payment_term_search" model="ir.ui.view">
1775 <field name="name">account.payment.term.search</field>
1776 <field name="model">account.payment.term</field>
1777 <field name="arch" type="xml">
1778 <search string="Payment Term">
1779 <field name="name" string="Payment Term"/>
1780 <field name="active"/>
1785 <record id="view_payment_term_form" model="ir.ui.view">
1786 <field name="name">account.payment.term.form</field>
1787 <field name="model">account.payment.term</field>
1788 <field name="arch" type="xml">
1789 <form string="Payment Term" version="7.0">
1791 <field name="name"/>
1792 <field name="active"/>
1794 <field name="note" placeholder="Note for the invoice..."/>
1795 <separator string="Computation"/>
1796 <field name="line_ids"/>
1801 <record id="action_payment_term_form" model="ir.actions.act_window">
1802 <field name="name">Payment Terms</field>
1803 <field name="res_model">account.payment.term</field>
1804 <field name="view_type">form</field>
1805 <field name="view_mode">tree,form</field>
1806 <field name="search_view_id" ref="view_payment_term_search"/>
1808 <menuitem action="action_payment_term_form"
1809 id="menu_action_payment_term_form" parent="menu_configuration_misc"/>
1812 # Account Subscriptions
1815 <record id="view_subscription_line_form" model="ir.ui.view">
1816 <field name="name">account.subscription.line.form</field>
1817 <field name="model">account.subscription.line</field>
1818 <field name="arch" type="xml">
1819 <form string="Subscription lines" version="7.0">
1821 <field name="date"/>
1822 <field name="move_id"/>
1828 <record id="view_subscription_line_tree" model="ir.ui.view">
1829 <field name="name">account.subscription.line.tree</field>
1830 <field name="model">account.subscription.line</field>
1831 <field name="arch" type="xml">
1832 <tree string="Subscription lines">
1833 <field name="date"/>
1834 <field name="move_id"/>
1839 <record id="view_subscription_tree" model="ir.ui.view">
1840 <field name="name">account.subscription.tree</field>
1841 <field name="model">account.subscription</field>
1842 <field name="arch" type="xml">
1843 <tree colors="blue:state == 'draft';gray:state == 'done';black:state == 'running'" string="Entry Subscription">
1844 <field name="name"/>
1845 <field name="model_id"/>
1847 <field name="date_start"/>
1848 <field name="state"/>
1853 <record id="view_subscription_search" model="ir.ui.view">
1854 <field name="name">account.subscription.search</field>
1855 <field name="model">account.subscription</field>
1856 <field name="arch" type="xml">
1857 <search string="Entry Subscription">
1858 <field name="name" string="Account Subscription"/>
1859 <field name="date_start"/>
1860 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Subscription"/>
1861 <filter icon="terp-camera_test" string="Running" domain="[('state','=','running')]" help="Running Subscription"/>
1862 <field name="model_id"/>
1863 <group expand="0" string="Group By...">
1864 <filter string="Model" icon="terp-folder-orange" domain="[]" context="{'group_by':'model_id'}"/>
1865 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1871 <record id="view_subscription_form" model="ir.ui.view">
1872 <field name="name">account.subscription.form</field>
1873 <field name="model">account.subscription</field>
1874 <field name="arch" type="xml">
1875 <form string="Recurring" version="7.0">
1877 <button name="state_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert" />
1878 <button name="compute" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific" class="oe_highlight"/>
1879 <button name="remove_line" states="running" string="Remove Lines" type="object" icon="gtk-remove" class="oe_highlight"/>
1880 <field name="state" widget="statusbar" statusbar_visible="draft,running,done"/>
1885 <field name="name"/>
1886 <field name="model_id"/>
1890 <field name="date_start"/>
1891 <field name="period_type"/>
1892 <field name="period_nbr"/>
1893 <field name="period_total"/>
1896 <separator string="Subscription Lines"/>
1897 <field name="lines_id" widget="one2many_list"/>
1902 <record id="action_subscription_form" model="ir.actions.act_window">
1903 <field name="name">Recurring Lines</field>
1904 <field name="res_model">account.subscription</field>
1905 <field name="view_type">form</field>
1906 <field name="view_mode">tree,form</field>
1907 <field name="search_view_id" ref="view_subscription_search"/>
1908 <field name="help" type="html">
1909 <p class="oe_view_nocontent_create">
1910 Click to define a new recurring entry.
1912 A recurring entry occurs on a recurrent basis from a specific
1913 date, i.e. corresponding to the signature of a contract or an
1914 agreement with a customer or a supplier. You can create such
1915 entries to automate the postings in the system.
1920 name="Define Recurring Entries" action="action_subscription_form"
1921 id="menu_action_subscription_form" sequence="1"
1922 parent="account.menu_finance_recurrent_entries"/>
1924 <record id="action_subscription_form_running" model="ir.actions.act_window">
1925 <field name="name">Running Subscriptions</field>
1926 <field name="res_model">account.subscription</field>
1927 <field name="view_type">form</field>
1928 <field name="view_mode">tree,form</field>
1929 <field name="domain">[('state','=','running')]</field>
1930 <field name="filter" eval="True"/>
1933 <record id="action_subscription_form_new" model="ir.actions.act_window">
1934 <field name="name">New Subscription</field>
1935 <field name="res_model">account.subscription</field>
1936 <field name="view_type">form</field>
1937 <field name="view_mode">form,tree</field>
1938 <field name="view_id" ref="view_subscription_form"/>
1941 <record id="view_subscription_line_form_complete" model="ir.ui.view">
1942 <field name="name">account.subscription.line.form</field>
1943 <field name="model">account.subscription.line</field>
1944 <field eval="20" name="priority"/>
1945 <field name="arch" type="xml">
1946 <form string="Subscription lines" version="7.0">
1948 <field name="subscription_id"/>
1949 <field name="date"/>
1950 <field name="move_id"/>
1956 <record id="action_move_line_tree1" model="ir.actions.act_window">
1957 <field name="name">Journal Items</field>
1958 <field name="res_model">account.move.line</field>
1959 <field name="view_type">form</field>
1960 <field name="view_mode">tree,form</field>
1961 <field name="domain">[('account_id','child_of', [active_id]),('state','<>','draft')]</field>
1962 <field name="context">{'account_id':active_id}</field>
1965 <record id="view_move_line_tax_tree" model="ir.ui.view">
1966 <field name="name">account.move.line.tax.tree</field>
1967 <field name="model">account.move.line</field>
1968 <field eval="4" name="priority"/>
1969 <field name="arch" type="xml">
1970 <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items">
1971 <field name="date"/>
1972 <field name="move_id"/>
1973 <field name="statement_id" string="St."/>
1974 <field name="name"/>
1975 <field name="partner_id"/>
1976 <field name="account_id"/>
1977 <field name="tax_code_id"/>
1978 <field name="tax_amount"/>
1979 <field name="debit" sum="Total debit"/>
1980 <field name="credit" sum="Total credit"/>
1981 <field name="account_tax_id"/>
1982 <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1983 <field name="state" invisible="1"/>
1988 <record id="action_tax_code_line_open" model="ir.actions.act_window">
1989 <field name="name">Journal Items</field>
1990 <field name="res_model">account.move.line</field>
1991 <field name="view_type">form</field>
1992 <field name="view_mode">tree,form</field>
1993 <field name="view_id" ref="view_move_line_tax_tree"/>
1994 <field name="domain">[('tax_code_id','child_of',active_id),('state','<>','draft')]</field>
1996 <record id="ir_open_tax_move_line" model="ir.values">
1997 <field name="key2">tree_but_open</field>
1998 <field name="model">account.tax.code</field>
1999 <field name="name">Tax Details</field>
2000 <field eval="'ir.actions.act_window,%d'%action_tax_code_line_open" name="value"/>
2009 id="act_account_journal_2_account_bank_statement"
2010 name="Bank statements"
2011 context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
2012 res_model="account.bank.statement"
2013 src_model="account.journal"/>
2016 id="act_account_journal_2_account_move_line"
2017 name="Journal Items"
2018 context="{'search_default_journal_id':active_id, 'default_journal_id': active_id}"
2019 res_model="account.move.line"
2020 src_model="account.journal"/>
2023 context="{'search_default_unreconciled':True, 'search_default_partner_id':[active_id], 'default_partner_id': active_id}"
2024 domain="[('account_id.reconcile', '=', True),('account_id.type', 'in', ['receivable', 'payable'])]"
2025 id="act_account_partner_account_move_all"
2026 name="Receivables & Payables"
2027 res_model="account.move.line"
2028 src_model="res.partner"/>
2030 <act_window context="{'search_default_partner_id':[active_id], 'default_partner_id': active_id}" id="act_account_partner_account_move" name="Journal Items" res_model="account.move.line" src_model="res.partner" groups="account.group_account_user"/>
2032 <record id="view_account_addtmpl_wizard_form" model="ir.ui.view">
2033 <field name="name">Create Account</field>
2034 <field name="model">account.addtmpl.wizard</field>
2035 <field name="arch" type="xml">
2036 <form string="Create Account" version="7.0">
2038 <button icon="gtk-ok" name="action_create" string="Add" type="object" class="oe_highlight" />
2040 <separator col="4" colspan="4" string="Create an Account Based on this Template"/>
2041 <field name="cparent_id"/>
2046 <act_window domain="[]" id="action_account_addtmpl_wizard_form"
2047 name="Create Account"
2049 res_model="account.addtmpl.wizard"
2050 context="{'tmpl_ids': active_id}"
2051 src_model="account.account.template"
2052 view_type="form" view_mode="form"/>
2054 <!-- Account Templates -->
2056 id="account_template_folder"
2058 parent="menu_finance_accounting"
2059 groups="account.group_account_manager"/>
2061 id="account_template_taxes"
2063 parent="account_template_folder"
2066 id="account_template_accounts"
2068 parent="account_template_folder"
2072 <record id="view_account_template_form" model="ir.ui.view">
2073 <field name="name">account.account.template.form</field>
2074 <field name="model">account.account.template</field>
2075 <field name="arch" type="xml">
2076 <form string="Account Template" version="7.0">
2078 <page string="General Information">
2080 <field name="name"/>
2081 <field name="code"/>
2083 <field name="parent_id"/>
2084 <field name="shortcut"/>
2085 <field name="type"/>
2086 <field name="user_type"/>
2088 <field name="currency_id" groups="base.group_multi_currency"/>
2089 <field name="reconcile"/>
2090 <field name="chart_template_id"/>
2092 <separator string="Default Taxes"/>
2093 <field name="tax_ids"/>
2095 <page string="Notes">
2096 <field name="note"/>
2103 <record id="view_account_template_tree" model="ir.ui.view">
2104 <field name="name">account.account.template.tree</field>
2105 <field name="model">account.account.template</field>
2106 <field name="arch" type="xml">
2107 <tree string="Account Template">
2108 <field name="code"/>
2109 <field name="name"/>
2110 <field name="type" invisible="1"/>
2111 <field name="user_type" invisible="1"/>
2116 <record id="view_account_template_search" model="ir.ui.view">
2117 <field name="name">account.account.template.search</field>
2118 <field name="model">account.account.template</field>
2119 <field name="arch" type="xml">
2120 <search string="Search Account Templates">
2121 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account Template"/>
2122 <filter icon="terp-sale" string="Receivale Accounts" domain="[('type','=','receivable')]"/>
2123 <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
2124 <field name="parent_id"/>
2125 <field name="user_type"/>
2126 <field name="type"/>
2127 <group expand="0" string="Group By...">
2128 <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
2129 <filter string="Account Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'user_type'}"/>
2135 <record id="action_account_template_form" model="ir.actions.act_window">
2136 <field name="name">Account Templates</field>
2137 <field name="res_model">account.account.template</field>
2138 <field name="view_type">form</field>
2139 <field name="view_mode">tree,form</field>
2140 <field name="search_view_id" ref="view_account_template_search"/>
2143 <menuitem action="action_account_template_form" id="menu_action_account_template_form" parent="account_template_accounts"/>
2145 <!-- Chart of Accounts Templates -->
2147 <record id="view_account_chart_template_form" model="ir.ui.view">
2148 <field name="name">account.chart.template.form</field>
2149 <field name="model">account.chart.template</field>
2150 <field name="arch" type="xml">
2151 <form string="Chart of Accounts Template" version="7.0">
2153 <field name="name"/>
2154 <field name="account_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
2155 <field name="bank_account_view_id" attrs="{'required': [('parent_id', '=', False)]}"/>
2156 <field name="tax_code_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
2157 <field name="parent_id" />
2158 <!--<field name="code_digits" />-->
2159 <field name="visible" />
2160 <field name="complete_tax_set" />
2162 <field name="tax_template_ids" colspan="4" readonly="1" nolabel="1"/>
2163 <separator string="Properties" colspan="4"/>
2165 <field name="property_account_receivable" domain="[('id', 'child_of', [account_root_id])]"/>
2166 <field name="property_account_payable" domain="[('id', 'child_of', [account_root_id])]"/>
2167 <field name="property_account_expense_categ" domain="[('id', 'child_of', [account_root_id])]"/>
2168 <field name="property_account_income_categ" domain="[('id', 'child_of', [account_root_id])]" />
2169 <field name="property_account_expense" domain="[('id', 'child_of', [account_root_id])]"/>
2170 <field name="property_account_income" domain="[('id', 'child_of', [account_root_id])]"/>
2171 <field name="property_account_income_opening" domain="[('id', 'child_of', [account_root_id])]"/>
2172 <field name="property_account_expense_opening" domain="[('id', 'child_of', [account_root_id])]"/>
2177 <record id="view_account_chart_template_seacrh" model="ir.ui.view">
2178 <field name="name">account.chart.template.search</field>
2179 <field name="model">account.chart.template</field>
2180 <field name="arch" type="xml">
2181 <search string="Search Chart of Account Templates">
2182 <field name="name" string="Account Template"/>
2183 <field name="account_root_id"/>
2184 <field name="bank_account_view_id"/>
2185 <group expand="0" string="Group By...">
2186 <filter string="Root Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'account_root_id'}"/>
2187 <filter string="Bank Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'bank_account_view_id'}"/>
2188 <filter string="Receivable Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_receivable'}"/>
2189 <filter string="Payable Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_payable'}"/>
2190 <filter string="Income Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_income_categ'}"/>
2191 <filter string="Expense Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_expense_categ'}"/>
2196 <record id="view_account_chart_template_tree" model="ir.ui.view">
2197 <field name="name">account.chart.template.tree</field>
2198 <field name="model">account.chart.template</field>
2199 <field name="arch" type="xml">
2200 <tree string="Chart of Accounts Template">
2201 <field name="name"/>
2202 <field name="account_root_id"/>
2203 <field name="tax_code_root_id"/>
2204 <field name="bank_account_view_id"/>
2205 <field name="property_account_receivable" invisible="1"/>
2206 <field name="property_account_payable" invisible="1"/>
2207 <field name="property_account_expense_categ" invisible="1"/>
2208 <field name="property_account_income_categ" invisible="1"/>
2212 <record id="action_account_chart_template_form" model="ir.actions.act_window">
2213 <field name="name">Chart of Accounts Templates</field>
2214 <field name="res_model">account.chart.template</field>
2215 <field name="view_type">form</field>
2216 <field name="view_mode">tree,form</field>
2219 <menuitem action="action_account_chart_template_form" id="menu_action_account_chart_template_form" parent="account_template_accounts" sequence="1"/>
2221 <!-- Account Tax Templates -->
2223 <record id="view_account_tax_template_form" model="ir.ui.view">
2224 <field name="name">account.tax.template.form</field>
2225 <field name="model">account.tax.template</field>
2226 <field name="arch" type="xml">
2227 <form string="Account Tax Template" version="7.0">
2229 <field name="name"/>
2230 <field name="description"/>
2231 <field name="chart_template_id"/>
2232 <field name="type"/>
2233 <field name="type_tax_use"/>
2234 <field name="price_include"/>
2237 <page string="Tax Definition">
2239 <field name="applicable_type"/>
2240 <field name="amount" attrs="{'readonly':[('type','=','none'),('type','=','code')]}"/>
2241 <field name="include_base_amount"/>
2242 <field name="domain"/>
2244 <field name="account_collected_id"/>
2245 <label colspan="2" string="Keep empty to use the income account"/>
2246 <field name="account_paid_id"/>
2247 <label colspan="2" string="Keep empty to use the expense account"/>
2248 <field name="child_depend"/>
2249 <field name="sequence"/>
2252 <page string="Tax Declaration">
2254 <separator colspan="4" string="Invoices"/>
2255 <field name="base_code_id"/>
2256 <field name="base_sign"/>
2257 <field name="tax_code_id"/>
2258 <field name="tax_sign"/>
2260 <separator colspan="4" string="Credit Notes"/>
2261 <field name="ref_base_code_id"/>
2262 <field name="ref_base_sign"/>
2263 <field name="ref_tax_code_id"/>
2264 <field name="ref_tax_sign"/>
2267 <page string="Special Computation">
2268 <separator string="Compute Code (if type=code)"/>
2269 <field name="python_compute" attrs="{'readonly':[('type','!=','code')]}"/>
2270 <separator string="Compute Code for Taxes Included Prices"/>
2271 <field name="python_compute_inv"/>
2272 <separator string="Applicable Code (if type=code)"/>
2273 <field name="python_applicable" attrs="{'readonly':[('applicable_type','=','true')]}"/>
2279 <record id="view_account_tax_template_tree" model="ir.ui.view">
2280 <field name="name">account.tax.template.tree</field>
2281 <field name="model">account.tax.template</field>
2282 <field name="arch" type="xml">
2283 <tree string="Account Tax Template">
2284 <field name="name" />
2285 <field name="description"/>
2289 <record id="view_account_tax_template_search" model="ir.ui.view">
2290 <field name="name">account.tax.template.search</field>
2291 <field name="model">account.tax.template</field>
2292 <field name="arch" type="xml">
2293 <search string="Search Tax Templates">
2294 <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax Template"/>
2295 <filter icon="terp-sale" string="Sale" domain="[('type_tax_use','=','sale')]" help="Taxes used in Sales"/>
2296 <filter icon="terp-purchase" string="Purchase" domain="[('type_tax_use','=','purchase')]" help="Taxes used in Purchases"/>
2297 <field name="chart_template_id"/>
2302 <record id="action_account_tax_template_form" model="ir.actions.act_window">
2303 <field name="name">Tax Templates</field>
2304 <field name="res_model">account.tax.template</field>
2305 <field name="view_type">form</field>
2306 <field name="view_mode">tree,form</field>
2307 <field name="search_view_id" ref="view_account_tax_template_search"/>
2310 <menuitem action="action_account_tax_template_form" id="menu_action_account_tax_template_form" parent="account_template_taxes" sequence="13"/>
2312 <!-- Account Tax Code Templates -->
2313 <record id="view_tax_code_template_tree" model="ir.ui.view">
2314 <field name="name">account.tax.code.template.tree</field>
2315 <field name="model">account.tax.code.template</field>
2316 <field name="field_parent">child_ids</field>
2317 <field name="arch" type="xml">
2318 <tree string="Account Tax Code Template" toolbar="1">
2319 <field name="name"/>
2320 <field name="code"/>
2321 <field name="parent_id" invisible="1"/>
2326 <record id="view_tax_code_template_search" model="ir.ui.view">
2327 <field name="name">account.tax.code.template.search</field>
2328 <field name="model">account.tax.code.template</field>
2329 <field name="arch" type="xml">
2330 <search string="Search tax template">
2331 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Tax Template"/>
2332 <field name="parent_id"/>
2333 <group expand="0" string="Group By...">
2334 <filter string="Parent Code" icon="terp-folder-orange" domain="[]" context="{'group_by':'parent_id'}"/>
2340 <record id="view_tax_code_template_form" model="ir.ui.view">
2341 <field name="name">account.tax.code.template.form</field>
2342 <field name="model">account.tax.code.template</field>
2343 <field name="arch" type="xml">
2344 <form string="Account Tax Code Template" version="7.0">
2346 <field name="name"/>
2347 <field name="code"/>
2348 <field name="parent_id"/>
2349 <field name="sign"/>
2351 <separator string="Description"/>
2352 <field name="info"/>
2357 <record id="action_account_tax_code_template_form" model="ir.actions.act_window">
2358 <field name="name">Tax Code Templates</field>
2359 <field name="res_model">account.tax.code.template</field>
2360 <field name="view_type">form</field>
2361 <field name="view_mode">tree,form</field>
2362 <field name="search_view_id" ref="view_tax_code_template_search"/>
2364 <menuitem action="action_account_tax_code_template_form" id="menu_action_account_tax_code_template_form" parent="account_template_taxes" sequence="14"/>
2367 <!-- Wizard for Multi Charts of Accounts -->
2369 <record id="view_wizard_multi_chart" model="ir.ui.view">
2370 <field name="name">Set Your Accounting Options</field>
2371 <field name="model">wizard.multi.charts.accounts</field>
2372 <field name="inherit_id" ref="base.res_config_view_base"/>
2373 <field name="arch" type="xml">
2374 <form position="attributes" version="7.0">
2375 <attribute name="string">Accounting Application Configuration</attribute>
2377 <group string="res_config_contents" position="replace">
2378 <field name="only_one_chart_template" invisible="1"/>
2379 <field name="complete_tax_set" invisible="1"/>
2381 <group attrs="{'invisible': [('only_one_chart_template','=',True)]}">
2382 <field name="chart_template_id" widget="selection" on_change="onchange_chart_template_id(chart_template_id)" domain="[('visible','=', True)]"/>
2384 <group groups="base.group_multi_company">
2385 <field name="company_id" widget="selection" on_change="onchange_company_id(company_id)"/> <!-- 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 -->
2388 <field name="currency_id" class="oe_inline"/>
2389 <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'))]"/>
2390 <label for="sale_tax_rate" string="Sale Tax" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
2391 <div attrs="{'invisible': [('complete_tax_set', '=', True)]}">
2392 <field name="sale_tax_rate" class="oe_inline" on_change="onchange_tax_rate(sale_tax_rate)"/> %%
2394 <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'))]"/>
2395 <label for="purchase_tax_rate" string="Purchase Tax" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
2396 <div attrs="{'invisible': [('complete_tax_set', '=', True)]}">
2397 <field name="purchase_tax_rate" class="oe_inline"/> %%
2400 <group groups="account.group_account_user">
2401 <field name="code_digits"/>
2408 <record id="action_wizard_multi_chart" model="ir.actions.act_window">
2409 <field name="name">Set Your Accounting Options</field>
2410 <field name="type">ir.actions.act_window</field>
2411 <field name="res_model">wizard.multi.charts.accounts</field>
2412 <field name="view_id" ref="view_wizard_multi_chart"/>
2413 <field name="view_type">form</field>
2414 <field name="view_mode">form</field>
2415 <field name="target">new</field>
2418 <record id="account_account_graph" model="ir.ui.view">
2419 <field name="name">account.account.graph</field>
2420 <field name="model">account.account</field>
2421 <field name="arch" type="xml">
2422 <graph string="Account Statistics" type="bar">
2423 <field name="name"/>
2424 <field name="balance" operator="+"/>
2429 <!-- Fiscal Position Templates -->
2431 <record id="view_account_position_template_search" model="ir.ui.view">
2432 <field name="name">account.fiscal.position.template.search</field>
2433 <field name="model">account.fiscal.position.template</field>
2434 <field name="arch" type="xml">
2435 <search string="Fiscal Position">
2436 <field name="name" string="Fiscal Position Template"/>
2441 <record id="view_account_position_template_form" model="ir.ui.view">
2442 <field name="name">account.fiscal.position.template.form</field>
2443 <field name="model">account.fiscal.position.template</field>
2444 <field name="arch" type="xml">
2445 <form string="Fiscal Position Template" version="7.0">
2447 <field name="name"/>
2448 <field name="chart_template_id"/>
2450 <field name="tax_ids">
2451 <tree string="Taxes Mapping" editable="bottom">
2452 <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2453 <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2455 <form string="Taxes Mapping" version="7.0">
2456 <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2457 <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2460 <field name="account_ids">
2461 <tree string="Accounts Mapping" editable="bottom">
2462 <field name="account_src_id"/>
2463 <field name="account_dest_id"/>
2465 <form string="Accounts Mapping" version="7.0">
2466 <field name="account_src_id"/>
2467 <field name="account_dest_id"/>
2473 <record id="view_account_position_template_tree" model="ir.ui.view">
2474 <field name="name">account.fiscal.position.template.tree</field>
2475 <field name="model">account.fiscal.position.template</field>
2476 <field name="arch" type="xml">
2477 <tree string="Fiscal Position">
2478 <field name="name"/>
2483 <record id="action_account_fiscal_position_template_form" model="ir.actions.act_window">
2484 <field name="name">Fiscal Position Templates</field>
2485 <field name="res_model">account.fiscal.position.template</field>
2486 <field name="view_type">form</field>
2487 <field name="view_mode">tree,form</field>
2488 <field name="search_view_id" ref="view_account_position_template_search"/>
2492 action="action_account_fiscal_position_template_form"
2493 id="menu_action_account_fiscal_position_form_template"
2494 parent="account_template_taxes" sequence="20"/>
2496 <!-- Cash Statement -->
2497 <record id="view_cash_statement_tree" model="ir.ui.view">
2498 <field name="name">account.bank.statement.tree</field>
2499 <field name="model">account.bank.statement</field>
2500 <field name="arch" type="xml">
2501 <tree colors="red:balance_end_real!=balance_end;blue:state=='draft' and (balance_end_real==balance_end);black:state == 'open'" string="Statement">
2502 <field name="name"/>
2503 <field name="date"/>
2504 <field name="period_id"/>
2505 <field name="journal_id"/>
2506 <field name="balance_start"/>
2507 <field name="balance_end_real"/>
2508 <field name="balance_end" invisible="1" />
2509 <field name="state"/>
2514 <record id="view_bank_statement_form2" model="ir.ui.view">
2515 <field name="name">account.bank.statement.form</field>
2516 <field name="model">account.bank.statement</field>
2517 <field name="arch" type="xml">
2518 <form string="Statement" version="7.0">
2520 <button name="button_confirm_cash" states="open" string="Close CashBox" type="object" class="oe_highlight"/>
2521 <button name="button_open" states="draft" string="Open CashBox" type="object" class="oe_highlight"/>
2522 <button name="button_cancel" states="confirm,open" string="Cancel" type="object"/>
2523 <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,confirm"/>
2525 <sheet string="Statement">
2526 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
2527 <h1><field name="name" class="oe_inline" attrs="{'invisible':[('name','=','/')]}"/></h1>
2530 <field name="journal_id" on_change="onchange_journal_id(journal_id)" widget="selection" domain="[('type', '=', 'cash')]" />
2531 <field name="user_id" readonly="1" string="Responsible"/>
2532 <field name="total_entry_encoding"/>
2533 <field name='company_id' widget="selection" groups="base.group_multi_company" />
2536 <field name="date" attrs="{'readonly':[('state','!=','draft')]}" on_change="onchange_date(date, company_id)"/>
2537 <field name="closing_date" readonly="1"/>
2538 <field name="period_id" class="oe_inline"/>
2539 <field name="currency" invisible="1"/>
2543 <page string="Cash Transactions" attrs="{'invisible': [('state','=','draft')]}">
2544 <field name="line_ids" context="{'date':date}">
2545 <tree editable="bottom" string="Statement lines">
2546 <field name="sequence" invisible="1"/>
2547 <field name="date"/>
2548 <field name="name"/>
2550 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
2551 <field name="type" on_change="onchange_type(partner_id, type)"/>
2552 <field domain="[('journal_id','=',parent.journal_id), ('company_id', '=', parent.company_id)]" name="account_id"/>
2553 <field name="analytic_account_id" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]" groups="analytic.group_analytic_accounting" />
2554 <field name="amount"/>
2556 <form string="Statement lines" version="7.0">
2558 <field name="date"/>
2559 <field name="name"/>
2561 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
2562 <field name="type" on_change="onchange_type(partner_id, type)"/>
2563 <field domain="[('journal_id', '=', parent.journal_id), ('type', '<>', 'view'), ('company_id', '=', parent.company_id)]" name="account_id"/>
2564 <field name="analytic_account_id" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]" groups="analytic.group_analytic_accounting" />
2565 <field name="amount"/>
2566 <field name="sequence"/>
2568 <separator string="Notes"/>
2569 <field name="note"/>
2573 <page string="Cash Control">
2574 <group col="2" expand="1">
2575 <field name="opening_details_ids" nolabel="1" colspan="4" attrs="{'invisible' : [('state', '!=', 'draft')]}">
2576 <tree string="Opening Cashbox Lines" editable="bottom">
2577 <field name="pieces"/>
2578 <field name="number_opening" string="Opening Unit Numbers" on_change="on_change_sub_opening(pieces, number_opening, parent.balance_end)"/>
2579 <field name="subtotal_opening" string="Opening Subtotal"/>
2582 <field name="closing_details_ids" nolabel="1" colspan="4" attrs="{'invisible' : [('state', '=', 'draft')]}">
2583 <tree string="Closing Cashbox Lines" editable="bottom">
2584 <field name="pieces" readonly="1" />
2585 <field name="number_opening" string="Opening Unit Numbers" readonly="1" />
2586 <field name="subtotal_opening" string="Opening Subtotal" readonly="1" />
2588 <field name="number_closing" string="Closing Unit Numbers" on_change="on_change_sub_closing(pieces, number_closing, parent.balance_end)"/>
2589 <field name="subtotal_closing" string="Closing Subtotal"/>
2594 <page string="Journal Entries" attrs="{'invisible': [('state','!=','confirm')]}">
2595 <field name="move_line_ids" string="Journal Entries"/>
2598 <group col="6" colspan="4">
2599 <group col="2" colspan="2">
2600 <separator string="Opening Balance" colspan="4"/>
2601 <field name="balance_start" readonly="1" string="Opening Cash Control" widget="monetary" options="{'currency_field': 'currency_id'}"/>
2602 <field name="last_closing_balance" readonly="1" string="Last Closing Balance" widget="monetary" options="{'currency_field': 'currency_id'}"/>
2603 <field name="total_entry_encoding" widget="monetary" options="{'currency_field': 'currency_id'}"/>
2605 <group string="Closing Balance">
2606 <field name="balance_end" widget="monetary" options="{'currency_field': 'currency_id'}"/>
2613 <record id="account_cash_statement_graph" model="ir.ui.view">
2614 <field name="name">account.bank.statement.graph</field>
2615 <field name="model">account.bank.statement</field>
2616 <field name="arch" type="xml">
2617 <graph string="Account Statistics" type="bar">
2618 <field name="date"/>
2619 <field name="balance_start" operator="+"/>
2620 <field name="balance_end" operator="+"/>
2624 <record id="action_view_bank_statement_tree" model="ir.actions.act_window">
2625 <field name="name">Cash Registers</field>
2626 <field name="type">ir.actions.act_window</field>
2627 <field name="res_model">account.bank.statement</field>
2628 <field name="view_type">form</field>
2629 <field name="view_mode">tree,form,graph</field>
2630 <field name="view_id" ref="view_cash_statement_tree"/>
2631 <field name="search_view_id" ref="view_account_bank_statement_filter"/>
2632 <field name="domain">[('journal_id.type', '=', 'cash')]</field>
2633 <field name="context">{'journal_type':'cash'}</field>
2634 <field name="help" type="html">
2635 <p class="oe_view_nocontent_create">
2636 Click to create a new cash log.
2638 A Cash Register allows you to manage cash entries in your cash
2639 journals. This feature provides an easy way to follow up cash
2640 payments on a daily basis. You can enter the coins that are in
2641 your cash box, and then post entries when money comes in or
2642 goes out of the cash box.
2646 <record model="ir.actions.act_window.view" id="act_cash_statement1_all">
2647 <field name="sequence" eval="1"/>
2648 <field name="view_mode">tree</field>
2649 <field name="view_id" ref="view_cash_statement_tree"/>
2650 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2652 <record model="ir.actions.act_window.view" id="act_cash_statement2_all">
2653 <field name="sequence" eval="1"/>
2654 <field name="view_mode">form</field>
2655 <field name="view_id" ref="view_bank_statement_form2"/>
2656 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2658 <record model="ir.actions.act_window.view" id="act_cash_statement3_all">
2659 <field name="sequence" eval="1"/>
2660 <field name="view_mode">graph</field>
2661 <field name="view_id" ref="account_cash_statement_graph"/>
2662 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2664 <menuitem action="action_view_bank_statement_tree" id="journal_cash_move_lines"
2665 parent="menu_finance_bank_and_cash"/>
2667 <menuitem id="menu_account_customer" name="Customers"
2668 parent="menu_finance_receivables"
2669 action="base.action_partner_customer_form" sequence="100"/>
2671 <menuitem id="menu_account_supplier" name="Suppliers"
2672 parent="menu_finance_payables"
2673 action="base.action_partner_supplier_form" sequence="100"/>
2679 <record id="view_account_financial_report_form" model="ir.ui.view">
2680 <field name="name">account.financial.report.form</field>
2681 <field name="model">account.financial.report</field>
2682 <field name="arch" type="xml">
2683 <form string="Account Report" version="7.0">
2685 <field name="name"/>
2686 <field name="parent_id"/>
2687 <field name="sequence"/>
2688 <field name="type"/>
2689 <field name="sign"/>
2690 <field name="style_overwrite"/>
2693 <page string="Report">
2695 <field name="display_detail" attrs="{'invisible': [('type','not in',['accounts','account_type'])]}"/>
2696 <field name="account_report_id" attrs="{'invisible': [('type', '!=', 'account_report')]}"/>
2698 <field name="account_ids" attrs="{'invisible': [('type', '!=', 'accounts')]}"/>
2699 <field name="account_type_ids" attrs="{'invisible': [('type', '!=', 'account_type')]}"/>
2706 <record id="view_account_financial_report_tree" model="ir.ui.view">
2707 <field name="name">account.financial.report.tree</field>
2708 <field name="model">account.financial.report</field>
2709 <field name="arch" type="xml">
2710 <tree string="Account Report">
2711 <field name="name"/>
2712 <field name="parent_id" invisible="1"/>
2713 <field name="type"/>
2714 <field name="account_report_id"/>
2719 <record id="view_account_financial_report_search" model="ir.ui.view">
2720 <field name="name">account.financial.report.search</field>
2721 <field name="model">account.financial.report</field>
2722 <field name="arch" type="xml">
2723 <search string="Account Report">
2724 <field name="name" string="Account Report"/>
2725 <field name="type"/>
2726 <field name="account_report_id"/>
2727 <group expand="0" string="Group By...">
2728 <filter string="Parent Report" icon="terp-folder-orange" domain="" context="{'group_by':'parent_id'}"/>
2729 <filter string="Report Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
2735 <record id="action_account_financial_report_tree" model="ir.actions.act_window">
2736 <field name="name">Financial Reports</field>
2737 <field name="type">ir.actions.act_window</field>
2738 <field name="res_model">account.financial.report</field>
2739 <field name="view_type">form</field>
2740 <field name="view_mode">tree,form</field>
2741 <field name="search_view_id" ref="view_account_financial_report_search"/>
2742 <field name="view_id" ref="view_account_financial_report_tree"/>
2745 <menuitem id="menu_account_financial_reports_tree" name="Account Reports" parent="menu_account_reports" action="action_account_financial_report_tree"/>
2747 <record id="view_account_report_tree_hierarchy" model="ir.ui.view">
2748 <field name="name">account.report.hierarchy</field>
2749 <field name="model">account.financial.report</field>
2750 <field name="field_parent">children_ids</field>
2751 <field name="arch" type="xml">
2752 <tree string="Account Reports Hierarchy">
2753 <field name="name"/>
2754 <field name="type"/>
2755 <field name="parent_id" invisible="1"/>
2756 <field name="account_report_id"/>
2760 <record id="action_account_report_tree_hierarchy" model="ir.actions.act_window">
2761 <field name="name">Financial Reports Hierarchy</field>
2762 <field name="res_model">account.financial.report</field>
2763 <field name="view_type">tree</field>
2764 <field name="view_id" ref="view_account_report_tree_hierarchy"/>
2765 <field name="domain">[('parent_id','=',False)]</field>
2768 <menuitem id="menu_account_report_tree_hierarchy" name="Account Reports Hierarchy"
2769 parent="menu_account_reports" action="action_account_report_tree_hierarchy"/>