1 <?xml version="1.0" encoding="utf-8"?>
6 <record id="view_account_fiscalyear_form" model="ir.ui.view">
7 <field name="name">account.fiscalyear.form</field>
8 <field name="model">account.fiscalyear</field>
9 <field name="arch" type="xml">
10 <form string="Fiscal year" version="7.0">
12 <button name="create_period" states="draft" string="Create Monthly Periods" type="object" class="oe_highlight"/>
13 <button name="create_period3" states="draft" string="Create 3 Months Periods" type="object" class="oe_highlight"/>
14 <field name="state" widget="statusbar" nolabel="1" />
20 <field name="company_id" groups="base.group_multi_company"/>
21 <field name="end_journal_period_id"/>
24 <field name="date_start"/>
25 <field name="date_stop"/>
28 <field colspan="4" name="period_ids" nolabel="1" widget="one2many_list">
29 <form string="Period" version="7.0">
33 <field name="date_start"/>
34 <field name="date_stop"/>
35 <field name="special"/>
36 <field name="state" invisible="1"/>
43 <record id="view_account_fiscalyear_tree" model="ir.ui.view">
44 <field name="name">account.fiscalyear.tree</field>
45 <field name="model">account.fiscalyear</field>
46 <field name="arch" type="xml">
47 <tree colors="blue:state == 'draft';gray:state == 'done' " string="Fiscalyear">
50 <field name="company_id" groups="base.group_multi_company"/>
55 <record id="view_account_fiscalyear_search" model="ir.ui.view">
56 <field name="name">account.fiscalyear.search</field>
57 <field name="model">account.fiscalyear</field>
58 <field name="arch" type="xml">
59 <search string="Search Fiscalyear">
60 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Fiscal Year"/>
61 <filter string="Open" domain="[('state','=','draft')]" icon="terp-camera_test"/>
62 <filter string="Closed" domain="[('state','=','done')]" icon="terp-dialog-close"/>
64 <group expand="0" string="Group By...">
65 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
70 <record id="action_account_fiscalyear" model="ir.actions.act_window">
71 <field name="name">Fiscal Years</field>
72 <field name="res_model">account.fiscalyear</field>
73 <field name="view_type">form</field>
74 <field name="view_mode">tree,form</field>
75 <field name="help" type="html">
76 <p class="oe_view_nocontent_create">
77 Click to start a new fiscal year.
79 Define your company's financial year according to your needs. A
80 financial year is a period at the end of which a company's
81 accounts are made up (usually 12 months). The financial year is
82 usually referred to by the date in which it ends. For example,
83 if a company's financial year ends November 30, 2011, then
84 everything between December 1, 2010 and November 30, 2011
85 would be referred to as FY 2011.
89 <menuitem id="next_id_23" name="Periods" parent="account.menu_finance_configuration" sequence="5" />
90 <menuitem id="menu_action_account_fiscalyear" action="action_account_fiscalyear" parent="next_id_23"/>
93 <record id="view_account_period_form" model="ir.ui.view">
94 <field name="name">account.period.form</field>
95 <field name="model">account.period</field>
96 <field name="arch" type="xml">
97 <form string="Account Period" version="7.0">
99 <button string="Close Period" name="%(account.action_account_period_close)d" type="action" class="oe_highlight" states="draft"/>
100 <button name="action_draft" states="done" string="Re-Open Period" type="object" groups="account.group_account_manager"/>
101 <field name="state" widget="statusbar" nolabel="1"/>
107 <field name="fiscalyear_id" widget="selection"/>
108 <label for="date_start" string="Duration"/>
110 <field name="date_start" class="oe_inline" nolabel="1"/> -
111 <field name="date_stop" nolabel="1" class="oe_inline"/>
116 <field name="special"/>
117 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
124 <record id="view_account_period_tree" model="ir.ui.view">
125 <field name="name">account.period.tree</field>
126 <field name="model">account.period</field>
127 <field name="arch" type="xml">
128 <tree colors="blue:state == 'draft';gray:state == 'done' " string="Period">
131 <field name="date_start"/>
132 <field name="date_stop"/>
133 <field name="special"/>
134 <field name="company_id" groups="base.group_multi_company"/>
135 <field name="state"/>
139 <record id="view_account_period_search" model="ir.ui.view">
140 <field name="name">account.period.search</field>
141 <field name="model">account.period</field>
142 <field name="arch" type="xml">
143 <search string="Search Period">
144 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Period"/>
145 <filter string="To Close" name="draft" domain="[('state','=','draft')]" icon="terp-dialog-close"/>
149 <record id="action_account_period" model="ir.actions.act_window">
150 <field name="name">Periods</field>
151 <field name="res_model">account.period</field>
152 <field name="view_type">form</field>
153 <field name="view_mode">tree,form</field>
154 <field name="context">{'search_default_draft': 1}</field>
155 <field name="help" type="html">
156 <p class="oe_view_nocontent_create">
157 Click to add a fiscal period.
159 An accounting period typically is a month or a quarter. It
160 usually corresponds to the periods of the tax declaration.
164 <menuitem id="menu_action_account_period" action="action_account_period" parent="account.next_id_23"/>
167 <record id="view_account_form" model="ir.ui.view">
168 <field name="name">account.account.form</field>
169 <field name="model">account.account</field>
170 <field name="arch" type="xml">
171 <form string="Account" version="7.0">
172 <label for="code" class="oe_edit_only" string="Account Code and Name"/>
174 <field name="code" class="oe_inline" placeholder="Account code" style="width: 6em"/> -
175 <field name="name" class="oe_inline" placeholder="Account name"/>
179 <field name="parent_id"/>
181 <field name="user_type"/>
182 <field name="active"/>
183 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
186 <field name="debit" attrs="{'readonly':[('type','=','view')]}"/>
187 <field name="credit" attrs="{'readonly':[('type','=','view')]}"/>
188 <field name="balance"/>
191 <field name="tax_ids" domain="[('parent_id','=',False)]" widget="many2many_tags"/>
192 <field name="reconcile"/>
193 <field name="child_consol_ids"
194 attrs="{'invisible':[('type','!=','consolidation')]}"
195 widget="many2many_tags"/>
197 <group groups="base.group_multi_currency">
198 <field name="currency_id"/>
199 <field name="currency_mode" attrs="{'readonly': [('currency_id','=',False)]}"/>
207 <record id="view_account_list" model="ir.ui.view">
208 <field name="name">account.account.list</field>
209 <field name="model">account.account</field>
210 <field name="field_parent">child_id</field>
211 <field name="arch" type="xml">
212 <tree colors="blue:type == 'view';black:type in ('other','receivable','payable','consolidation');gray:type == 'closed'" string="Chart of accounts" toolbar="1" >
215 <field name="parent_id" invisible="1"/>
216 <field name="user_type" invisible="1"/>
217 <field name="debit"/>
218 <field name="credit"/>
219 <field name="balance"/>
221 <field name="company_id" groups="base.group_multi_company"/>
222 <field name="company_currency_id"/>
226 <record id="view_account_search" model="ir.ui.view">
227 <field name="name">account.account.search</field>
228 <field name="model">account.account</field>
229 <field name="arch" type="xml">
230 <search string="Accounts">
231 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account"/>
232 <filter icon="terp-sale" string="Receivable Accounts" domain="[('type','=','receivable')]"/>
233 <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
234 <field name="user_type"/>
235 <group expand="0" string="Group By...">
236 <filter string="Parent Account" icon="terp-folder-orange" domain="" context="{'group_by':'parent_id'}"/>
237 <filter string="Account Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'user_type'}"/>
238 <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'type'}"/>
243 <record id="action_account_form" model="ir.actions.act_window">
244 <field name="name">Accounts</field>
245 <field name="res_model">account.account</field>
246 <field name="view_type">form</field>
247 <field name="view_mode">tree,form,graph</field>
248 <field name="search_view_id" ref="view_account_search"/>
249 <field name="view_id" ref="view_account_list"/>
250 <field name="help" type="html">
251 <p class="oe_view_nocontent_create">
252 Click to add an account.
254 An account is part of a ledger allowing your company
255 to register all kinds of debit and credit transactions.
256 Companies present their annual accounts in two main parts: the
257 balance sheet and the income statement (profit and loss
258 account). The annual accounts of a company are required by law
259 to disclose a certain amount of information.
263 <menuitem id="account_account_menu" name="Accounts" parent="account.menu_finance_configuration" sequence="15"/>
264 <menuitem action="action_account_form" id="menu_action_account_form" parent="account_account_menu"/>
267 id="act_account_acount_move_line_open_unreconciled"
268 name="Unreconciled Entries"
269 res_model="account.move.line"
270 context="{'search_default_account_id':[active_id], 'search_default_unreconciled':1, 'default_account_id': active_id}"
271 src_model="account.account"/>
273 <record id="view_account_tree" model="ir.ui.view">
274 <field name="name">account.account.tree</field>
275 <field name="model">account.account</field>
276 <field name="field_parent">child_id</field>
277 <field name="arch" type="xml">
278 <tree colors="blue:type == 'view';black:type in ('other','receivable','payable','consolidation');gray:type == 'closed'" string="Chart of accounts" toolbar="1" >
281 <field name="debit"/>
282 <field name="credit"/>
283 <field name="balance"/>
284 <field name="company_currency_id"/>
285 <field name="company_id" groups="base.group_multi_company"/>
287 <field name="parent_id" invisible="1"/>
291 <record id="action_account_tree" model="ir.actions.act_window">
292 <field name="name">Chart of Accounts</field>
293 <field name="res_model">account.account</field>
294 <field name="view_type">tree</field>
295 <field name="view_id" ref="view_account_tree"/>
296 <field name="domain">[('parent_id','=',False)]</field>
298 <record id="view_account_gain_loss_tree" model="ir.ui.view">
299 <field name="name">Unrealized Gain or Loss</field>
300 <field name="model">account.account</field>
301 <field name="arch" type="xml">
302 <tree string="Unrealized Gains and losses" create="false">
305 <field name="parent_id" invisible="1"/>
306 <field name="user_type" invisible="1"/>
307 <field name="type" invisible="1"/>
308 <field name="currency_id"/>
309 <field name="exchange_rate"/>
310 <field name="foreign_balance"/>
311 <field name="adjusted_balance"/>
312 <field name="balance"/>
313 <field name="unrealized_gain_loss"/>
317 <record id="action_account_gain_loss" model="ir.actions.act_window">
318 <field name="name">Unrealized Gain or Loss</field>
319 <field name="res_model">account.account</field>
320 <field name="view_type">form</field>
321 <field name="view_mode">tree</field>
322 <field name="view_id" ref="view_account_gain_loss_tree"/>
323 <field name="domain">[('currency_id','!=',False)]</field>
324 <field name="help" type="html">
325 <p class="oe_view_nocontent_create">
326 Click to add an account.
328 When doing multi-currency transactions, you may loose or gain
329 some amount due to changes of exchange rate. This menu gives
330 you a forecast of the Gain or Loss you'd realized if those
331 transactions were ended today. Only for accounts having a
332 secondary currency set.
337 name="Unrealized Gain or Loss"
338 action="action_account_gain_loss"
339 groups="account.group_account_user"
340 id="menu_unrealized_gains_losses"
341 parent="account.menu_multi_currency"/>
344 id="action_move_line_select"
346 context="{'search_default_account_id': [active_id]}"
347 res_model="account.move.line"
348 src_model="account.account"/>
350 <!-- Enable drill-down from Chart Of Accounts tree view -->
352 id="action_account_items"
354 context="{'search_default_account_id': [active_id]}"
355 res_model="account.move.line"
356 src_model="account.account"
357 key2="tree_but_open"/>
359 <!-- Account Journal -->
360 <record id="view_account_journal_tree" model="ir.ui.view">
361 <field name="name">account.journal.tree</field>
362 <field name="model">account.journal</field>
363 <field name="arch" type="xml">
364 <tree string="Account Journal">
368 <field name="user_id"/>
369 <field name="company_id" groups="base.group_multi_company"/>
373 <record id="view_account_journal_search" model="ir.ui.view">
374 <field name="name">account.journal.search</field>
375 <field name="model">account.journal</field>
376 <field name="arch" type="xml">
377 <search string="Search Account Journal">
378 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Journal"/>
379 <filter domain="['|', ('type', '=', 'sale'), ('type', '=', 'sale_refund')]" string="Sale" icon="terp-camera_test"/>
380 <filter domain="['|', ('type', '=', 'purchase'), ('type', '=', 'purchase_refund')]" string="Purchase" icon="terp-purchase"/>
381 <filter domain="['|', ('type', '=', 'cash'), ('type', '=', 'bank')]" string="Liquidity" icon="terp-dolar"/>
382 <filter domain="['|', ('type', '=', 'general'), ('type', '=', 'situation')]" string="Others" icon="terp-stock"/>
383 <field name="user_id"/>
384 <group expand="0" string="Group By...">
385 <filter string="User" context="{'group_by':'user_id'}" icon="terp-personal"/>
386 <filter string="Type" context="{'group_by':'type'}" icon="terp-stock_symbol-selection"/>
391 <record id="view_account_journal_form" model="ir.ui.view">
392 <field name="name">account.journal.form</field>
393 <field name="model">account.journal</field>
394 <field name="arch" type="xml">
395 <form string="Account Journal" version="7.0">
396 <div class="oe_title">
397 <label for="name" class="oe_edit_only"/>
398 <h1><field name="name"/></h1>
406 <field name="default_debit_account_id" attrs="{'required':[('type','in', ('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
407 <field name="default_credit_account_id" attrs="{'required':[('type','in',('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
408 <field name="currency" groups="base.group_multi_currency"/>
409 <field name="company_id" groups="base.group_multi_company"/>
413 <page string="Advanced Settings">
416 <field name="user_id"/>
417 <field name="sequence_id" required="0"/>
420 <field name="centralisation"/>
421 <field name="entry_posted"/>
422 <field name="allow_date"/>
423 <field name="group_invoice_lines"/>
427 <page string="Entry Controls">
428 <separator colspan="4" string="Accounts Type Allowed (empty for no control)"/>
429 <field colspan="4" name="type_control_ids" nolabel="1"/>
430 <separator colspan="4" string="Accounts Allowed (empty for no control)"/>
431 <field colspan="4" name="account_control_ids" nolabel="1"/>
433 <page string="Cash Registers">
435 <group string="Accounts">
436 <field name="profit_account_id" domain="[('type','!=','view')]"/>
437 <field name="loss_account_id" domain="[('type','!=','view')]"/>
438 <field name="internal_account_id" domain="[('type','!=','view')]"/>
440 <group string="Miscellaneous">
441 <field name="with_last_closing_balance"/>
442 <field name="cash_control" attrs="{'invisible':[('type','not in', ('cash',))]}"/>
445 <separator string="Available Coins" colspan="4" attrs="{'invisible' : ['|',('cash_control', '=', False),('type','not in', ('cash',))] }"/>
446 <field name="cashbox_line_ids" nolabel="1" string="Unit Of Currency Definition" colspan="4" attrs="{'invisible' : ['|',('cash_control', '=', False),('type','not in', ('cash',))]}">
447 <tree string="CashBox Lines" editable="bottom">
448 <field name="pieces" />
456 <record id="action_account_journal_form" model="ir.actions.act_window">
457 <field name="name">Journals</field>
458 <field name="res_model">account.journal</field>
459 <field name="view_type">form</field>
460 <field name="view_mode">tree,form</field>
461 <field name="help" type="html">
462 <p class="oe_view_nocontent_create">
463 Click to add a journal.
465 A journal is used to record transactions of all accounting data
466 related to the day-to-day business.
468 A typical company may use one journal per payment method (cash,
469 bank accounts, checks), one purchase journal, one sale journal
470 and one for miscellaneous information.
474 <menuitem action="action_account_journal_form" id="menu_action_account_journal_form" parent="menu_journals"/>
477 id="act_account_journal_2_account_bank_statement"
478 name="Bank statements"
479 context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
480 res_model="account.bank.statement"
481 src_model="account.journal"/>
484 id="act_account_journal_2_account_move_line"
486 context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
487 res_model="account.move.line"
488 src_model="account.journal"/>
490 <!-- Bank statement -->
491 <record id="view_account_bank_statement_filter" model="ir.ui.view">
492 <field name="name">account.cash.statement.select</field>
493 <field name="model">account.bank.statement</field>
494 <field name="arch" type="xml">
495 <search string="Search Bank Statements">
496 <field name="name" string="Bank Statement"/>
498 <filter string="Draft" name="state_draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
499 <filter string="Open" name="state_open" domain="[('state','=','open')]" icon="terp-check"/>
500 <filter string="Confirmed" name="state_confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
501 <field name="journal_id" domain="[('type', '=', 'cash')]" />
502 <group expand="0" string="Group By...">
503 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
504 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
505 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
511 <record id="view_bank_statement_tree" model="ir.ui.view">
512 <field name="name">account.bank.statement.tree</field>
513 <field name="model">account.bank.statement</field>
514 <field name="arch" type="xml">
515 <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">
518 <field name="period_id"/>
519 <field name="journal_id"/>
520 <field name="balance_start"/>
521 <field name="balance_end_real"/>
522 <field name="balance_end" invisible="1"/>
523 <field name="state"/>
527 <record id="view_bank_statement_search" model="ir.ui.view">
528 <field name="name">account.bank.statement.search</field>
529 <field name="model">account.bank.statement</field>
530 <field name="arch" type="xml">
531 <search string="Search Bank Statements">
532 <field name="name" string="Bank Statement"/>
534 <filter string="Draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
535 <filter string="Confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
536 <field name="period_id"/>
537 <field name="journal_id" domain="[('type', '=', 'bank')]" />
538 <group expand="0" string="Group By...">
539 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
540 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
541 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
546 <record id="view_bank_statement_form" model="ir.ui.view">
547 <field name="name">account.bank.statement.form</field>
548 <field name="model">account.bank.statement</field>
549 <field name="priority">1</field>
550 <field name="arch" type="xml">
551 <form string="Bank Statement" version="7.0">
553 <button name="button_confirm_bank" states="draft" string="Confirm" type="object" class="oe_highlight"/>
554 <button name="button_dummy" states="draft" string="Compute" type="object" class="oe_highlight"/>
555 <button name="button_cancel" states="confirm" string="Cancel Statement" type="object"/>
556 <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/>
559 <div class="oe_right oe_button_box" name="import_buttons">
560 <!-- Put here related buttons -->
562 <label for="name" class="oe_edit_only"/>
563 <h1><field name="name"/></h1>
566 <field name="journal_id" domain="[('type', '=', 'bank')]" on_change="onchange_journal_id(journal_id)" widget="selection"/>
567 <label for="date" string="Date / Period"/>
569 <field name="date" on_change="onchange_date(date, company_id)" class="oe_inline"/>
570 <field name="period_id" class="oe_inline"/>
572 <field name='company_id' widget="selection" groups="base.group_multi_company" />
573 <field name="currency" invisible="1"/>
575 <field name="balance_start" widget="monetary" options='{"currency_field" : "currency"}'/>
576 <field name="balance_end_real" widget="monetary" options='{"currency_field" : "currency"}'/>
581 <page string="Transactions" name="statement_line_ids">
582 <field name="line_ids" context="{'date':date}">
583 <tree editable="bottom" string="Statement lines">
584 <field name="sequence" readonly="1" invisible="1"/>
588 <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[
590 '|',('parent_id','=',False),('is_company','=',True),
591 '|',('customer','=',True),('supplier','=',True)]"/>
592 <field name="type" on_change="onchange_type(partner_id, type)"/>
593 <field name="account_id" options='{"no_open":True}' domain="[('journal_id','=',parent.journal_id), ('company_id', '=', parent.company_id)]"/>
594 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]"/>
595 <field name="amount"/>
597 <form string="Statement lines" version="7.0">
602 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
603 <field name="type" on_change="onchange_type(partner_id, type)"/>
604 <field name="account_id" domain="[('journal_id', '=', parent.journal_id), ('type', '<>', 'view'), ('company_id', '=', parent.company_id)]"/>
605 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]"/>
606 <field name="amount"/>
607 <field name="sequence" readonly="0"/>
609 <separator string="Notes"/>
620 <record id="view_bank_statement_form_journal_items" model="ir.ui.view">
621 <field name="name">account.bank.statement.journal.items.form.inherit</field>
622 <field name="model">account.bank.statement</field>
623 <field name="inherit_id" ref="view_bank_statement_form"/>
624 <field name="arch" type="xml">
625 <xpath expr="//div[@name='import_buttons']" position="inside">
626 <button name="button_journal_entries"
627 string="Journal Items" type="object"
628 attrs="{'invisible':[('state','!=','confirm')]}"/>
633 <record id="action_bank_statement_tree" model="ir.actions.act_window">
634 <field name="name">Bank Statements</field>
635 <field name="res_model">account.bank.statement</field>
636 <field name="view_type">form</field>
637 <field name="view_mode">tree,form,graph</field>
638 <field name="domain">[('journal_id.type', '=', 'bank')]</field>
639 <field name="context">{'journal_type':'bank'}</field>
640 <field name="search_view_id" ref="view_bank_statement_search"/>
641 <field name="help" type="html">
642 <p class="oe_view_nocontent_create">
643 Click to register a bank statement.
645 A bank statement is a summary of all financial transactions
646 occurring over a given period of time on a bank account. You
647 should receive this periodicaly from your bank.
649 OpenERP allows you to reconcile a statement line directly with
650 the related sale or puchase invoices.
654 <record model="ir.actions.act_window.view" id="action_bank_statement_tree_bank">
655 <field name="sequence" eval="1"/>
656 <field name="view_mode">tree</field>
657 <field name="view_id" ref="view_bank_statement_tree"/>
658 <field name="act_window_id" ref="action_bank_statement_tree"/>
660 <record model="ir.actions.act_window.view" id="action_bank_statement_form_bank">
661 <field name="sequence" eval="1"/>
662 <field name="view_mode">form</field>
663 <field name="view_id" ref="view_bank_statement_form"/>
664 <field name="act_window_id" ref="action_bank_statement_tree"/>
667 <menuitem string="Bank Statements" action="action_bank_statement_tree" id="menu_bank_statement_tree" parent="menu_finance_bank_and_cash" sequence="7"/>
669 <record id="action_bank_statement_draft_tree" model="ir.actions.act_window">
670 <field name="name">Draft statements</field>
671 <field name="res_model">account.bank.statement</field>
672 <field name="view_type">form</field>
673 <field name="view_mode">tree,form</field>
674 <field name="domain">[('state','=','draft')]</field>
675 <field name="filter" eval="True"/>
678 <!-- Account Types -->
679 <record id="view_account_type_search" model="ir.ui.view">
680 <field name="name">account.account.type.search</field>
681 <field name="model">account.account.type</field>
682 <field name="arch" type="xml">
683 <search string="Account Type">
684 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account Type"/>
688 <record id="view_account_type_tree" model="ir.ui.view">
689 <field name="name">account.account.type.tree</field>
690 <field name="model">account.account.type</field>
691 <field name="arch" type="xml">
692 <tree string="Account Type">
698 <record id="view_account_type_form" model="ir.ui.view">
699 <field name="name">account.account.type.form</field>
700 <field name="model">account.account.type</field>
701 <field name="arch" type="xml">
702 <form string="Account Type" version="7.0">
709 <field name="report_type"/>
710 <field name="close_method"/>
713 <separator string="Description"/>
718 <record id="action_account_type_form" model="ir.actions.act_window">
719 <field name="name">Account Types</field>
720 <field name="res_model">account.account.type</field>
721 <field name="view_type">form</field>
722 <field name="view_mode">tree,form</field>
723 <field name="search_view_id" ref="view_account_type_search"/>
724 <field name="help" type="html">
725 <p class="oe_view_nocontent_create">
726 Click to define a new account type.
728 An account type is used to determine how an account is used in
729 each journal. The deferral method of an account type determines
730 the process for the annual closing. Reports such as the Balance
731 Sheet and the Profit and Loss report use the category
732 (profit/loss or balance sheet).
736 <menuitem action="action_account_type_form" sequence="20" id="menu_action_account_type_form" parent="account_account_menu" groups="base.group_no_one"/>
739 <record id="view_account_move_tree" model="ir.ui.view">
740 <field name="name">account.move.tree</field>
741 <field name="model">account.move</field>
742 <field name="arch" type="xml">
743 <tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries">
747 <field name="period_id"/>
748 <field name="journal_id"/>
749 <field name="partner_id"/>
750 <field name="amount" sum="Total Amount"/>
751 <field name="state"/>
757 <record id="view_move_reconcile_form" model="ir.ui.view">
758 <field name="name">account.move.reconcile.form</field>
759 <field name="model">account.move.reconcile</field>
760 <field name="arch" type="xml">
761 <form string="Journal Entry Reconcile" version="7.0">
764 <field name="create_date"/>
767 <separator string="Reconcile Entries"/>
768 <field name="line_id"/>
769 <separator string="Partial Reconcile Entries"/>
770 <field name="line_partial_ids"/>
776 <record id="view_tax_code_search" model="ir.ui.view">
777 <field name="name">account.tax.code.search</field>
778 <field name="model">account.tax.code</field>
779 <field name="arch" type="xml">
780 <search string="Account Tax Code">
781 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Tax Code"/>
782 <field name="parent_id"/>
783 <field name="company_id" groups="base.group_multi_company"/>
787 <record id="view_tax_code_tree" model="ir.ui.view">
788 <field name="name">account.tax.code.tree</field>
789 <field name="model">account.tax.code</field>
790 <field name="field_parent">child_ids</field>
791 <field name="priority">100</field>
792 <field name="arch" type="xml">
793 <tree string="Account Tax Code" toolbar="1">
796 <field name="sum_period"/>
798 <field name="company_id" groups="base.group_multi_company"/>
802 <record id="view_tax_code_form" model="ir.ui.view">
803 <field name="name">account.tax.code.form</field>
804 <field name="model">account.tax.code</field>
805 <field name="arch" type="xml">
806 <form string="Account Tax Code" version="7.0">
808 <group col="4" colspan="2">
811 <field name="parent_id"/>
812 <field name="company_id" groups="base.group_multi_company"/>
814 <group string="Reporting Configuration">
815 <field name="notprintable"/>
818 <group string="Statistics">
819 <field name="sum_period"/>
823 <separator string="Description"/>
828 <record id="action_tax_code_list" model="ir.actions.act_window">
829 <field name="name">Tax codes</field>
830 <field name="res_model">account.tax.code</field>
831 <field name="view_type">form</field>
832 <field name="view_mode">tree,form</field>
833 <field name="view_id" ref="view_tax_code_tree"/>
834 <field name="search_view_id" ref="view_tax_code_search"/>
835 <field name="help" type="html">
836 <p class="oe_view_nocontent_create">
837 Click to define a new tax code.
839 Depending on the country, a tax code is usually a cell to fill
840 in your legal tax statement. OpenERP allows you to define the
841 tax structure and each tax computation will be registered in
842 one or several tax code.
846 <menuitem id="next_id_27" name="Taxes" parent="account.menu_finance_configuration" sequence="20"/>
847 <menuitem action="action_tax_code_list" id="menu_action_tax_code_list" parent="next_id_27" sequence="12" groups="base.group_no_one"/>
850 id="action_tax_code_line_open"
852 domain="[('tax_code_id','child_of',active_id),('state','<>','draft')]"
853 res_model="account.move.line"
854 src_model="account.tax.code"/>
856 <!-- Enable drill-down from Chart Of Taxes tree view -->
858 id="action_tax_code_items"
860 domain="[('tax_code_id','child_of',active_id),('state','!=','draft')]"
861 res_model="account.move.line"
862 src_model="account.tax.code"
863 key2="tree_but_open"/>
867 <record id="view_tax_tree" model="ir.ui.view">
868 <field name="name">account.tax.tree</field>
869 <field name="model">account.tax</field>
870 <field name="field_parent">child_ids</field>
871 <field name="arch" type="xml">
872 <tree string="Account Tax">
874 <field name="price_include"/>
875 <field name="description"/>
876 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
880 <record id="view_account_tax_search" model="ir.ui.view">
881 <field name="name">account.tax.search</field>
882 <field name="model">account.tax</field>
883 <field name="arch" type="xml">
884 <search string="Search Taxes">
885 <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax"/>
886 <field name="company_id" groups="base.group_multi_company"/>
890 <record id="view_tax_form" model="ir.ui.view">
891 <field name="name">account.tax.form</field>
892 <field name="model">account.tax</field>
893 <field name="arch" type="xml">
894 <form string="Account Tax" version="7.0">
898 <field name="description"/>
901 <field name="type_tax_use"/>
902 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
903 <field name="active"/>
907 <page string="Tax Definition">
909 <group string="Tax Computation">
913 <field name="amount" attrs="{'invisible':[('type','in',('none', 'code', 'balance'))]}"/>
915 <field name="python_compute" attrs="{'invisible':[('type','!=','code')],'required':[('type','=','code')]}"/>
916 <field name="python_compute_inv" attrs="{'invisible':[('type','!=','code')],'required':[('type','=','code')]}"/>
917 <field name="price_include"/>
919 <group string="Misc">
920 <field name="sequence"/>
921 <field name="include_base_amount"/>
922 <field name="child_depend"/>
924 <group string="Invoices">
925 <field name="account_collected_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
926 <field name="account_analytic_collected_id" domain="[('type','<>','view'), ('company_id', '=', company_id)]" groups="analytic.group_analytic_accounting"/>
928 <field name="base_code_id"/>
929 <field name="base_sign"/>
930 <field name="tax_code_id"/>
931 <field name="tax_sign"/>
934 <group string="Refunds">
935 <field name="account_paid_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
936 <field name="account_analytic_paid_id" domain="[('type','<>','view'), ('company_id', '=', company_id)]" groups="analytic.group_analytic_accounting"/>
938 <field name="ref_base_code_id"/>
939 <field name="ref_base_sign"/>
940 <field name="ref_tax_code_id"/>
941 <field name="ref_tax_sign"/>
943 <group string="Children/Sub Taxes" colspan="2">
944 <field name="child_depend" class="oe_inline"/>
945 <field name="child_ids" nolabel="1" colspan="2">
946 <tree string="Account Tax">
947 <field name="sequence"/>
949 <field name="price_include"/>
950 <field name="description"/>
956 <page string="Special Computation">
958 <separator colspan="4" string="Applicability Options"/>
959 <field name="applicable_type"/>
960 <field name="domain"/>
961 <separator colspan="4" string="Applicable Code (if type=code)"/>
962 <field colspan="4" name="python_applicable" nolabel="1" attrs="{'readonly':[('applicable_type','=','true')], 'required':[('applicable_type','=','code')]}"/>
969 <record id="action_tax_form" model="ir.actions.act_window">
970 <field name="name">Taxes</field>
971 <field name="res_model">account.tax</field>
972 <field name="view_type">form</field>
973 <field name="view_id" ref="view_tax_tree"/>
974 <field name="domain">[('parent_id','=',False)]</field>
976 <menuitem action="action_tax_form" id="menu_action_tax_form" parent="next_id_27"/>
978 <record id="action_tax_code_tree" model="ir.actions.act_window">
979 <field name="name">Chart of Taxes</field>
980 <field name="res_model">account.tax.code</field>
981 <field name="domain">[('parent_id','=',False)]</field>
982 <field name="view_type">tree</field>
983 <field name="view_id" ref="view_tax_code_tree"/>
986 <!-- Journal Items -->
987 <record id="view_move_line_form" model="ir.ui.view">
988 <field name="name">account.move.line.form</field>
989 <field name="model">account.move.line</field>
990 <field eval="2" name="priority"/>
991 <field name="arch" type="xml">
992 <form string="Journal Item" version="7.0">
998 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1001 <field name="journal_id"/>
1002 <field name="period_id"/>
1003 <field name="company_id" required="1" groups="base.group_multi_company"/>
1006 <notebook colspan="4">
1007 <page string="Information">
1009 <group string="Amount">
1010 <field name="account_id" domain="[('company_id', '=', company_id), ('type','<>','view'), ('type','<>','consolidation')]"/>
1011 <field name="debit"/>
1012 <field name="credit"/>
1013 <field name="quantity"/>
1015 <group string="Accounting Documents">
1016 <field name="invoice" readonly="True"/>
1017 <field name="move_id" required="False"/>
1018 <field name="statement_id" readonly="True"/>
1020 <group string="Dates">
1021 <field name="date"/>
1022 <field name="date_maturity"/>
1023 <field name="date_created" readonly="True"/>
1025 <group string="Taxes">
1026 <field name="tax_code_id"/>
1027 <field name="tax_amount"/>
1028 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1030 <group attrs="{'readonly':[('state','=','valid')]}" string="Currency" groups="base.group_multi_currency">
1031 <field name="currency_id" invisible="1"/>
1032 <field name="amount_currency" widget="monetary" options="{'currency_field': 'currency_id'}"/>
1034 <group string="Reconciliation">
1035 <field name="reconcile_id"/>
1036 <field name="reconcile_partial_id"/>
1038 <group string="States">
1039 <field name="state"/>
1040 <field name="blocked"/>
1042 <group groups="analytic.group_analytic_accounting" string="Analytic">
1043 <field name="analytic_account_id" domain="[('type','in',('normal','contract'))]"/>
1046 <field name="narration" colspan="4" nolabel="1" placeholder="Add an internal note..."/>
1048 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1049 <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)}"/>
1056 <record id="view_move_line_form2" model="ir.ui.view">
1057 <field name="name">account.move.line.form2</field>
1058 <field name="model">account.move.line</field>
1059 <field eval="9" name="priority"/>
1060 <field name="arch" type="xml">
1061 <form string="Journal Item" version="7.0">
1062 <notebook colspan="4">
1063 <page string="Information">
1065 <separator colspan="4" string="General Information"/>
1066 <field name="name"/>
1067 <field name="date"/>
1068 <field name="journal_id" readonly="False"/>
1069 <field name="period_id" readonly="False"/>
1070 <field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation'),('company_id', '=', company_id)]"/>
1071 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1073 <field name="debit"/>
1074 <field name="credit"/>
1076 <separator colspan="4" string="Optional Information"/>
1077 <field name="currency_id" invisible="1"/>
1078 <field name="amount_currency" groups="base.group_multi_currency" widget="monetary" options="{'currency_field': 'currency_id'}"/>
1079 <field name="quantity"/>
1080 <field name="move_id" required="False"/>
1082 <field name="date_maturity"/>
1083 <field name="date_created"/>
1084 <field name="date_created"/>
1085 <field name="blocked"/>
1087 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1088 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1089 <separator colspan="4" string="Status"/>
1091 <field name="reconcile_id"/>
1092 <field name="reconcile_partial_id"/>
1093 <field name="state"/>
1096 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1097 <field name="analytic_lines"/>
1103 <record id="view_move_line_tree" model="ir.ui.view">
1104 <field name="name">account.move.line.tree</field>
1105 <field name="model">account.move.line</field>
1106 <field eval="1" name="priority"/>
1107 <field name="arch" type="xml">
1108 <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" create="true" on_write="on_create_write" version="7.0" editable="top">
1109 <field name="journal_id" options='{"no_open":True}' invisible="context.get('journal_id',False)"/>
1110 <field name="period_id" options='{"no_open":True}' invisible="context.get('period_id',False)"/>
1111 <field name="date"/>
1112 <field name="name"/>
1114 <field name="statement_id" invisible="1"/>
1115 <field name="partner_id" on_change="onchange_partner_id(move_id, partner_id, account_id, debit, credit, date, journal_id)"/>
1116 <field name="account_id" options='{"no_open":True}' domain="[('journal_id','=',journal_id), ('company_id', '=', company_id)]" on_change="onchange_account_id(account_id, partner_id, context)"/>
1117 <field name="account_tax_id" options='{"no_open":True}' invisible="context.get('journal_type', False) not in ['sale','sale_refund','purchase','purchase_refund','general']"/>
1118 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('type','not in',['view','template'])]" invisible="not context.get('analytic_journal_id',False)"/>
1119 <field name="move_id" required="0"/>
1120 <field name="debit" sum="Total Debit"/>
1121 <field name="credit" sum="Total Credit"/>
1122 <field name="date_maturity" invisible="context.get('journal_type', False) not in ['sale','sale_refund','purchase','purchase_refund']"/>
1123 <field name="reconcile"/>
1124 <field name="invoice" invisible="1"/>
1125 <field name="amount_currency" readonly="True" invisible="not context.get('currency',False)"/>
1126 <field name="currency_id" readonly="True" invisible="not context.get('currency',False)" />
1127 <field name="state" invisible="1"/>
1128 <field name="company_id" invisible="1"/>
1132 <record id="account_move_line_graph" model="ir.ui.view">
1133 <field name="name">account.move.line.graph</field>
1134 <field name="model">account.move.line</field>
1135 <field name="arch" type="xml">
1136 <graph string="Account Statistics" type="bar">
1137 <field name="account_id"/>
1138 <field name="debit" operator="+"/>
1139 <field name="credit" operator="+"/>
1143 <record id="view_account_move_line_filter" model="ir.ui.view">
1144 <field name="name">Journal Items</field>
1145 <field name="model">account.move.line</field>
1146 <field name="arch" type="xml">
1147 <search string="Search Journal Items">
1148 <field name="name" filter_domain="['|', ('name','ilike',self), ('ref','ilike',self)]" string="Move"/>
1149 <field name="date"/>
1150 <filter icon="terp-document-new" string="Unbalanced" domain="[('state','=','draft')]" help="Unbalanced Journal Items"/>
1152 <filter icon="terp-document-new" string="Unposted" domain="[('move_id.state','=','draft')]" help="Unposted Journal Items"/>
1153 <filter name="posted" icon="terp-camera_test" string="Posted" domain="[('move_id.state','=','posted')]" help="Posted Journal Items"/>
1155 <filter icon="terp-dolar_ok!" string="Unreconciled" domain="[('reconcile_id','=',False), ('account_id.reconcile','=',True)]" help="Unreconciled Journal Items" name="unreconciled"/>
1157 <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)]"/>
1158 <field name="move_id" string="Number (Move)"/>
1159 <field name="account_id"/>
1160 <field name="partner_id"/>
1161 <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 -->
1162 <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 -->
1163 <group expand="0" string="Group By...">
1164 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1165 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1166 <filter string="Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
1167 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1172 <record id="action_account_moves_all_a" model="ir.actions.act_window">
1173 <field name="context">{'journal_type':'general'}</field>
1174 <field name="name">Journal Items</field>
1175 <field name="res_model">account.move.line</field>
1176 <field name="view_id" ref="view_move_line_tree"/>
1177 <field name="view_mode">tree_account_move_line_quickadd,form</field>
1178 <field name="help" type="html">
1179 <p class="oe_view_nocontent_create">
1180 Select the period and the journal you want to fill.
1182 This view can be used by accountants in order to quickly record
1183 entries in OpenERP. If you want to record a supplier invoice,
1184 start by recording the line of the expense account. OpenERP
1185 will propose to you automatically the Tax related to this
1186 account and the counterpart "Account Payable".
1191 action="action_account_moves_all_a"
1192 icon="STOCK_JUSTIFY_FILL"
1193 id="menu_action_account_moves_all"
1194 parent="account.menu_finance_entries"
1196 groups="group_account_user"
1199 <record id="view_move_line_tree_reconcile" model="ir.ui.view">
1200 <field name="model">account.move.line</field>
1201 <field eval="24" name="priority"/>
1202 <field name="arch" type="xml">
1203 <tree_account_reconciliation colors="red:state == 'draft';black:state == 'valid'" string="Journal Items to Reconcile" create="false" version="7.0">
1204 <field name="date"/>
1205 <field name="move_id"/>
1207 <field name="name"/>
1208 <field name="partner_id"/>
1209 <field name="account_id"/>
1210 <field name="period_id" invisible="1"/>
1211 <field name="journal_id" invisible="1"/>
1212 <field name="reconcile_partial_id"/>
1213 <field name="state" invisible="1"/>
1214 <field name="debit" sum="Total debit"/>
1215 <field name="credit" sum="Total credit"/>
1216 </tree_account_reconciliation>
1219 <record id="action_account_manual_reconcile" model="ir.actions.act_window">
1220 <field name="context">{'search_default_unreconciled': 1,'view_mode':True}</field>
1221 <field name="name">Journal Items to Reconcile</field>
1222 <field name="res_model">account.move.line</field>
1223 <field name="view_id" ref="view_move_line_tree_reconcile"/>
1224 <field name="view_mode">tree_account_reconciliation</field>
1225 <field name="help" type="html">
1227 No journal items found.
1232 name="Manual Reconciliation"
1233 action="action_account_manual_reconcile"
1234 id="menu_manual_reconcile"
1235 parent="account.periodical_processing_reconciliation"/>
1237 <!-- Account.Entry Edition -->
1238 <record id="view_move_tree" model="ir.ui.view">
1239 <field name="name">account.move.tree</field>
1240 <field name="model">account.move</field>
1241 <field name="arch" type="xml">
1242 <tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries">
1243 <field name="name"/>
1245 <field name="date"/>
1246 <field name="period_id"/>
1247 <field name="journal_id"/>
1248 <field name="partner_id"/>
1249 <field name="amount" sum="Total Amount"/>
1250 <field name="to_check"/>
1251 <field name="state"/>
1255 <record id="view_move_form" model="ir.ui.view">
1256 <field name="name">account.move.form</field>
1257 <field name="model">account.move</field>
1258 <field name="arch" type="xml">
1259 <form string="Account Entry" version="7.0">
1261 <button name="button_validate" states="draft" string="Post" type="object" class="oe_highlight" groups="account.group_account_invoice"/>
1262 <button name="button_cancel" states="posted" string="Cancel Entry" type="object" groups="account.group_account_invoice"/>
1263 <field name="state" widget="statusbar"/>
1265 <sheet string="Journal Entries" >
1266 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
1268 <field name="name" readonly="True" attrs="{'invisible':[('name','=','/')]}"/>
1272 <field name="journal_id"/>
1273 <field name="period_id"/>
1274 <field name="company_id" required="1" groups="base.group_multi_company"/>
1275 <field name="partner_id" invisible="1"/>
1279 <field name="date"/>
1280 <field name="to_check"/>
1281 <field name="amount" invisible="1"/>
1285 <page string="Journal Items">
1286 <field name="line_id" widget="one2many_list"
1287 context="{'line_id': line_id , 'journal_id': journal_id }">
1288 <form string="Journal Item" version="7.0">
1289 <group col="6" colspan="4">
1290 <field name="name"/>
1292 <field name="partner_id" on_change="onchange_partner_id(False, partner_id, account_id, debit, credit, date, journal_id, context)"/>
1294 <field name="journal_id"/>
1295 <field name="period_id"/>
1296 <field name="company_id" required="1" groups="base.group_multi_company"/>
1298 <notebook colspan="4">
1299 <page string="Information">
1301 <group string="Amount">
1302 <field name="account_id" domain="[('company_id', '=', parent.company_id), ('type','<>','view'),('type','<>','consolidation')]"/>
1303 <field name="debit"/>
1304 <field name="credit"/>
1305 <field name="quantity"/>
1308 <group string="Accounting Documents">
1309 <field name="invoice"/>
1310 <field name="move_id" required="False"/>
1311 <field name="statement_id"/>
1314 <group string="Dates">
1315 <field name="date"/>
1316 <field name="date_maturity"/>
1317 <field name="date_created"/>
1320 <group string="Taxes">
1321 <field name="tax_code_id"/>
1322 <field name="tax_amount"/>
1323 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1326 <group string="Currency" groups="base.group_multi_currency">
1327 <field name="currency_id"/>
1328 <field name="amount_currency"/>
1331 <group string="Reconciliation">
1332 <field name="reconcile_id"/>
1333 <field name="reconcile_partial_id"/>
1336 <group string="States">
1337 <field name="state"/>
1338 <field name="blocked"/>
1341 <group groups="analytic.group_analytic_accounting" string="Analytic">
1342 <field name="analytic_account_id"/>
1345 <separator string="Internal Note"/>
1346 <field name="narration"/>
1348 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1349 <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)}"/>
1353 <tree colors="blue:state == 'draft';black:state == 'posted'" editable="top" string="Journal Items">
1354 <field name="invoice"/>
1355 <field name="name"/>
1356 <field name="partner_id" on_change="onchange_partner_id(False, partner_id, account_id, debit, credit, parent.date, parent.journal_id, context)"/>
1357 <field name="account_id" domain="[('journal_id','=',parent.journal_id),('company_id', '=', parent.company_id)]"/>
1358 <field name="date_maturity"/>
1359 <field name="debit" sum="Total Debit"/>
1360 <field name="credit" sum="Total Credit"/>
1361 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1362 <field name="amount_currency"/>
1363 <field name="currency_id" groups="base.group_multi_currency"/>
1364 <field name="tax_code_id"/>
1365 <field name="tax_amount"/>
1366 <field name="state"/>
1367 <field name="reconcile_id"/>
1368 <field name="reconcile_partial_id"/>
1371 <field name="narration" colspan="4" placeholder="Add an internal note..." nolabel="1" height="50"/>
1378 <record id="view_account_move_filter" model="ir.ui.view">
1379 <field name="name">account.move.select</field>
1380 <field name="model">account.move</field>
1381 <field name="arch" type="xml">
1382 <search string="Search Move">
1383 <field name="name" filter_domain="['|', ('name','ilike',self), ('ref','ilike',self)]" string="Move"/>
1384 <field name="date"/>
1385 <filter icon="terp-document-new" string="Unposted" domain="[('state','=','draft')]" help="Unposted Journal Entries"/>
1386 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Journal Entries"/>
1388 <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('to_check','=',True)]" help="Journal Entries to Review"/>
1389 <field name="partner_id"/>
1390 <field name="journal_id"/>
1391 <field name="period_id"/>
1392 <group expand="0" string="Group By...">
1393 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1394 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1395 <filter string="States" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1396 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1397 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1402 <record id="action_move_journal_line" model="ir.actions.act_window">
1403 <field name="name">Journal Entries</field>
1404 <field name="res_model">account.move</field>
1405 <field name="view_type">form</field>
1406 <field name="view_mode">tree,form</field>
1407 <field name="view_id" ref="view_move_tree"/>
1408 <field name="search_view_id" ref="view_account_move_filter"/>
1409 <field name="help" type="html">
1410 <p class="oe_view_nocontent_create">
1411 Click to create a journal entry.
1413 A journal entry consists of several journal items, each of
1414 which is either a debit or a credit transaction.
1416 OpenERP automatically creates one journal entry per accounting
1417 document: invoice, refund, supplier payment, bank statements,
1418 etc. So, you should record journal entries manually only/mainly
1419 for miscellaneous operations.
1424 icon="STOCK_JUSTIFY_FILL"
1425 action="action_move_journal_line"
1426 id="menu_action_move_journal_line_form"
1427 parent="account.menu_finance_entries"
1428 groups="group_account_user"
1431 <record id="action_move_line_form" model="ir.actions.act_window">
1432 <field name="name">Entries</field>
1433 <field name="type">ir.actions.act_window</field>
1434 <field name="res_model">account.move</field>
1435 <field name="view_type">form</field>
1436 <field name="view_id" ref="view_move_tree"/>
1437 <field name="search_view_id" ref="view_account_move_filter"/>
1441 id="act_account_move_to_account_move_line_open"
1442 name="Journal Items"
1443 context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
1444 res_model="account.move.line"
1445 src_model="account.move"/>
1448 domain="[('reconcile_id', '=', active_id)]"
1449 id="act_account_acount_move_line_reconcile_open"
1450 name="Reconciled entries"
1451 res_model="account.move.line"
1452 src_model="account.move.reconcile"/>
1454 <!-- TODO: Print Journal (and change state), Close Journal (and verify that there is no draft Entry Lines) -->
1455 <record id="view_journal_period_tree" model="ir.ui.view">
1456 <field name="name">account.journal.period.tree</field>
1457 <field name="model">account.journal.period</field>
1458 <field name="arch" type="xml">
1459 <tree colors="blue:state == 'draft';gray:state == 'done';black:state == 'printed'" string="Journals">
1460 <field icon="icon" name="fiscalyear_id"/>
1461 <field name="period_id"/>
1462 <field name="journal_id"/>
1463 <field name="state"/>
1464 <field name="company_id" groups="base.group_multi_company"/>
1468 <record id="action_account_journal_period_tree" model="ir.actions.act_window">
1469 <field name="name">Journals</field>
1470 <field name="res_model">account.journal.period</field>
1471 <field name="view_type">tree</field>
1474 <!-- Account Models -->
1475 <record id="view_model_line_tree" model="ir.ui.view">
1476 <field name="name">account.model.line.tree</field>
1477 <field name="model">account.model.line</field>
1478 <field name="arch" type="xml">
1479 <tree string="Journal Entry Model Line" editable="bottom">
1480 <field name="sequence"/>
1481 <field name="name"/>
1482 <field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation'), ('company_id', '=', parent.company_id)]"/>
1483 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1484 <field name="partner_id"/>
1485 <field name="debit"/>
1486 <field name="credit"/>
1487 <field name="date_maturity"/>
1491 <record id="view_model_line_form" model="ir.ui.view">
1492 <field name="name">account.model.line.form</field>
1493 <field name="model">account.model.line</field>
1494 <field name="arch" type="xml">
1495 <form string="Journal Entry Model Line" version="7.0">
1497 <field colspan="4" name="name"/>
1498 <field name="sequence"/>
1499 <field name="account_id" domain="[('type','<>','view'), ('type','<>','consolidation'), ('company_id', '=', parent.company_id)]"/>
1500 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1501 <field name="partner_id"/>
1502 <field name="debit"/>
1503 <field name="credit"/>
1504 <field name="quantity"/>
1505 <field name="date_maturity"/>
1510 <record id="view_model_form" model="ir.ui.view">
1511 <field name="name">account.model.form</field>
1512 <field name="model">account.model</field>
1513 <field name="arch" type="xml">
1514 <form string="Journal Entry Model" version="7.0">
1516 <field name="name"/>
1517 <field name="journal_id" on_change="onchange_journal_id(journal_id)"/>
1518 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
1521 <field name="lines_id" widget="one2many_list"/>
1522 <separator string="Legend"/>
1523 <field name="legend"/>
1524 <button name="%(action_account_use_model_create_entry)d" string="Create entries" type="action" icon="gtk-execute"/>
1528 <record id="view_model_tree" model="ir.ui.view">
1529 <field name="name">account.model.tree</field>
1530 <field name="model">account.model</field>
1531 <field name="arch" type="xml">
1532 <tree string="Journal Entry Model">
1533 <field name="name"/>
1534 <field name="journal_id"/>
1535 <field name="company_id" groups="base.group_multi_company"/>
1539 <record id="view_model_search" model="ir.ui.view">
1540 <field name="name">account.model.search</field>
1541 <field name="model">account.model</field>
1542 <field name="arch" type="xml">
1543 <search string="Journal Entry Model">
1544 <field name="name" string="Journal Entry Model"/>
1545 <filter string="Sale" icon="terp-camera_test" domain="[('journal_id.type', '=', 'sale')]"/>
1546 <filter string="Purchase" icon="terp-purchase" domain="[('journal_id.type', '=', 'purchase')]"/>
1547 <field name="journal_id"/>
1548 <field name="company_id" groups="base.group_multi_company"/>
1549 <group expand="0" string="Group By...">
1550 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1556 <record id="action_model_form" model="ir.actions.act_window">
1557 <field name="name">Recurring Models</field>
1558 <field name="res_model">account.model</field>
1559 <field name="view_type">form</field>
1560 <field name="view_mode">tree,form</field>
1561 <field name="search_view_id" ref="view_model_search"/>
1564 action="action_model_form" name="Models" id="menu_action_model_form" sequence="5"
1565 parent="account.menu_finance_recurrent_entries"/>
1567 <!-- Payment Terms -->
1568 <record id="view_payment_term_line_tree" model="ir.ui.view">
1569 <field name="name">account.payment.term.line.tree</field>
1570 <field name="model">account.payment.term.line</field>
1571 <field name="arch" type="xml">
1572 <tree string="Payment Term">
1573 <field name="value"/>
1574 <field name="value_amount" attrs="{'readonly':[('value','=','balance')]}"/>
1575 <field name="days"/>
1576 <field name="days2"/>
1580 <record id="view_payment_term_line_form" model="ir.ui.view">
1581 <field name="name">account.payment.term.line.form</field>
1582 <field name="model">account.payment.term.line</field>
1583 <field name="arch" type="xml">
1584 <form string="Payment Term" version="7.0">
1586 <group string="Amount Computation">
1587 <field name="value"/>
1588 <label for="value_amount" string="Amount To Pay" attrs="{'invisible':[('value','=','balance')]}"/>
1589 <div attrs="{'invisible':[('value','=','balance')]}">
1590 <field name="value_amount" class="oe_inline"/>
1591 <label string="%%" class="oe_inline" attrs="{'invisible':['!',('value','=','procent')]}" />
1594 <group string="Due Date Computation">
1595 <field name="days"/>
1596 <field name="days2"/>
1602 <record id="view_payment_term_search" model="ir.ui.view">
1603 <field name="name">account.payment.term.search</field>
1604 <field name="model">account.payment.term</field>
1605 <field name="arch" type="xml">
1606 <search string="Payment Term">
1607 <field name="name" string="Payment Term"/>
1608 <field name="active"/>
1612 <record id="view_payment_term_form" model="ir.ui.view">
1613 <field name="name">account.payment.term.form</field>
1614 <field name="model">account.payment.term</field>
1615 <field name="arch" type="xml">
1616 <form string="Payment Term" version="7.0">
1618 <field name="name"/>
1619 <field name="active"/>
1621 <field name="note" placeholder="Payment term explanation for the customer..."/>
1622 <separator string="Computation"/>
1623 <field name="line_ids"/>
1627 <record id="action_payment_term_form" model="ir.actions.act_window">
1628 <field name="name">Payment Terms</field>
1629 <field name="res_model">account.payment.term</field>
1630 <field name="view_type">form</field>
1631 <field name="view_mode">tree,form</field>
1632 <field name="search_view_id" ref="view_payment_term_search"/>
1634 <menuitem action="action_payment_term_form"
1635 id="menu_action_payment_term_form" parent="menu_configuration_misc"/>
1637 <!-- Account Subscriptions -->
1638 <record id="view_subscription_line_form" model="ir.ui.view">
1639 <field name="name">account.subscription.line.form</field>
1640 <field name="model">account.subscription.line</field>
1641 <field name="arch" type="xml">
1642 <form string="Subscription lines" version="7.0">
1644 <field name="date"/>
1645 <field name="move_id"/>
1650 <record id="view_subscription_line_tree" model="ir.ui.view">
1651 <field name="name">account.subscription.line.tree</field>
1652 <field name="model">account.subscription.line</field>
1653 <field name="arch" type="xml">
1654 <tree string="Subscription lines">
1655 <field name="date"/>
1656 <field name="move_id"/>
1660 <record id="view_subscription_tree" model="ir.ui.view">
1661 <field name="name">account.subscription.tree</field>
1662 <field name="model">account.subscription</field>
1663 <field name="arch" type="xml">
1664 <tree colors="blue:state == 'draft';gray:state == 'done';black:state == 'running'" string="Entry Subscription">
1665 <field name="name"/>
1666 <field name="model_id"/>
1668 <field name="date_start"/>
1669 <field name="state"/>
1673 <record id="view_subscription_search" model="ir.ui.view">
1674 <field name="name">account.subscription.search</field>
1675 <field name="model">account.subscription</field>
1676 <field name="arch" type="xml">
1677 <search string="Entry Subscription">
1678 <field name="name" string="Account Subscription"/>
1679 <field name="date_start"/>
1680 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Subscription"/>
1681 <filter icon="terp-camera_test" string="Running" domain="[('state','=','running')]" help="Running Subscription"/>
1682 <field name="model_id"/>
1683 <group expand="0" string="Group By...">
1684 <filter string="Model" icon="terp-folder-orange" domain="[]" context="{'group_by':'model_id'}"/>
1685 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1690 <record id="view_subscription_form" model="ir.ui.view">
1691 <field name="name">account.subscription.form</field>
1692 <field name="model">account.subscription</field>
1693 <field name="arch" type="xml">
1694 <form string="Recurring" version="7.0">
1696 <button name="state_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert" />
1697 <button name="compute" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific" class="oe_highlight"/>
1698 <button name="remove_line" states="running" string="Remove Lines" type="object" icon="gtk-remove" class="oe_highlight"/>
1699 <field name="state" widget="statusbar" statusbar_visible="draft,running,done"/>
1704 <field name="name"/>
1705 <field name="model_id"/>
1709 <field name="date_start"/>
1710 <field name="period_type"/>
1711 <field name="period_nbr"/>
1712 <field name="period_total"/>
1715 <separator string="Subscription Lines"/>
1716 <field name="lines_id" widget="one2many_list"/>
1721 <record id="action_subscription_form" model="ir.actions.act_window">
1722 <field name="name">Recurring Lines</field>
1723 <field name="res_model">account.subscription</field>
1724 <field name="view_type">form</field>
1725 <field name="view_mode">tree,form</field>
1726 <field name="search_view_id" ref="view_subscription_search"/>
1727 <field name="help" type="html">
1728 <p class="oe_view_nocontent_create">
1729 Click to define a new recurring entry.
1731 A recurring entry occurs on a recurrent basis from a specific
1732 date, i.e. corresponding to the signature of a contract or an
1733 agreement with a customer or a supplier. You can create such
1734 entries to automate the postings in the system.
1739 name="Define Recurring Entries" action="action_subscription_form"
1740 id="menu_action_subscription_form" sequence="1"
1741 parent="account.menu_finance_recurrent_entries"/>
1743 <record id="action_subscription_form_running" model="ir.actions.act_window">
1744 <field name="name">Running Subscriptions</field>
1745 <field name="res_model">account.subscription</field>
1746 <field name="view_type">form</field>
1747 <field name="view_mode">tree,form</field>
1748 <field name="domain">[('state','=','running')]</field>
1749 <field name="filter" eval="True"/>
1752 <record id="action_subscription_form_new" model="ir.actions.act_window">
1753 <field name="name">New Subscription</field>
1754 <field name="res_model">account.subscription</field>
1755 <field name="view_type">form</field>
1756 <field name="view_mode">form,tree</field>
1757 <field name="view_id" ref="view_subscription_form"/>
1760 <record id="view_subscription_line_form_complete" model="ir.ui.view">
1761 <field name="name">account.subscription.line.form</field>
1762 <field name="model">account.subscription.line</field>
1763 <field eval="20" name="priority"/>
1764 <field name="arch" type="xml">
1765 <form string="Subscription lines" version="7.0">
1767 <field name="subscription_id"/>
1768 <field name="date"/>
1769 <field name="move_id"/>
1775 <!-- res.partner links -->
1777 context="{'search_default_unreconciled':True, 'search_default_partner_id':[active_id], 'default_partner_id': active_id}"
1778 domain="[('account_id.reconcile', '=', True),('account_id.type', 'in', ['receivable', 'payable'])]"
1779 id="act_account_partner_account_move_all"
1780 name="Receivables & Payables"
1781 res_model="account.move.line"
1782 src_model="res.partner"/>
1785 context="{'search_default_partner_id':[active_id], 'default_partner_id': active_id}"
1786 id="act_account_partner_account_move"
1787 name="Journal Items"
1788 res_model="account.move.line"
1789 src_model="res.partner"
1790 groups="account.group_account_user"/>
1792 <!-- Account Templates -->
1794 id="account_template_folder"
1796 parent="account_account_menu"
1797 groups="account.group_account_manager"/>
1799 id="account_template_taxes"
1801 parent="account_template_folder"
1804 id="account_template_accounts"
1806 parent="account_template_folder"
1809 <record id="view_account_template_form" model="ir.ui.view">
1810 <field name="name">account.account.template.form</field>
1811 <field name="model">account.account.template</field>
1812 <field name="arch" type="xml">
1813 <form string="Account Template" version="7.0">
1815 <field name="name"/>
1816 <field name="code"/>
1818 <field name="parent_id"/>
1819 <field name="shortcut"/>
1820 <field name="type"/>
1821 <field name="user_type"/>
1823 <field name="currency_id" groups="base.group_multi_currency"/>
1824 <field name="reconcile"/>
1825 <field name="chart_template_id"/>
1827 <separator string="Default Taxes"/>
1828 <field name="tax_ids"/>
1829 <separator string="Notes"/>
1830 <field name="note" placeholder="Internal notes..."/>
1834 <record id="view_account_template_tree" model="ir.ui.view">
1835 <field name="name">account.account.template.tree</field>
1836 <field name="model">account.account.template</field>
1837 <field name="arch" type="xml">
1838 <tree string="Account Template">
1839 <field name="code"/>
1840 <field name="name"/>
1841 <field name="type" invisible="1"/>
1842 <field name="user_type" invisible="1"/>
1846 <record id="view_account_template_search" model="ir.ui.view">
1847 <field name="name">account.account.template.search</field>
1848 <field name="model">account.account.template</field>
1849 <field name="arch" type="xml">
1850 <search string="Search Account Templates">
1851 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account Template"/>
1852 <filter icon="terp-sale" string="Receivale Accounts" domain="[('type','=','receivable')]"/>
1853 <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
1854 <field name="parent_id"/>
1855 <field name="user_type"/>
1856 <field name="type"/>
1857 <group expand="0" string="Group By...">
1858 <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
1859 <filter string="Account Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'user_type'}"/>
1864 <record id="action_account_template_form" model="ir.actions.act_window">
1865 <field name="name">Account Templates</field>
1866 <field name="res_model">account.account.template</field>
1867 <field name="view_type">form</field>
1868 <field name="view_mode">tree,form</field>
1869 <field name="search_view_id" ref="view_account_template_search"/>
1871 <menuitem action="action_account_template_form" id="menu_action_account_template_form" parent="account_template_accounts"/>
1873 <record id="view_account_addtmpl_wizard_form" model="ir.ui.view">
1874 <field name="name">Create Account</field>
1875 <field name="model">account.addtmpl.wizard</field>
1876 <field name="arch" type="xml">
1877 <form string="Create Account" version="7.0">
1879 <button icon="gtk-ok" name="action_create" string="Add" type="object" class="oe_highlight" />
1881 <separator col="4" colspan="4" string="Create an Account Based on this Template"/>
1882 <field name="cparent_id"/>
1887 <act_window domain="[]" id="action_account_addtmpl_wizard_form"
1888 name="Create Account"
1890 res_model="account.addtmpl.wizard"
1891 context="{'tmpl_ids': active_id}"
1892 src_model="account.account.template"
1893 view_type="form" view_mode="form"/>
1896 <!-- Chart of Accounts Templates -->
1897 <record id="view_account_chart_template_form" model="ir.ui.view">
1898 <field name="name">account.chart.template.form</field>
1899 <field name="model">account.chart.template</field>
1900 <field name="arch" type="xml">
1901 <form string="Chart of Accounts Template" version="7.0">
1903 <field name="name"/>
1904 <field name="account_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
1905 <field name="bank_account_view_id" attrs="{'required': [('parent_id', '=', False)]}"/>
1906 <field name="tax_code_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
1907 <field name="parent_id" />
1908 <!--<field name="code_digits" />-->
1909 <field name="visible" />
1910 <field name="complete_tax_set" />
1912 <separator string="Default Taxes" colspan="4"/>
1913 <field name="tax_template_ids" colspan="4" nolabel="1"/>
1914 <separator string="Properties" colspan="4"/>
1916 <field name="property_account_receivable" domain="[('id', 'child_of', [account_root_id])]"/>
1917 <field name="property_account_payable" domain="[('id', 'child_of', [account_root_id])]"/>
1918 <field name="property_account_expense_categ" domain="[('id', 'child_of', [account_root_id])]"/>
1919 <field name="property_account_income_categ" domain="[('id', 'child_of', [account_root_id])]" />
1920 <field name="property_account_expense" domain="[('id', 'child_of', [account_root_id])]"/>
1921 <field name="property_account_income" domain="[('id', 'child_of', [account_root_id])]"/>
1922 <field name="property_account_income_opening" domain="[('id', 'child_of', [account_root_id])]"/>
1923 <field name="property_account_expense_opening" domain="[('id', 'child_of', [account_root_id])]"/>
1928 <record id="view_account_chart_template_seacrh" model="ir.ui.view">
1929 <field name="name">account.chart.template.search</field>
1930 <field name="model">account.chart.template</field>
1931 <field name="arch" type="xml">
1932 <search string="Search Chart of Account Templates">
1933 <field name="name" string="Account Template"/>
1934 <field name="account_root_id"/>
1935 <field name="bank_account_view_id"/>
1936 <group expand="0" string="Group By...">
1937 <filter string="Root Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'account_root_id'}"/>
1938 <filter string="Bank Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'bank_account_view_id'}"/>
1939 <filter string="Receivable Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_receivable'}"/>
1940 <filter string="Payable Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_payable'}"/>
1941 <filter string="Income Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_income_categ'}"/>
1942 <filter string="Expense Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_expense_categ'}"/>
1947 <record id="view_account_chart_template_tree" model="ir.ui.view">
1948 <field name="name">account.chart.template.tree</field>
1949 <field name="model">account.chart.template</field>
1950 <field name="arch" type="xml">
1951 <tree string="Chart of Accounts Template">
1952 <field name="name"/>
1953 <field name="account_root_id"/>
1954 <field name="tax_code_root_id"/>
1955 <field name="bank_account_view_id"/>
1956 <field name="property_account_receivable" invisible="1"/>
1957 <field name="property_account_payable" invisible="1"/>
1958 <field name="property_account_expense_categ" invisible="1"/>
1959 <field name="property_account_income_categ" invisible="1"/>
1963 <record id="action_account_chart_template_form" model="ir.actions.act_window">
1964 <field name="name">Chart of Accounts Templates</field>
1965 <field name="res_model">account.chart.template</field>
1966 <field name="view_type">form</field>
1967 <field name="view_mode">tree,form</field>
1969 <menuitem action="action_account_chart_template_form" id="menu_action_account_chart_template_form" parent="account_template_accounts" sequence="1"/>
1971 <!-- Account Tax Templates -->
1972 <record id="view_account_tax_template_form" model="ir.ui.view">
1973 <field name="name">account.tax.template.form</field>
1974 <field name="model">account.tax.template</field>
1975 <field name="arch" type="xml">
1976 <form string="Account Tax Template" version="7.0">
1978 <field name="name"/>
1979 <field name="description"/>
1980 <field name="chart_template_id"/>
1981 <field name="type"/>
1982 <field name="type_tax_use"/>
1983 <field name="price_include"/>
1986 <page string="Tax Definition">
1988 <field name="applicable_type"/>
1989 <field name="amount" attrs="{'readonly':[('type','=','none'),('type','=','code')]}"/>
1990 <field name="include_base_amount"/>
1991 <field name="domain"/>
1993 <field name="account_collected_id"/>
1994 <label colspan="2" string="Keep empty to use the income account"/>
1995 <field name="account_paid_id"/>
1996 <label colspan="2" string="Keep empty to use the expense account"/>
1997 <field name="child_depend"/>
1998 <field name="sequence"/>
2001 <page string="Tax Declaration">
2003 <separator colspan="4" string="Invoices"/>
2004 <field name="base_code_id"/>
2005 <field name="base_sign"/>
2006 <field name="tax_code_id"/>
2007 <field name="tax_sign"/>
2009 <separator colspan="4" string="Credit Notes"/>
2010 <field name="ref_base_code_id"/>
2011 <field name="ref_base_sign"/>
2012 <field name="ref_tax_code_id"/>
2013 <field name="ref_tax_sign"/>
2016 <page string="Special Computation">
2017 <separator string="Compute Code (if type=code)"/>
2018 <field name="python_compute" attrs="{'readonly':[('type','!=','code')]}"/>
2019 <separator string="Compute Code for Taxes Included Prices"/>
2020 <field name="python_compute_inv"/>
2021 <separator string="Applicable Code (if type=code)"/>
2022 <field name="python_applicable" attrs="{'readonly':[('applicable_type','=','true')]}"/>
2028 <record id="view_account_tax_template_tree" model="ir.ui.view">
2029 <field name="name">account.tax.template.tree</field>
2030 <field name="model">account.tax.template</field>
2031 <field name="arch" type="xml">
2032 <tree string="Account Tax Template">
2033 <field name="name" />
2034 <field name="description"/>
2038 <record id="view_account_tax_template_search" model="ir.ui.view">
2039 <field name="name">account.tax.template.search</field>
2040 <field name="model">account.tax.template</field>
2041 <field name="arch" type="xml">
2042 <search string="Search Tax Templates">
2043 <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax Template"/>
2044 <filter icon="terp-sale" string="Sale" domain="[('type_tax_use','=','sale')]" help="Taxes used in Sales"/>
2045 <filter icon="terp-purchase" string="Purchase" domain="[('type_tax_use','=','purchase')]" help="Taxes used in Purchases"/>
2046 <field name="chart_template_id"/>
2050 <record id="action_account_tax_template_form" model="ir.actions.act_window">
2051 <field name="name">Tax Templates</field>
2052 <field name="res_model">account.tax.template</field>
2053 <field name="view_type">form</field>
2054 <field name="view_mode">tree,form</field>
2055 <field name="search_view_id" ref="view_account_tax_template_search"/>
2057 <menuitem action="action_account_tax_template_form" id="menu_action_account_tax_template_form" parent="account_template_taxes" sequence="13"/>
2059 <!-- Account Tax Code Templates -->
2060 <record id="view_tax_code_template_tree" model="ir.ui.view">
2061 <field name="name">account.tax.code.template.tree</field>
2062 <field name="model">account.tax.code.template</field>
2063 <field name="field_parent">child_ids</field>
2064 <field name="arch" type="xml">
2065 <tree string="Account Tax Code Template" toolbar="1">
2066 <field name="name"/>
2067 <field name="code"/>
2068 <field name="parent_id" invisible="1"/>
2072 <record id="view_tax_code_template_search" model="ir.ui.view">
2073 <field name="name">account.tax.code.template.search</field>
2074 <field name="model">account.tax.code.template</field>
2075 <field name="arch" type="xml">
2076 <search string="Search tax template">
2077 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Tax Template"/>
2078 <field name="parent_id"/>
2079 <group expand="0" string="Group By...">
2080 <filter string="Parent Code" icon="terp-folder-orange" domain="[]" context="{'group_by':'parent_id'}"/>
2085 <record id="view_tax_code_template_form" model="ir.ui.view">
2086 <field name="name">account.tax.code.template.form</field>
2087 <field name="model">account.tax.code.template</field>
2088 <field name="arch" type="xml">
2089 <form string="Account Tax Code Template" version="7.0">
2091 <field name="name"/>
2092 <field name="code"/>
2093 <field name="parent_id"/>
2094 <field name="sign"/>
2096 <separator string="Description"/>
2097 <field name="info"/>
2101 <record id="action_account_tax_code_template_form" model="ir.actions.act_window">
2102 <field name="name">Tax Code Templates</field>
2103 <field name="res_model">account.tax.code.template</field>
2104 <field name="view_type">form</field>
2105 <field name="view_mode">tree,form</field>
2106 <field name="search_view_id" ref="view_tax_code_template_search"/>
2108 <menuitem action="action_account_tax_code_template_form" id="menu_action_account_tax_code_template_form" parent="account_template_taxes" sequence="14"/>
2111 <!-- Wizard for Multi Charts of Accounts -->
2112 <record id="view_wizard_multi_chart" model="ir.ui.view">
2113 <field name="name">Set Your Accounting Options</field>
2114 <field name="model">wizard.multi.charts.accounts</field>
2115 <field name="inherit_id" ref="base.res_config_view_base"/>
2116 <field name="arch" type="xml">
2117 <form position="attributes" version="7.0">
2118 <attribute name="string">Accounting Application Configuration</attribute>
2120 <group string="res_config_contents" position="replace">
2121 <field name="only_one_chart_template" invisible="1"/>
2122 <field name="complete_tax_set" invisible="1"/>
2124 <group attrs="{'invisible': [('only_one_chart_template','=',True)]}">
2125 <field name="chart_template_id" widget="selection" on_change="onchange_chart_template_id(chart_template_id)" domain="[('visible','=', True)]"/>
2128 <field name="company_id" widget="selection"/> <!-- we assume that this wizard will be run only by administrators and as this field may cause problem if hidden (because of the default company of the user removed from the selection because already configured), we simply choosed to remove the group "multi company" of it -->
2129 <field name="currency_id" class="oe_inline"/>
2130 <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'))]"/>
2131 <label for="sale_tax_rate" string="Sale Tax" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
2132 <div attrs="{'invisible': [('complete_tax_set', '=', True)]}">
2133 <field name="sale_tax_rate" class="oe_inline" on_change="onchange_tax_rate(sale_tax_rate)"/> %%
2135 <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'))]"/>
2136 <label for="purchase_tax_rate" string="Purchase Tax" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
2137 <div attrs="{'invisible': [('complete_tax_set', '=', True)]}">
2138 <field name="purchase_tax_rate" class="oe_inline"/> %%
2141 <group groups="account.group_account_user">
2142 <field name="code_digits"/>
2148 <record id="action_wizard_multi_chart" model="ir.actions.act_window">
2149 <field name="name">Set Your Accounting Options</field>
2150 <field name="type">ir.actions.act_window</field>
2151 <field name="res_model">wizard.multi.charts.accounts</field>
2152 <field name="view_id" ref="view_wizard_multi_chart"/>
2153 <field name="view_type">form</field>
2154 <field name="view_mode">form</field>
2155 <field name="target">new</field>
2158 <record id="account_account_graph" model="ir.ui.view">
2159 <field name="name">account.account.graph</field>
2160 <field name="model">account.account</field>
2161 <field name="arch" type="xml">
2162 <graph string="Account Statistics" type="bar">
2163 <field name="name"/>
2164 <field name="balance" operator="+"/>
2169 <!-- Fiscal Position Templates -->
2171 <record id="view_account_position_template_search" model="ir.ui.view">
2172 <field name="name">account.fiscal.position.template.search</field>
2173 <field name="model">account.fiscal.position.template</field>
2174 <field name="arch" type="xml">
2175 <search string="Fiscal Position">
2176 <field name="name" string="Fiscal Position Template"/>
2181 <record id="view_account_position_template_form" model="ir.ui.view">
2182 <field name="name">account.fiscal.position.template.form</field>
2183 <field name="model">account.fiscal.position.template</field>
2184 <field name="arch" type="xml">
2185 <form string="Fiscal Position Template" version="7.0">
2187 <field name="name"/>
2188 <field name="chart_template_id"/>
2190 <field name="tax_ids">
2191 <tree string="Taxes Mapping" editable="bottom">
2192 <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2193 <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2195 <form string="Taxes Mapping" version="7.0">
2196 <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2197 <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2200 <field name="account_ids">
2201 <tree string="Accounts Mapping" editable="bottom">
2202 <field name="account_src_id"/>
2203 <field name="account_dest_id"/>
2205 <form string="Accounts Mapping" version="7.0">
2206 <field name="account_src_id"/>
2207 <field name="account_dest_id"/>
2213 <record id="view_account_position_template_tree" model="ir.ui.view">
2214 <field name="name">account.fiscal.position.template.tree</field>
2215 <field name="model">account.fiscal.position.template</field>
2216 <field name="arch" type="xml">
2217 <tree string="Fiscal Position">
2218 <field name="name"/>
2223 <record id="action_account_fiscal_position_template_form" model="ir.actions.act_window">
2224 <field name="name">Fiscal Position Templates</field>
2225 <field name="res_model">account.fiscal.position.template</field>
2226 <field name="view_type">form</field>
2227 <field name="view_mode">tree,form</field>
2228 <field name="search_view_id" ref="view_account_position_template_search"/>
2232 action="action_account_fiscal_position_template_form"
2233 id="menu_action_account_fiscal_position_form_template"
2234 parent="account_template_taxes" sequence="20"/>
2236 <!-- Cash Statement -->
2237 <record id="view_cash_statement_tree" model="ir.ui.view">
2238 <field name="name">account.bank.statement.tree</field>
2239 <field name="model">account.bank.statement</field>
2240 <field name="arch" type="xml">
2241 <tree colors="red:balance_end_real!=balance_end;blue:state=='draft' and (balance_end_real==balance_end);black:state == 'open'" string="Statement">
2242 <field name="name"/>
2243 <field name="date"/>
2244 <field name="period_id"/>
2245 <field name="journal_id"/>
2246 <field name="balance_start"/>
2247 <field name="balance_end_real"/>
2248 <field name="balance_end" invisible="1" />
2249 <field name="state"/>
2253 <record id="view_bank_statement_form2" model="ir.ui.view">
2254 <field name="name">account.bank.statement.form</field>
2255 <field name="model">account.bank.statement</field>
2256 <field name="priority">2</field>
2257 <field name="arch" type="xml">
2258 <form string="Statement" version="7.0">
2260 <button name="button_confirm_cash" states="open" string="Close CashBox" type="object" class="oe_highlight"/>
2261 <button name="button_open" states="draft" string="Open CashBox" type="object" class="oe_highlight"/>
2262 <button name="button_cancel" states="confirm,open" string="Cancel CashBox" type="object"/>
2263 <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,confirm"/>
2265 <sheet string="Statement">
2266 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
2267 <h1><field name="name" class="oe_inline" attrs="{'invisible':[('name','=','/')]}"/></h1>
2270 <field name="journal_id" on_change="onchange_journal_id(journal_id)" widget="selection" domain="[('type', '=', 'cash')]" />
2271 <field name="user_id" readonly="1" string="Responsible"/>
2272 <field name="total_entry_encoding"/>
2273 <field name='company_id' widget="selection" groups="base.group_multi_company" />
2276 <field name="date" attrs="{'readonly':[('state','!=','draft')]}" on_change="onchange_date(date, company_id)"/>
2277 <field name="closing_date" readonly="1"/>
2278 <field name="period_id" class="oe_inline"/>
2279 <field name="currency" invisible="1"/>
2283 <page string="Cash Transactions" attrs="{'invisible': [('state','=','draft')]}">
2284 <field name="line_ids" context="{'date':date}">
2285 <tree editable="bottom" string="Statement lines">
2286 <field name="sequence" invisible="1"/>
2287 <field name="date"/>
2288 <field name="name"/>
2290 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
2291 <field name="type" on_change="onchange_type(partner_id, type)"/>
2292 <field domain="[('journal_id','=',parent.journal_id), ('company_id', '=', parent.company_id)]" name="account_id"/>
2293 <field name="analytic_account_id" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]" groups="analytic.group_analytic_accounting" />
2294 <field name="amount"/>
2296 <form string="Statement lines" version="7.0">
2298 <field name="date"/>
2299 <field name="name"/>
2301 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
2302 <field name="type" on_change="onchange_type(partner_id, type)"/>
2303 <field domain="[('journal_id', '=', parent.journal_id), ('type', '<>', 'view'), ('company_id', '=', parent.company_id)]" name="account_id"/>
2304 <field name="analytic_account_id" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]" groups="analytic.group_analytic_accounting" />
2305 <field name="amount"/>
2306 <field name="sequence"/>
2308 <separator string="Notes"/>
2309 <field name="note"/>
2313 <page string="Cash Control">
2314 <group col="2" expand="1">
2315 <field name="opening_details_ids" nolabel="1" colspan="4" attrs="{'invisible' : [('state', '!=', 'draft')]}">
2316 <tree string="Opening Cashbox Lines" editable="bottom">
2317 <field name="pieces"/>
2318 <field name="number_opening" string="Opening Unit Numbers" on_change="on_change_sub_opening(pieces, number_opening, parent.balance_end)"/>
2319 <field name="subtotal_opening" string="Opening Subtotal"/>
2322 <field name="closing_details_ids" nolabel="1" colspan="4" attrs="{'invisible' : [('state', '=', 'draft')]}">
2323 <tree string="Closing Cashbox Lines" editable="bottom">
2324 <field name="pieces" readonly="1" />
2325 <field name="number_opening" string="Opening Unit Numbers" readonly="1" />
2326 <field name="subtotal_opening" string="Opening Subtotal" readonly="1" />
2328 <field name="number_closing" string="Closing Unit Numbers" on_change="on_change_sub_closing(pieces, number_closing, parent.balance_end)"/>
2329 <field name="subtotal_closing" string="Closing Subtotal"/>
2334 <page string="Journal Entries" attrs="{'invisible': [('state','!=','confirm')]}">
2335 <field name="move_line_ids" string="Journal Entries"/>
2338 <group col="6" colspan="4">
2339 <group col="2" colspan="2">
2340 <separator string="Opening Balance" colspan="4"/>
2341 <field name="balance_start" readonly="1" string="Opening Cash Control" widget="monetary" options="{'currency_field': 'currency_id'}"/>
2342 <field name="last_closing_balance" readonly="1" string="Last Closing Balance" widget="monetary" options="{'currency_field': 'currency_id'}"/>
2343 <field name="total_entry_encoding" widget="monetary" options="{'currency_field': 'currency_id'}"/>
2345 <group string="Closing Balance">
2346 <field name="balance_end" widget="monetary" options="{'currency_field': 'currency_id'}"/>
2353 <record id="account_cash_statement_graph" model="ir.ui.view">
2354 <field name="name">account.bank.statement.graph</field>
2355 <field name="model">account.bank.statement</field>
2356 <field name="arch" type="xml">
2357 <graph string="Account Statistics" type="bar">
2358 <field name="date"/>
2359 <field name="balance_start" operator="+"/>
2360 <field name="balance_end" operator="+"/>
2364 <record id="action_view_bank_statement_tree" model="ir.actions.act_window">
2365 <field name="name">Cash Registers</field>
2366 <field name="type">ir.actions.act_window</field>
2367 <field name="res_model">account.bank.statement</field>
2368 <field name="view_type">form</field>
2369 <field name="view_mode">tree,form,graph</field>
2370 <field name="view_id" ref="view_cash_statement_tree"/>
2371 <field name="search_view_id" ref="view_account_bank_statement_filter"/>
2372 <field name="domain">[('journal_id.type', '=', 'cash')]</field>
2373 <field name="context">{'journal_type':'cash'}</field>
2374 <field name="help" type="html">
2375 <p class="oe_view_nocontent_create">
2376 Click to create a new cash log.
2378 A Cash Register allows you to manage cash entries in your cash
2379 journals. This feature provides an easy way to follow up cash
2380 payments on a daily basis. You can enter the coins that are in
2381 your cash box, and then post entries when money comes in or
2382 goes out of the cash box.
2387 <record model="ir.actions.act_window.view" id="act_cash_statement1_all">
2388 <field name="sequence" eval="1"/>
2389 <field name="view_mode">tree</field>
2390 <field name="view_id" ref="view_cash_statement_tree"/>
2391 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2393 <record model="ir.actions.act_window.view" id="act_cash_statement2_all">
2394 <field name="sequence" eval="1"/>
2395 <field name="view_mode">form</field>
2396 <field name="view_id" ref="view_bank_statement_form2"/>
2397 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2399 <record model="ir.actions.act_window.view" id="act_cash_statement3_all">
2400 <field name="sequence" eval="1"/>
2401 <field name="view_mode">graph</field>
2402 <field name="view_id" ref="account_cash_statement_graph"/>
2403 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2405 <menuitem action="action_view_bank_statement_tree" id="journal_cash_move_lines"
2406 parent="menu_finance_bank_and_cash"/>
2408 <menuitem id="menu_account_customer" name="Customers"
2409 parent="menu_finance_receivables"
2410 action="base.action_partner_customer_form" sequence="100"/>
2412 <menuitem id="menu_account_supplier" name="Suppliers"
2413 parent="menu_finance_payables"
2414 action="base.action_partner_supplier_form" sequence="100"/>
2416 <!-- Account Reports -->
2417 <record id="view_account_financial_report_form" model="ir.ui.view">
2418 <field name="name">account.financial.report.form</field>
2419 <field name="model">account.financial.report</field>
2420 <field name="arch" type="xml">
2421 <form string="Account Report" version="7.0">
2423 <field name="name"/>
2424 <field name="parent_id"/>
2425 <field name="sequence"/>
2426 <field name="type"/>
2427 <field name="sign"/>
2428 <field name="style_overwrite"/>
2431 <page string="Report">
2433 <field name="display_detail" attrs="{'invisible': [('type','not in',['accounts','account_type'])]}"/>
2434 <field name="account_report_id" attrs="{'invisible': [('type', '!=', 'account_report')]}"/>
2436 <field name="account_ids" attrs="{'invisible': [('type', '!=', 'accounts')]}"/>
2437 <field name="account_type_ids" attrs="{'invisible': [('type', '!=', 'account_type')]}"/>
2443 <record id="view_account_financial_report_tree" model="ir.ui.view">
2444 <field name="name">account.financial.report.tree</field>
2445 <field name="model">account.financial.report</field>
2446 <field name="arch" type="xml">
2447 <tree string="Account Report">
2448 <field name="name"/>
2449 <field name="parent_id" invisible="1"/>
2450 <field name="type"/>
2451 <field name="account_report_id"/>
2455 <record id="view_account_financial_report_search" model="ir.ui.view">
2456 <field name="name">account.financial.report.search</field>
2457 <field name="model">account.financial.report</field>
2458 <field name="arch" type="xml">
2459 <search string="Account Report">
2460 <field name="name" string="Account Report"/>
2461 <field name="type"/>
2462 <field name="account_report_id"/>
2463 <group expand="0" string="Group By...">
2464 <filter string="Parent Report" icon="terp-folder-orange" domain="" context="{'group_by':'parent_id'}"/>
2465 <filter string="Report Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
2470 <record id="action_account_financial_report_tree" model="ir.actions.act_window">
2471 <field name="name">Financial Reports</field>
2472 <field name="type">ir.actions.act_window</field>
2473 <field name="res_model">account.financial.report</field>
2474 <field name="view_type">form</field>
2475 <field name="view_mode">tree,form</field>
2476 <field name="search_view_id" ref="view_account_financial_report_search"/>
2477 <field name="view_id" ref="view_account_financial_report_tree"/>
2479 <menuitem id="menu_account_financial_reports_tree" name="Account Reports" parent="menu_account_reports" action="action_account_financial_report_tree"/>
2481 <record id="view_account_report_tree_hierarchy" model="ir.ui.view">
2482 <field name="name">account.report.hierarchy</field>
2483 <field name="model">account.financial.report</field>
2484 <field name="field_parent">children_ids</field>
2485 <field name="arch" type="xml">
2486 <tree string="Account Reports Hierarchy">
2487 <field name="name"/>
2488 <field name="type"/>
2489 <field name="parent_id" invisible="1"/>
2490 <field name="account_report_id"/>
2494 <record id="action_account_report_tree_hierarchy" model="ir.actions.act_window">
2495 <field name="name">Financial Reports Hierarchy</field>
2496 <field name="res_model">account.financial.report</field>
2497 <field name="view_type">tree</field>
2498 <field name="view_id" ref="view_account_report_tree_hierarchy"/>
2499 <field name="domain">[('parent_id','=',False)]</field>
2501 <menuitem id="menu_account_report_tree_hierarchy" name="Account Reports Hierarchy"
2502 parent="menu_account_reports" action="action_account_report_tree_hierarchy"/>