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="Set to Draft" 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" groups="base.group_no_one"/>
167 <record id="view_account_form" model="ir.ui.view">
168 <field name="name">account.account.form</field>
169 <field name="model">account.account</field>
170 <field name="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 <!-- Account Journal -->
351 <record id="view_account_journal_tree" model="ir.ui.view">
352 <field name="name">account.journal.tree</field>
353 <field name="model">account.journal</field>
354 <field name="arch" type="xml">
355 <tree string="Account Journal">
359 <field name="user_id"/>
360 <field name="company_id" groups="base.group_multi_company"/>
364 <record id="view_account_journal_search" model="ir.ui.view">
365 <field name="name">account.journal.search</field>
366 <field name="model">account.journal</field>
367 <field name="arch" type="xml">
368 <search string="Search Account Journal">
369 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Journal"/>
370 <filter domain="['|', ('type', '=', 'sale'), ('type', '=', 'sale_refund')]" string="Sale" icon="terp-camera_test"/>
371 <filter domain="['|', ('type', '=', 'purchase'), ('type', '=', 'purchase_refund')]" string="Purchase" icon="terp-purchase"/>
372 <filter domain="['|', ('type', '=', 'cash'), ('type', '=', 'bank')]" string="Liquidity" icon="terp-dolar"/>
373 <filter domain="['|', ('type', '=', 'general'), ('type', '=', 'situation')]" string="Others" icon="terp-stock"/>
374 <field name="user_id"/>
375 <group expand="0" string="Group By...">
376 <filter string="User" context="{'group_by':'user_id'}" icon="terp-personal"/>
377 <filter string="Type" context="{'group_by':'type'}" icon="terp-stock_symbol-selection"/>
382 <record id="view_account_journal_form" model="ir.ui.view">
383 <field name="name">account.journal.form</field>
384 <field name="model">account.journal</field>
385 <field name="arch" type="xml">
386 <form string="Account Journal" version="7.0">
387 <div class="oe_title">
388 <label for="name" class="oe_edit_only"/>
389 <h1><field name="name"/></h1>
397 <field name="default_debit_account_id" attrs="{'required':[('type','in', ('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
398 <field name="default_credit_account_id" attrs="{'required':[('type','in',('cash', 'bank'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
399 <field name="currency" groups="base.group_multi_currency"/>
400 <field name="company_id" groups="base.group_multi_company"/>
404 <page string="Advanced Settings">
407 <field name="user_id"/>
408 <field name="sequence_id" required="0"/>
411 <field name="centralisation"/>
412 <field name="entry_posted"/>
413 <field name="allow_date"/>
414 <field name="group_invoice_lines"/>
418 <page string="Entry Controls">
419 <separator colspan="4" string="Accounts Type Allowed (empty for no control)"/>
420 <field colspan="4" name="type_control_ids" nolabel="1"/>
421 <separator colspan="4" string="Accounts Allowed (empty for no control)"/>
422 <field colspan="4" name="account_control_ids" nolabel="1"/>
424 <page string="Cash Registers">
426 <group string="Accounts">
427 <field name="profit_account_id" domain="[('type','!=','view')]"/>
428 <field name="loss_account_id" domain="[('type','!=','view')]"/>
429 <field name="internal_account_id"/>
431 <group string="Miscellaneous">
432 <field name="with_last_closing_balance"/>
433 <field name="cash_control"/>
436 <separator string="Available Coins" colspan="4" attrs="{'invisible' : [('cash_control', '=', False)] }"/>
437 <field name="cashbox_line_ids" nolabel="1" string="Unit Of Currency Definition" colspan="4" attrs="{'invisible' : [('cash_control', '=', False)]}">
438 <tree string="CashBox Lines" editable="bottom">
439 <field name="pieces" />
447 <record id="action_account_journal_form" model="ir.actions.act_window">
448 <field name="name">Journals</field>
449 <field name="res_model">account.journal</field>
450 <field name="view_type">form</field>
451 <field name="view_mode">tree,form</field>
452 <field name="help" type="html">
453 <p class="oe_view_nocontent_create">
454 Click to add a journal.
456 A journal is used to record transactions of all accounting data
457 related to the day-to-day business.
459 A typical company may use one journal per payment method (cash,
460 bank accounts, checks), one purchase journal, one sale journal
461 and one for miscellaneous information.
465 <menuitem action="action_account_journal_form" id="menu_action_account_journal_form" parent="menu_journals"/>
468 id="act_account_journal_2_account_bank_statement"
469 name="Bank statements"
470 context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
471 res_model="account.bank.statement"
472 src_model="account.journal"/>
475 id="act_account_journal_2_account_move_line"
477 context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
478 res_model="account.move.line"
479 src_model="account.journal"/>
481 <!-- Bank statement -->
482 <record id="view_account_bank_statement_filter" model="ir.ui.view">
483 <field name="name">account.cash.statement.select</field>
484 <field name="model">account.bank.statement</field>
485 <field name="arch" type="xml">
486 <search string="Search Bank Statements">
487 <field name="name" string="Bank Statement"/>
489 <filter string="Draft" name="state_draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
490 <filter string="Open" name="state_open" domain="[('state','=','open')]" icon="terp-check"/>
491 <filter string="Confirmed" name="state_confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
492 <field name="journal_id" domain="[('type', '=', 'cash')]" />
493 <group expand="0" string="Group By...">
494 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
495 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
496 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
502 <record id="view_bank_statement_tree" model="ir.ui.view">
503 <field name="name">account.bank.statement.tree</field>
504 <field name="model">account.bank.statement</field>
505 <field name="arch" type="xml">
506 <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">
509 <field name="period_id"/>
510 <field name="journal_id"/>
511 <field name="balance_start"/>
512 <field name="balance_end_real"/>
513 <field name="balance_end" invisible="1"/>
514 <field name="state"/>
518 <record id="view_bank_statement_search" model="ir.ui.view">
519 <field name="name">account.bank.statement.search</field>
520 <field name="model">account.bank.statement</field>
521 <field name="arch" type="xml">
522 <search string="Search Bank Statements">
523 <field name="name" string="Bank Statement"/>
525 <filter string="Draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
526 <filter string="Confirmed" domain="[('state','=','confirm')]" icon="terp-camera_test"/>
527 <field name="period_id"/>
528 <field name="journal_id" domain="[('type', '=', 'bank')]" />
529 <group expand="0" string="Group By...">
530 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
531 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
532 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
537 <record id="view_bank_statement_form" model="ir.ui.view">
538 <field name="name">account.bank.statement.form</field>
539 <field name="model">account.bank.statement</field>
540 <field name="arch" type="xml">
541 <form string="Bank Statement" version="7.0">
543 <button name="button_confirm_bank" states="draft" string="Confirm" type="object" class="oe_highlight"/>
544 <button name="button_dummy" states="draft" string="Compute" type="object" class="oe_highlight"/>
545 <button name="button_cancel" states="confirm" string="Cancel" type="object"/>
546 <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/>
549 <div class="oe_right oe_button_box" name="import_buttons">
550 <!-- Put here related buttons -->
552 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
554 <field name="name" attrs="{'invisible':[('name','=','/')]}"/>
558 <field name="journal_id" domain="[('type', '=', 'bank')]" on_change="onchange_journal_id(journal_id)" widget="selection"/>
559 <label for="date" string="Date / Period"/>
561 <field name="date" on_change="onchange_date(date, company_id)" class="oe_inline"/>
562 <field name="period_id" class="oe_inline"/>
564 <field name='company_id' widget="selection" groups="base.group_multi_company" />
565 <field name="currency" invisible="1"/>
567 <field name="balance_start" widget="monetary" options='{"currency_field" : "currency"}'/>
568 <field name="balance_end_real" widget="monetary" options='{"currency_field" : "currency"}'/>
573 <page string="Transactions" name="statement_line_ids">
574 <field name="line_ids" context="{'date':date}">
575 <tree editable="bottom" string="Statement lines">
576 <field name="sequence" readonly="1" invisible="1"/>
580 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
581 <field name="type" on_change="onchange_type(partner_id, type)"/>
582 <field name="account_id" options='{"no_open":True}' domain="[('journal_id','=',parent.journal_id), ('company_id', '=', parent.company_id)]"/>
583 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]"/>
584 <field name="amount"/>
586 <form string="Statement lines" version="7.0">
591 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
592 <field name="type" on_change="onchange_type(partner_id, type)"/>
593 <field name="account_id" domain="[('journal_id', '=', parent.journal_id), ('type', '<>', 'view'), ('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"/>
596 <field name="sequence" readonly="0"/>
598 <separator string="Notes"/>
609 <record id="view_bank_statement_form_journal_items" model="ir.ui.view">
610 <field name="name">account.bank.statement.journal.items.form.inherit</field>
611 <field name="model">account.bank.statement</field>
612 <field name="inherit_id" ref="view_bank_statement_form"/>
613 <field name="arch" type="xml">
614 <xpath expr="//div[@name='import_buttons']" position="inside">
615 <button name="button_journal_entries"
616 string="Journal Items" type="object"
617 attrs="{'invisible':[('state','!=','confirm')]}"/>
622 <record id="action_bank_statement_tree" model="ir.actions.act_window">
623 <field name="name">Bank Statements</field>
624 <field name="res_model">account.bank.statement</field>
625 <field name="view_type">form</field>
626 <field name="view_mode">tree,form,graph</field>
627 <field name="domain">[('journal_id.type', '=', 'bank')]</field>
628 <field name="context">{'journal_type':'bank'}</field>
629 <field name="search_view_id" ref="view_bank_statement_search"/>
630 <field name="help" type="html">
631 <p class="oe_view_nocontent_create">
632 Click to register a bank statement.
634 A bank statement is a summary of all financial transactions
635 occurring over a given period of time on a bank account. You
636 should receive this periodicaly from your bank.
638 OpenERP allows you to reconcile a statement line directly with
639 the related sale or puchase invoices.
643 <record model="ir.actions.act_window.view" id="action_bank_statement_tree_bank">
644 <field name="sequence" eval="1"/>
645 <field name="view_mode">tree</field>
646 <field name="view_id" ref="view_bank_statement_tree"/>
647 <field name="act_window_id" ref="action_bank_statement_tree"/>
649 <record model="ir.actions.act_window.view" id="action_bank_statement_form_bank">
650 <field name="sequence" eval="1"/>
651 <field name="view_mode">form</field>
652 <field name="view_id" ref="view_bank_statement_form"/>
653 <field name="act_window_id" ref="action_bank_statement_tree"/>
656 <menuitem string="Bank Statements" action="action_bank_statement_tree" id="menu_bank_statement_tree" parent="menu_finance_bank_and_cash" sequence="7"/>
658 <record id="action_bank_statement_draft_tree" model="ir.actions.act_window">
659 <field name="name">Draft statements</field>
660 <field name="res_model">account.bank.statement</field>
661 <field name="view_type">form</field>
662 <field name="view_mode">tree,form</field>
663 <field name="domain">[('state','=','draft')]</field>
664 <field name="filter" eval="True"/>
667 <!-- Account Types -->
668 <record id="view_account_type_search" model="ir.ui.view">
669 <field name="name">account.account.type.search</field>
670 <field name="model">account.account.type</field>
671 <field name="arch" type="xml">
672 <search string="Account Type">
673 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account Type"/>
677 <record id="view_account_type_tree" model="ir.ui.view">
678 <field name="name">account.account.type.tree</field>
679 <field name="model">account.account.type</field>
680 <field name="arch" type="xml">
681 <tree string="Account Type">
687 <record id="view_account_type_form" model="ir.ui.view">
688 <field name="name">account.account.type.form</field>
689 <field name="model">account.account.type</field>
690 <field name="arch" type="xml">
691 <form string="Account Type" version="7.0">
698 <field name="report_type"/>
699 <field name="close_method"/>
702 <separator string="Description"/>
707 <record id="action_account_type_form" model="ir.actions.act_window">
708 <field name="name">Account Types</field>
709 <field name="res_model">account.account.type</field>
710 <field name="view_type">form</field>
711 <field name="view_mode">tree,form</field>
712 <field name="search_view_id" ref="view_account_type_search"/>
713 <field name="help" type="html">
714 <p class="oe_view_nocontent_create">
715 Click to define a new account type.
717 An account type is used to determine how an account is used in
718 each journal. The deferral method of an account type determines
719 the process for the annual closing. Reports such as the Balance
720 Sheet and the Profit and Loss report use the category
721 (profit/loss or balance sheet).
725 <menuitem action="action_account_type_form" sequence="20" id="menu_action_account_type_form" parent="account_account_menu" groups="base.group_no_one"/>
728 <record id="view_account_move_tree" model="ir.ui.view">
729 <field name="name">account.move.tree</field>
730 <field name="model">account.move</field>
731 <field name="arch" type="xml">
732 <tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries">
736 <field name="period_id"/>
737 <field name="journal_id"/>
738 <field name="partner_id"/>
739 <field name="amount" sum="Total Amount"/>
740 <field name="state"/>
746 <record id="view_move_reconcile_form" model="ir.ui.view">
747 <field name="name">account.move.reconcile.form</field>
748 <field name="model">account.move.reconcile</field>
749 <field name="arch" type="xml">
750 <form string="Journal Entry Reconcile" version="7.0">
753 <field name="create_date"/>
756 <separator string="Reconcile Entries"/>
757 <field name="line_id"/>
758 <separator string="Partial Reconcile Entries"/>
759 <field name="line_partial_ids"/>
765 <record id="view_tax_code_search" model="ir.ui.view">
766 <field name="name">account.tax.code.search</field>
767 <field name="model">account.tax.code</field>
768 <field name="arch" type="xml">
769 <search string="Account Tax Code">
770 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Tax Code"/>
771 <field name="parent_id"/>
772 <field name="company_id" groups="base.group_multi_company"/>
776 <record id="view_tax_code_tree" model="ir.ui.view">
777 <field name="name">account.tax.code.tree</field>
778 <field name="model">account.tax.code</field>
779 <field name="field_parent">child_ids</field>
780 <field name="priority">100</field>
781 <field name="arch" type="xml">
782 <tree string="Account Tax Code" toolbar="1">
785 <field name="sum_period"/>
787 <field name="company_id" groups="base.group_multi_company"/>
791 <record id="view_tax_code_form" model="ir.ui.view">
792 <field name="name">account.tax.code.form</field>
793 <field name="model">account.tax.code</field>
794 <field name="arch" type="xml">
795 <form string="Account Tax Code" version="7.0">
797 <group col="4" colspan="2">
800 <field name="parent_id"/>
801 <field name="company_id" groups="base.group_multi_company"/>
803 <group string="Reporting Configuration">
804 <field name="notprintable"/>
807 <group string="Statistics">
808 <field name="sum_period"/>
812 <separator string="Description"/>
817 <record id="action_tax_code_list" model="ir.actions.act_window">
818 <field name="name">Tax codes</field>
819 <field name="res_model">account.tax.code</field>
820 <field name="view_type">form</field>
821 <field name="view_mode">tree,form</field>
822 <field name="view_id" ref="view_tax_code_tree"/>
823 <field name="search_view_id" ref="view_tax_code_search"/>
824 <field name="help" type="html">
825 <p class="oe_view_nocontent_create">
826 Click to define a new tax code.
828 Depending on the country, a tax code is usually a cell to fill
829 in your legal tax statement. OpenERP allows you to define the
830 tax structure and each tax computation will be registered in
831 one or several tax code.
835 <menuitem id="next_id_27" name="Taxes" parent="account.menu_finance_configuration" sequence="20"/>
836 <menuitem action="action_tax_code_list" id="menu_action_tax_code_list" parent="next_id_27" sequence="12" groups="base.group_no_one"/>
839 id="action_tax_code_line_open"
841 domain="[('tax_code_id','child_of',active_id),('state','<>','draft')]"
842 res_model="account.move.line"
843 src_model="account.tax.code"/>
846 <record id="view_tax_tree" model="ir.ui.view">
847 <field name="name">account.tax.tree</field>
848 <field name="model">account.tax</field>
849 <field name="field_parent">child_ids</field>
850 <field name="arch" type="xml">
851 <tree string="Account Tax">
853 <field name="price_include"/>
854 <field name="description"/>
855 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
859 <record id="view_account_tax_search" model="ir.ui.view">
860 <field name="name">account.tax.search</field>
861 <field name="model">account.tax</field>
862 <field name="arch" type="xml">
863 <search string="Search Taxes">
864 <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax"/>
865 <field name="company_id" groups="base.group_multi_company"/>
869 <record id="view_tax_form" model="ir.ui.view">
870 <field name="name">account.tax.form</field>
871 <field name="model">account.tax</field>
872 <field name="arch" type="xml">
873 <form string="Account Tax" version="7.0">
877 <field name="description"/>
880 <field name="type_tax_use"/>
881 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
882 <field name="active"/>
886 <page string="Tax Definition">
888 <group string="Tax Computation">
892 <field name="amount" class="oe_inline"
893 attrs="{'invisible':[('type','in',('none', 'code', 'balance'))]}"/>
894 <label string="%%" attrs="{'invisible':[('type','<>','percent')]}"/>
896 <field name="python_compute" attrs="{'invisible':[('type','!=','code')],'required':[('type','=','code')]}"/>
897 <field name="python_compute_inv" attrs="{'invisible':[('type','!=','code')],'required':[('type','=','code')]}"/>
898 <field name="price_include"/>
900 <group string="Misc">
901 <field name="sequence"/>
902 <field name="include_base_amount"/>
903 <field name="child_depend"/>
905 <group string="Invoices">
906 <field name="account_collected_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
907 <field name="account_analytic_collected_id" domain="[('type','<>','view'), ('company_id', '=', company_id), ('parent_id', '<>', False)]" groups="analytic.group_analytic_accounting"/>
909 <field name="base_code_id"/>
910 <field name="base_sign"/>
911 <field name="tax_code_id"/>
912 <field name="tax_sign"/>
915 <group string="Refunds">
916 <field name="account_paid_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
917 <field name="account_analytic_paid_id" domain="[('type','<>','view'), ('company_id', '=', company_id), ('parent_id', '<>', False)]" groups="analytic.group_analytic_accounting"/>
919 <field name="ref_base_code_id"/>
920 <field name="ref_base_sign"/>
921 <field name="ref_tax_code_id"/>
922 <field name="ref_tax_sign"/>
924 <group string="Children/Sub Taxes" colspan="2">
925 <field name="child_depend" class="oe_inline"/>
926 <field name="child_ids" nolabel="1" colspan="2">
927 <tree string="Account Tax">
928 <field name="sequence"/>
930 <field name="price_include"/>
931 <field name="description"/>
937 <page string="Special Computation">
939 <separator colspan="4" string="Applicability Options"/>
940 <field name="applicable_type"/>
941 <field name="domain"/>
942 <separator colspan="4" string="Applicable Code (if type=code)"/>
943 <field colspan="4" name="python_applicable" nolabel="1" attrs="{'readonly':[('applicable_type','=','true')], 'required':[('applicable_type','=','code')]}"/>
950 <record id="action_tax_form" model="ir.actions.act_window">
951 <field name="name">Taxes</field>
952 <field name="res_model">account.tax</field>
953 <field name="view_type">form</field>
954 <field name="view_id" ref="view_tax_tree"/>
955 <field name="domain">[('parent_id','=',False)]</field>
957 <menuitem action="action_tax_form" id="menu_action_tax_form" parent="next_id_27"/>
959 <record id="action_tax_code_tree" model="ir.actions.act_window">
960 <field name="name">Chart of Taxes</field>
961 <field name="res_model">account.tax.code</field>
962 <field name="domain">[('parent_id','=',False)]</field>
963 <field name="view_type">tree</field>
964 <field name="view_id" ref="view_tax_code_tree"/>
967 <!-- Journal Items -->
968 <record id="view_move_line_form" model="ir.ui.view">
969 <field name="name">account.move.line.form</field>
970 <field name="model">account.move.line</field>
971 <field eval="2" name="priority"/>
972 <field name="arch" type="xml">
973 <form string="Journal Item" version="7.0">
979 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
982 <field name="journal_id"/>
983 <field name="period_id"/>
984 <field name="company_id" required="1" groups="base.group_multi_company"/>
987 <notebook colspan="4">
988 <page string="Information">
990 <group string="Amount">
991 <field name="account_id" domain="[('company_id', '=', company_id), ('type','<>','view'), ('type','<>','consolidation')]"/>
992 <field name="debit"/>
993 <field name="credit"/>
994 <field name="quantity"/>
996 <group string="Accounting Documents">
997 <field name="invoice" readonly="True"/>
998 <field name="move_id" required="False"/>
999 <field name="statement_id" readonly="True"/>
1001 <group string="Dates">
1002 <field name="date"/>
1003 <field name="date_maturity"/>
1004 <field name="date_created" readonly="True"/>
1006 <group string="Taxes">
1007 <field name="tax_code_id"/>
1008 <field name="tax_amount"/>
1009 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1011 <group attrs="{'readonly':[('state','=','valid')]}" string="Currency" groups="base.group_multi_currency">
1012 <field name="currency_id" invisible="1"/>
1013 <field name="amount_currency" widget="monetary" options="{'currency_field': 'currency_id'}"/>
1015 <group string="Reconciliation">
1016 <field name="reconcile_id"/>
1017 <field name="reconcile_partial_id"/>
1019 <group string="States">
1020 <field name="state"/>
1021 <field name="blocked"/>
1023 <group groups="analytic.group_analytic_accounting" string="Analytic">
1024 <field name="analytic_account_id" domain="[('parent_id','!=',False)]"/>
1027 <field name="narration" colspan="4" nolabel="1" placeholder="Add an internal note..."/>
1029 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1030 <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)}"/>
1037 <record id="view_move_line_form2" model="ir.ui.view">
1038 <field name="name">account.move.line.form2</field>
1039 <field name="model">account.move.line</field>
1040 <field eval="9" name="priority"/>
1041 <field name="arch" type="xml">
1042 <form string="Journal Item" version="7.0">
1043 <notebook colspan="4">
1044 <page string="Information">
1046 <separator colspan="4" string="General Information"/>
1047 <field name="name"/>
1048 <field name="date"/>
1049 <field name="journal_id" readonly="False"/>
1050 <field name="period_id" readonly="False"/>
1051 <field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation'),('company_id', '=', company_id)]"/>
1052 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1054 <field name="debit"/>
1055 <field name="credit"/>
1057 <separator colspan="4" string="Optional Information"/>
1058 <field name="currency_id" invisible="1"/>
1059 <field name="amount_currency" groups="base.group_multi_currency" widget="monetary" options="{'currency_field': 'currency_id'}"/>
1060 <field name="quantity"/>
1061 <field name="move_id" required="False"/>
1063 <field name="date_maturity"/>
1064 <field name="date_created"/>
1065 <field name="date_created"/>
1066 <field name="blocked"/>
1068 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1069 <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1070 <separator colspan="4" string="Status"/>
1072 <field name="reconcile_id"/>
1073 <field name="reconcile_partial_id"/>
1074 <field name="state"/>
1077 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1078 <field name="analytic_lines"/>
1084 <record id="view_move_line_tree" model="ir.ui.view">
1085 <field name="name">account.move.line.tree</field>
1086 <field name="model">account.move.line</field>
1087 <field eval="1" name="priority"/>
1088 <field name="arch" type="xml">
1089 <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" create="true" on_write="on_create_write" version="7.0" editable="top">
1090 <field name="journal_id" options='{"no_open":True}' invisible="context.get('journal_id',False)"/>
1091 <field name="period_id" options='{"no_open":True}' invisible="context.get('period_id',False)"/>
1092 <field name="date"/>
1093 <field name="name"/>
1095 <field name="statement_id" invisible="1"/>
1096 <field name="partner_id" on_change="onchange_partner_id(move_id, partner_id, account_id, debit, credit, date, journal_id)"/>
1097 <field name="account_id" options='{"no_open":True}' domain="[('journal_id','=',journal_id), ('company_id', '=', company_id)]" on_change="onchange_account_id(account_id)"/>
1098 <field name="account_tax_id" options='{"no_open":True}' invisible="context.get('journal_type', False) not in ['sale','sale_refund','purchase','purchase_refund','general']"/>
1099 <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('type','not in',['view','template'])]" invisible="not context.get('analytic_journal_id',False)"/>
1100 <field name="move_id" required="0"/>
1101 <field name="debit" sum="Total Debit"/>
1102 <field name="credit" sum="Total Credit"/>
1103 <field name="date_maturity" invisible="context.get('journal_type', False) not in ['sale','sale_refund','purchase','purchase_refund']"/>
1104 <field name="reconcile"/>
1105 <field name="invoice" invisible="1"/>
1106 <field name="amount_currency" readonly="True" invisible="not context.get('currency',False)"/>
1107 <field name="currency_id" readonly="True" invisible="not context.get('currency',False)" />
1108 <field name="state" invisible="1"/>
1109 <field name="company_id" invisible="1"/>
1113 <record id="account_move_line_graph" model="ir.ui.view">
1114 <field name="name">account.move.line.graph</field>
1115 <field name="model">account.move.line</field>
1116 <field name="arch" type="xml">
1117 <graph string="Account Statistics" type="bar">
1118 <field name="account_id"/>
1119 <field name="debit" operator="+"/>
1120 <field name="credit" operator="+"/>
1124 <record id="view_account_move_line_filter" model="ir.ui.view">
1125 <field name="name">Journal Items</field>
1126 <field name="model">account.move.line</field>
1127 <field name="arch" type="xml">
1128 <search string="Search Journal Items">
1129 <field name="name" filter_domain="['|', ('name','ilike',self), ('ref','ilike',self)]" string="Move"/>
1130 <field name="date"/>
1131 <filter icon="terp-document-new" string="Unbalanced" domain="[('state','=','draft')]" help="Unbalanced Journal Items"/>
1133 <filter icon="terp-document-new" string="Unposted" domain="[('move_id.state','=','draft')]" help="Unposted Journal Items"/>
1134 <filter name="posted" icon="terp-camera_test" string="Posted" domain="[('move_id.state','=','posted')]" help="Posted Journal Items"/>
1136 <filter icon="terp-dolar_ok!" string="Unreconciled" domain="[('reconcile_id','=',False), ('account_id.reconcile','=',True)]" help="Unreconciled Journal Items" name="unreconciled"/>
1138 <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)]"/>
1139 <field name="move_id" string="Number (Move)"/>
1140 <field name="account_id"/>
1141 <field name="partner_id"/>
1142 <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 -->
1143 <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 -->
1144 <group expand="0" string="Group By...">
1145 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1146 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1147 <filter string="Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
1148 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1153 <record id="action_account_moves_all_a" model="ir.actions.act_window">
1154 <field name="context">{'journal_type':'general'}</field>
1155 <field name="name">Journal Items</field>
1156 <field name="res_model">account.move.line</field>
1157 <field name="view_id" ref="view_move_line_tree"/>
1158 <field name="view_mode">tree_account_move_line_quickadd</field>
1159 <field name="help" type="html">
1160 <p class="oe_view_nocontent_create">
1161 Select the period and the journal you want to fill.
1163 This view can be used by accountants in order to quickly record
1164 entries in OpenERP. If you want to record a supplier invoice,
1165 start by recording the line of the expense account. OpenERP
1166 will propose to you automatically the Tax related to this
1167 account and the counterpart "Account Payable".
1172 action="action_account_moves_all_a"
1173 icon="STOCK_JUSTIFY_FILL"
1174 id="menu_action_account_moves_all"
1175 parent="account.menu_finance_entries"
1177 groups="group_account_user"
1180 <record id="view_move_line_tree_reconcile" model="ir.ui.view">
1181 <field name="model">account.move.line</field>
1182 <field eval="24" name="priority"/>
1183 <field name="arch" type="xml">
1184 <tree_account_reconciliation colors="red:state == 'draft';black:state == 'valid'" string="Journal Items to Reconcile" create="false" version="7.0">
1185 <field name="date"/>
1186 <field name="move_id"/>
1188 <field name="name"/>
1189 <field name="partner_id"/>
1190 <field name="account_id"/>
1191 <field name="reconcile_partial_id"/>
1192 <field name="state" invisible="1"/>
1193 <field name="debit" sum="Total debit"/>
1194 <field name="credit" sum="Total credit"/>
1195 </tree_account_reconciliation>
1198 <record id="action_account_manual_reconcile" model="ir.actions.act_window">
1199 <field name="context">{'search_default_unreconciled': 1,'view_mode':True}</field>
1200 <field name="name">Journal Items to Reconcile</field>
1201 <field name="res_model">account.move.line</field>
1202 <field name="view_id" ref="view_move_line_tree_reconcile"/>
1203 <field name="view_mode">tree_account_reconciliation</field>
1204 <field name="help" type="html">
1206 No journal items found.
1211 name="Manual Reconciliation"
1212 action="action_account_manual_reconcile"
1213 id="menu_manual_reconcile"
1214 parent="account.periodical_processing_reconciliation"/>
1216 <!-- Account.Entry Edition -->
1217 <record id="view_move_tree" model="ir.ui.view">
1218 <field name="name">account.move.tree</field>
1219 <field name="model">account.move</field>
1220 <field name="arch" type="xml">
1221 <tree colors="blue:state == 'draft';black:state == 'posted'" string="Journal Entries">
1222 <field name="name"/>
1224 <field name="date"/>
1225 <field name="period_id"/>
1226 <field name="journal_id"/>
1227 <field name="partner_id"/>
1228 <field name="amount" sum="Total Amount"/>
1229 <field name="to_check"/>
1230 <field name="state"/>
1234 <record id="view_move_form" model="ir.ui.view">
1235 <field name="name">account.move.form</field>
1236 <field name="model">account.move</field>
1237 <field name="arch" type="xml">
1238 <form string="Account Entry" version="7.0">
1240 <button name="button_validate" states="draft" string="Post" type="object" class="oe_highlight" groups="account.group_account_invoice"/>
1241 <button name="button_cancel" states="posted" string="Cancel" type="object" groups="account.group_account_invoice"/>
1242 <field name="state" widget="statusbar"/>
1244 <sheet string="Journal Entries" >
1245 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
1247 <field name="name" readonly="True" attrs="{'invisible':[('name','=','/')]}"/>
1251 <field name="journal_id"/>
1252 <field name="period_id"/>
1253 <field name="company_id" required="1" groups="base.group_multi_company"/>
1254 <field name="partner_id" invisible="1"/>
1258 <field name="date"/>
1259 <field name="to_check"/>
1260 <field name="amount" invisible="1"/>
1264 <page string="Journal Items">
1265 <field name="line_id" widget="one2many_list"
1266 context="{'line_id': line_id , 'journal_id': journal_id }">
1267 <form string="Journal Item" version="7.0">
1268 <group col="6" colspan="4">
1269 <field name="name"/>
1271 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,date)"/>
1273 <field name="journal_id"/>
1274 <field name="period_id"/>
1275 <field name="company_id" required="1" groups="base.group_multi_company"/>
1277 <notebook colspan="4">
1278 <page string="Information">
1280 <group string="Amount">
1281 <field name="account_id" domain="[('company_id', '=', parent.company_id), ('type','<>','view'),('type','<>','consolidation')]"/>
1282 <field name="debit"/>
1283 <field name="credit"/>
1284 <field name="quantity"/>
1287 <group string="Accounting Documents">
1288 <field name="invoice"/>
1289 <field name="move_id" required="False"/>
1290 <field name="statement_id"/>
1293 <group string="Dates">
1294 <field name="date"/>
1295 <field name="date_maturity"/>
1296 <field name="date_created"/>
1299 <group string="Taxes">
1300 <field name="tax_code_id"/>
1301 <field name="tax_amount"/>
1302 <field name="account_tax_id" domain="[('parent_id','=',False)]"/>
1305 <group string="Currency" groups="base.group_multi_currency">
1306 <field name="currency_id"/>
1307 <field name="amount_currency"/>
1310 <group string="Reconciliation">
1311 <field name="reconcile_id"/>
1312 <field name="reconcile_partial_id"/>
1315 <group string="States">
1316 <field name="state"/>
1317 <field name="blocked"/>
1320 <group groups="analytic.group_analytic_accounting" string="Analytic">
1321 <field name="analytic_account_id" domain="[('parent_id','!=',False)]"/>
1324 <separator string="Internal Note"/>
1325 <field name="narration"/>
1327 <page string="Analytic Lines" groups="analytic.group_analytic_accounting">
1328 <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)}"/>
1332 <tree colors="blue:state == 'draft';black:state == 'posted'" editable="top" string="Journal Items">
1333 <field name="invoice"/>
1334 <field name="name"/>
1335 <field name="partner_id" on_change="onchange_partner_id(False,partner_id,account_id,debit,credit,parent.date,parent.journal_id)"/>
1336 <field name="account_id" domain="[('journal_id','=',parent.journal_id),('company_id', '=', parent.company_id)]"/>
1337 <field name="date_maturity"/>
1338 <field name="debit" sum="Total Debit"/>
1339 <field name="credit" sum="Total Credit"/>
1340 <field name="analytic_account_id" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
1341 <field name="amount_currency"/>
1342 <field name="currency_id" groups="base.group_multi_currency"/>
1343 <field name="tax_code_id"/>
1344 <field name="tax_amount"/>
1345 <field name="state"/>
1346 <field name="reconcile_id"/>
1347 <field name="reconcile_partial_id"/>
1350 <field name="narration" colspan="4" placeholder="Add an internal note..." nolabel="1" height="50"/>
1357 <record id="view_account_move_filter" model="ir.ui.view">
1358 <field name="name">account.move.select</field>
1359 <field name="model">account.move</field>
1360 <field name="arch" type="xml">
1361 <search string="Search Move">
1362 <field name="name" filter_domain="['|', ('name','ilike',self), ('ref','ilike',self)]" string="Move"/>
1363 <field name="date"/>
1364 <filter icon="terp-document-new" string="Unposted" domain="[('state','=','draft')]" help="Unposted Journal Entries"/>
1365 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Journal Entries"/>
1367 <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('to_check','=',True)]" help="Journal Entries to Review"/>
1368 <field name="partner_id"/>
1369 <field name="journal_id"/>
1370 <field name="period_id"/>
1371 <group expand="0" string="Group By...">
1372 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1373 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1374 <filter string="States" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1375 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
1376 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1381 <record id="action_move_journal_line" model="ir.actions.act_window">
1382 <field name="name">Journal Entries</field>
1383 <field name="res_model">account.move</field>
1384 <field name="view_type">form</field>
1385 <field name="view_mode">tree,form</field>
1386 <field name="view_id" ref="view_move_tree"/>
1387 <field name="search_view_id" ref="view_account_move_filter"/>
1388 <field name="help" type="html">
1389 <p class="oe_view_nocontent_create">
1390 Click to create a journal entry.
1392 A journal entry consists of several journal items, each of
1393 which is either a debit or a credit transaction.
1395 OpenERP automatically creates one journal entry per accounting
1396 document: invoice, refund, supplier payment, bank statements,
1397 etc. So, you should record journal entries manually only/mainly
1398 for miscellaneous operations.
1403 icon="STOCK_JUSTIFY_FILL"
1404 action="action_move_journal_line"
1405 id="menu_action_move_journal_line_form"
1406 parent="account.menu_finance_entries"
1407 groups="group_account_user"
1410 <record id="action_move_line_form" model="ir.actions.act_window">
1411 <field name="name">Entries</field>
1412 <field name="type">ir.actions.act_window</field>
1413 <field name="res_model">account.move</field>
1414 <field name="view_type">form</field>
1415 <field name="view_id" ref="view_move_tree"/>
1416 <field name="search_view_id" ref="view_account_move_filter"/>
1420 id="act_account_move_to_account_move_line_open"
1421 name="Journal Items"
1422 context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
1423 res_model="account.move.line"
1424 src_model="account.move"/>
1427 domain="[('reconcile_id', '=', active_id)]"
1428 id="act_account_acount_move_line_reconcile_open"
1429 name="Reconciled entries"
1430 res_model="account.move.line"
1431 src_model="account.move.reconcile"/>
1433 <!-- TODO: Print Journal (and change state), Close Journal (and verify that there is no draft Entry Lines) -->
1434 <record id="view_journal_period_tree" model="ir.ui.view">
1435 <field name="name">account.journal.period.tree</field>
1436 <field name="model">account.journal.period</field>
1437 <field name="arch" type="xml">
1438 <tree colors="blue:state == 'draft';gray:state == 'done';black:state == 'printed'" string="Journals">
1439 <field icon="icon" name="fiscalyear_id"/>
1440 <field name="period_id"/>
1441 <field name="journal_id"/>
1442 <field name="state"/>
1443 <field name="company_id" groups="base.group_multi_company"/>
1447 <record id="action_account_journal_period_tree" model="ir.actions.act_window">
1448 <field name="name">Journals</field>
1449 <field name="res_model">account.journal.period</field>
1450 <field name="view_type">tree</field>
1453 <!-- Account Models -->
1454 <record id="view_model_line_tree" model="ir.ui.view">
1455 <field name="name">account.model.line.tree</field>
1456 <field name="model">account.model.line</field>
1457 <field name="arch" type="xml">
1458 <tree string="Journal Entry Model Line" editable="bottom">
1459 <field name="sequence"/>
1460 <field name="name"/>
1461 <field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation'), ('company_id', '=', parent.company_id)]"/>
1462 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1463 <field name="partner_id"/>
1464 <field name="debit"/>
1465 <field name="credit"/>
1466 <field name="date_maturity"/>
1470 <record id="view_model_line_form" model="ir.ui.view">
1471 <field name="name">account.model.line.form</field>
1472 <field name="model">account.model.line</field>
1473 <field name="arch" type="xml">
1474 <form string="Journal Entry Model Line" version="7.0">
1476 <field colspan="4" name="name"/>
1477 <field name="sequence"/>
1478 <field name="account_id" domain="[('type','<>','view'), ('type','<>','consolidation'), ('company_id', '=', parent.company_id)]"/>
1479 <field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
1480 <field name="partner_id"/>
1481 <field name="debit"/>
1482 <field name="credit"/>
1483 <field name="quantity"/>
1484 <field name="date_maturity"/>
1489 <record id="view_model_form" model="ir.ui.view">
1490 <field name="name">account.model.form</field>
1491 <field name="model">account.model</field>
1492 <field name="arch" type="xml">
1493 <form string="Journal Entry Model" version="7.0">
1495 <field name="name"/>
1496 <field name="journal_id" on_change="onchange_journal_id(journal_id)"/>
1497 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
1500 <field name="lines_id" widget="one2many_list"/>
1501 <separator string="Legend"/>
1502 <field name="legend"/>
1503 <button name="%(action_account_use_model_create_entry)d" string="Create entries" type="action" icon="gtk-execute"/>
1507 <record id="view_model_tree" model="ir.ui.view">
1508 <field name="name">account.model.tree</field>
1509 <field name="model">account.model</field>
1510 <field name="arch" type="xml">
1511 <tree string="Journal Entry Model">
1512 <field name="name"/>
1513 <field name="journal_id"/>
1514 <field name="company_id" groups="base.group_multi_company"/>
1518 <record id="view_model_search" model="ir.ui.view">
1519 <field name="name">account.model.search</field>
1520 <field name="model">account.model</field>
1521 <field name="arch" type="xml">
1522 <search string="Journal Entry Model">
1523 <field name="name" string="Journal Entry Model"/>
1524 <filter string="Sale" icon="terp-camera_test" domain="[('journal_id.type', '=', 'sale')]"/>
1525 <filter string="Purchase" icon="terp-purchase" domain="[('journal_id.type', '=', 'purchase')]"/>
1526 <field name="journal_id"/>
1527 <field name="company_id" groups="base.group_multi_company"/>
1528 <group expand="0" string="Group By...">
1529 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
1535 <record id="action_model_form" model="ir.actions.act_window">
1536 <field name="name">Recurring Models</field>
1537 <field name="res_model">account.model</field>
1538 <field name="view_type">form</field>
1539 <field name="view_mode">tree,form</field>
1540 <field name="search_view_id" ref="view_model_search"/>
1543 action="action_model_form" name="Models" id="menu_action_model_form" sequence="5"
1544 parent="account.menu_finance_recurrent_entries"/>
1546 <!-- Payment Terms -->
1547 <record id="view_payment_term_line_tree" model="ir.ui.view">
1548 <field name="name">account.payment.term.line.tree</field>
1549 <field name="model">account.payment.term.line</field>
1550 <field name="arch" type="xml">
1551 <tree string="Payment Term">
1552 <field name="value"/>
1553 <field name="value_amount" attrs="{'readonly':[('value','=','balance')]}"/>
1554 <field name="days"/>
1555 <field name="days2"/>
1559 <record id="view_payment_term_line_form" model="ir.ui.view">
1560 <field name="name">account.payment.term.line.form</field>
1561 <field name="model">account.payment.term.line</field>
1562 <field name="arch" type="xml">
1563 <form string="Payment Term" version="7.0">
1565 <group string="Amount Computation">
1566 <field name="value"/>
1567 <label for="value_amount" string="Amount To Pay" attrs="{'invisible':[('value','=','balance')]}"/>
1568 <div attrs="{'invisible':[('value','=','balance')]}">
1569 <field name="value_amount" class="oe_inline"/>
1570 <label string="%%" class="oe_inline" attrs="{'invisible':['!',('value','=','procent')]}" />
1573 <group string="Due Date Computation">
1574 <field name="days"/>
1575 <field name="days2"/>
1581 <record id="view_payment_term_search" model="ir.ui.view">
1582 <field name="name">account.payment.term.search</field>
1583 <field name="model">account.payment.term</field>
1584 <field name="arch" type="xml">
1585 <search string="Payment Term">
1586 <field name="name" string="Payment Term"/>
1587 <field name="active"/>
1591 <record id="view_payment_term_form" model="ir.ui.view">
1592 <field name="name">account.payment.term.form</field>
1593 <field name="model">account.payment.term</field>
1594 <field name="arch" type="xml">
1595 <form string="Payment Term" version="7.0">
1597 <field name="name"/>
1598 <field name="active"/>
1600 <field name="note" placeholder="Payment term explanation for the customer..."/>
1601 <separator string="Computation"/>
1602 <field name="line_ids"/>
1606 <record id="action_payment_term_form" model="ir.actions.act_window">
1607 <field name="name">Payment Terms</field>
1608 <field name="res_model">account.payment.term</field>
1609 <field name="view_type">form</field>
1610 <field name="view_mode">tree,form</field>
1611 <field name="search_view_id" ref="view_payment_term_search"/>
1613 <menuitem action="action_payment_term_form"
1614 id="menu_action_payment_term_form" parent="menu_configuration_misc"/>
1616 <!-- Account Subscriptions -->
1617 <record id="view_subscription_line_form" model="ir.ui.view">
1618 <field name="name">account.subscription.line.form</field>
1619 <field name="model">account.subscription.line</field>
1620 <field name="arch" type="xml">
1621 <form string="Subscription lines" version="7.0">
1623 <field name="date"/>
1624 <field name="move_id"/>
1629 <record id="view_subscription_line_tree" model="ir.ui.view">
1630 <field name="name">account.subscription.line.tree</field>
1631 <field name="model">account.subscription.line</field>
1632 <field name="arch" type="xml">
1633 <tree string="Subscription lines">
1634 <field name="date"/>
1635 <field name="move_id"/>
1639 <record id="view_subscription_tree" model="ir.ui.view">
1640 <field name="name">account.subscription.tree</field>
1641 <field name="model">account.subscription</field>
1642 <field name="arch" type="xml">
1643 <tree colors="blue:state == 'draft';gray:state == 'done';black:state == 'running'" string="Entry Subscription">
1644 <field name="name"/>
1645 <field name="model_id"/>
1647 <field name="date_start"/>
1648 <field name="state"/>
1652 <record id="view_subscription_search" model="ir.ui.view">
1653 <field name="name">account.subscription.search</field>
1654 <field name="model">account.subscription</field>
1655 <field name="arch" type="xml">
1656 <search string="Entry Subscription">
1657 <field name="name" string="Account Subscription"/>
1658 <field name="date_start"/>
1659 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Subscription"/>
1660 <filter icon="terp-camera_test" string="Running" domain="[('state','=','running')]" help="Running Subscription"/>
1661 <field name="model_id"/>
1662 <group expand="0" string="Group By...">
1663 <filter string="Model" icon="terp-folder-orange" domain="[]" context="{'group_by':'model_id'}"/>
1664 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1669 <record id="view_subscription_form" model="ir.ui.view">
1670 <field name="name">account.subscription.form</field>
1671 <field name="model">account.subscription</field>
1672 <field name="arch" type="xml">
1673 <form string="Recurring" version="7.0">
1675 <button name="state_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert" />
1676 <button name="compute" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific" class="oe_highlight"/>
1677 <button name="remove_line" states="running" string="Remove Lines" type="object" icon="gtk-remove" class="oe_highlight"/>
1678 <field name="state" widget="statusbar" statusbar_visible="draft,running,done"/>
1683 <field name="name"/>
1684 <field name="model_id"/>
1688 <field name="date_start"/>
1689 <field name="period_type"/>
1690 <field name="period_nbr"/>
1691 <field name="period_total"/>
1694 <separator string="Subscription Lines"/>
1695 <field name="lines_id" widget="one2many_list"/>
1700 <record id="action_subscription_form" model="ir.actions.act_window">
1701 <field name="name">Recurring Lines</field>
1702 <field name="res_model">account.subscription</field>
1703 <field name="view_type">form</field>
1704 <field name="view_mode">tree,form</field>
1705 <field name="search_view_id" ref="view_subscription_search"/>
1706 <field name="help" type="html">
1707 <p class="oe_view_nocontent_create">
1708 Click to define a new recurring entry.
1710 A recurring entry occurs on a recurrent basis from a specific
1711 date, i.e. corresponding to the signature of a contract or an
1712 agreement with a customer or a supplier. You can create such
1713 entries to automate the postings in the system.
1718 name="Define Recurring Entries" action="action_subscription_form"
1719 id="menu_action_subscription_form" sequence="1"
1720 parent="account.menu_finance_recurrent_entries"/>
1722 <record id="action_subscription_form_running" model="ir.actions.act_window">
1723 <field name="name">Running Subscriptions</field>
1724 <field name="res_model">account.subscription</field>
1725 <field name="view_type">form</field>
1726 <field name="view_mode">tree,form</field>
1727 <field name="domain">[('state','=','running')]</field>
1728 <field name="filter" eval="True"/>
1731 <record id="action_subscription_form_new" model="ir.actions.act_window">
1732 <field name="name">New Subscription</field>
1733 <field name="res_model">account.subscription</field>
1734 <field name="view_type">form</field>
1735 <field name="view_mode">form,tree</field>
1736 <field name="view_id" ref="view_subscription_form"/>
1739 <record id="view_subscription_line_form_complete" model="ir.ui.view">
1740 <field name="name">account.subscription.line.form</field>
1741 <field name="model">account.subscription.line</field>
1742 <field eval="20" name="priority"/>
1743 <field name="arch" type="xml">
1744 <form string="Subscription lines" version="7.0">
1746 <field name="subscription_id"/>
1747 <field name="date"/>
1748 <field name="move_id"/>
1754 <!-- res.partner links -->
1756 context="{'search_default_unreconciled':True, 'search_default_partner_id':[active_id], 'default_partner_id': active_id}"
1757 domain="[('account_id.reconcile', '=', True),('account_id.type', 'in', ['receivable', 'payable'])]"
1758 id="act_account_partner_account_move_all"
1759 name="Receivables & Payables"
1760 res_model="account.move.line"
1761 src_model="res.partner"/>
1764 context="{'search_default_partner_id':[active_id], 'default_partner_id': active_id}"
1765 id="act_account_partner_account_move"
1766 name="Journal Items"
1767 res_model="account.move.line"
1768 src_model="res.partner"
1769 groups="account.group_account_user"/>
1771 <!-- Account Templates -->
1773 id="account_template_folder"
1775 parent="account_account_menu"
1776 groups="account.group_account_manager"/>
1778 id="account_template_taxes"
1780 parent="account_template_folder"
1783 id="account_template_accounts"
1785 parent="account_template_folder"
1788 <record id="view_account_template_form" model="ir.ui.view">
1789 <field name="name">account.account.template.form</field>
1790 <field name="model">account.account.template</field>
1791 <field name="arch" type="xml">
1792 <form string="Account Template" version="7.0">
1794 <field name="name"/>
1795 <field name="code"/>
1797 <field name="parent_id"/>
1798 <field name="shortcut"/>
1799 <field name="type"/>
1800 <field name="user_type"/>
1802 <field name="currency_id" groups="base.group_multi_currency"/>
1803 <field name="reconcile"/>
1804 <field name="chart_template_id"/>
1806 <separator string="Default Taxes"/>
1807 <field name="tax_ids"/>
1808 <separator string="Notes"/>
1809 <field name="note" placeholder="Internal notes..."/>
1813 <record id="view_account_template_tree" model="ir.ui.view">
1814 <field name="name">account.account.template.tree</field>
1815 <field name="model">account.account.template</field>
1816 <field name="arch" type="xml">
1817 <tree string="Account Template">
1818 <field name="code"/>
1819 <field name="name"/>
1820 <field name="type" invisible="1"/>
1821 <field name="user_type" invisible="1"/>
1825 <record id="view_account_template_search" model="ir.ui.view">
1826 <field name="name">account.account.template.search</field>
1827 <field name="model">account.account.template</field>
1828 <field name="arch" type="xml">
1829 <search string="Search Account Templates">
1830 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account Template"/>
1831 <filter icon="terp-sale" string="Receivale Accounts" domain="[('type','=','receivable')]"/>
1832 <filter icon="terp-purchase" string="Payable Accounts" domain="[('type','=','payable')]"/>
1833 <field name="parent_id"/>
1834 <field name="user_type"/>
1835 <field name="type"/>
1836 <group expand="0" string="Group By...">
1837 <filter string="Internal Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
1838 <filter string="Account Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'user_type'}"/>
1843 <record id="action_account_template_form" model="ir.actions.act_window">
1844 <field name="name">Account Templates</field>
1845 <field name="res_model">account.account.template</field>
1846 <field name="view_type">form</field>
1847 <field name="view_mode">tree,form</field>
1848 <field name="search_view_id" ref="view_account_template_search"/>
1850 <menuitem action="action_account_template_form" id="menu_action_account_template_form" parent="account_template_accounts"/>
1852 <record id="view_account_addtmpl_wizard_form" model="ir.ui.view">
1853 <field name="name">Create Account</field>
1854 <field name="model">account.addtmpl.wizard</field>
1855 <field name="arch" type="xml">
1856 <form string="Create Account" version="7.0">
1858 <button icon="gtk-ok" name="action_create" string="Add" type="object" class="oe_highlight" />
1860 <separator col="4" colspan="4" string="Create an Account Based on this Template"/>
1861 <field name="cparent_id"/>
1866 <act_window domain="[]" id="action_account_addtmpl_wizard_form"
1867 name="Create Account"
1869 res_model="account.addtmpl.wizard"
1870 context="{'tmpl_ids': active_id}"
1871 src_model="account.account.template"
1872 view_type="form" view_mode="form"/>
1875 <!-- Chart of Accounts Templates -->
1876 <record id="view_account_chart_template_form" model="ir.ui.view">
1877 <field name="name">account.chart.template.form</field>
1878 <field name="model">account.chart.template</field>
1879 <field name="arch" type="xml">
1880 <form string="Chart of Accounts Template" version="7.0">
1882 <field name="name"/>
1883 <field name="account_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
1884 <field name="bank_account_view_id" attrs="{'required': [('parent_id', '=', False)]}"/>
1885 <field name="tax_code_root_id" attrs="{'required': [('parent_id', '=', False)]}"/>
1886 <field name="parent_id" />
1887 <!--<field name="code_digits" />-->
1888 <field name="visible" />
1889 <field name="complete_tax_set" />
1891 <separator string="Default Taxes" colspan="4"/>
1892 <field name="tax_template_ids" colspan="4" nolabel="1"/>
1893 <separator string="Properties" colspan="4"/>
1895 <field name="property_account_receivable" domain="[('id', 'child_of', [account_root_id])]"/>
1896 <field name="property_account_payable" domain="[('id', 'child_of', [account_root_id])]"/>
1897 <field name="property_account_expense_categ" domain="[('id', 'child_of', [account_root_id])]"/>
1898 <field name="property_account_income_categ" domain="[('id', 'child_of', [account_root_id])]" />
1899 <field name="property_account_expense" domain="[('id', 'child_of', [account_root_id])]"/>
1900 <field name="property_account_income" domain="[('id', 'child_of', [account_root_id])]"/>
1901 <field name="property_account_income_opening" domain="[('id', 'child_of', [account_root_id])]"/>
1902 <field name="property_account_expense_opening" domain="[('id', 'child_of', [account_root_id])]"/>
1907 <record id="view_account_chart_template_seacrh" model="ir.ui.view">
1908 <field name="name">account.chart.template.search</field>
1909 <field name="model">account.chart.template</field>
1910 <field name="arch" type="xml">
1911 <search string="Search Chart of Account Templates">
1912 <field name="name" string="Account Template"/>
1913 <field name="account_root_id"/>
1914 <field name="bank_account_view_id"/>
1915 <group expand="0" string="Group By...">
1916 <filter string="Root Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'account_root_id'}"/>
1917 <filter string="Bank Account" icon="terp-folder-orange" domain="[]" context="{'group_by':'bank_account_view_id'}"/>
1918 <filter string="Receivable Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_receivable'}"/>
1919 <filter string="Payable Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_payable'}"/>
1920 <filter string="Income Account" icon="terp-sale" domain="[]" context="{'group_by':'property_account_income_categ'}"/>
1921 <filter string="Expense Account" icon="terp-purchase" domain="[]" context="{'group_by':'property_account_expense_categ'}"/>
1926 <record id="view_account_chart_template_tree" model="ir.ui.view">
1927 <field name="name">account.chart.template.tree</field>
1928 <field name="model">account.chart.template</field>
1929 <field name="arch" type="xml">
1930 <tree string="Chart of Accounts Template">
1931 <field name="name"/>
1932 <field name="account_root_id"/>
1933 <field name="tax_code_root_id"/>
1934 <field name="bank_account_view_id"/>
1935 <field name="property_account_receivable" invisible="1"/>
1936 <field name="property_account_payable" invisible="1"/>
1937 <field name="property_account_expense_categ" invisible="1"/>
1938 <field name="property_account_income_categ" invisible="1"/>
1942 <record id="action_account_chart_template_form" model="ir.actions.act_window">
1943 <field name="name">Chart of Accounts Templates</field>
1944 <field name="res_model">account.chart.template</field>
1945 <field name="view_type">form</field>
1946 <field name="view_mode">tree,form</field>
1948 <menuitem action="action_account_chart_template_form" id="menu_action_account_chart_template_form" parent="account_template_accounts" sequence="1"/>
1950 <!-- Account Tax Templates -->
1951 <record id="view_account_tax_template_form" model="ir.ui.view">
1952 <field name="name">account.tax.template.form</field>
1953 <field name="model">account.tax.template</field>
1954 <field name="arch" type="xml">
1955 <form string="Account Tax Template" version="7.0">
1957 <field name="name"/>
1958 <field name="description"/>
1959 <field name="chart_template_id"/>
1960 <field name="type"/>
1961 <field name="type_tax_use"/>
1962 <field name="price_include"/>
1965 <page string="Tax Definition">
1967 <field name="applicable_type"/>
1968 <field name="amount" attrs="{'readonly':[('type','=','none'),('type','=','code')]}"/>
1969 <field name="include_base_amount"/>
1970 <field name="domain"/>
1972 <field name="account_collected_id"/>
1973 <label colspan="2" string="Keep empty to use the income account"/>
1974 <field name="account_paid_id"/>
1975 <label colspan="2" string="Keep empty to use the expense account"/>
1976 <field name="child_depend"/>
1977 <field name="sequence"/>
1980 <page string="Tax Declaration">
1982 <separator colspan="4" string="Invoices"/>
1983 <field name="base_code_id"/>
1984 <field name="base_sign"/>
1985 <field name="tax_code_id"/>
1986 <field name="tax_sign"/>
1988 <separator colspan="4" string="Credit Notes"/>
1989 <field name="ref_base_code_id"/>
1990 <field name="ref_base_sign"/>
1991 <field name="ref_tax_code_id"/>
1992 <field name="ref_tax_sign"/>
1995 <page string="Special Computation">
1996 <separator string="Compute Code (if type=code)"/>
1997 <field name="python_compute" attrs="{'readonly':[('type','!=','code')]}"/>
1998 <separator string="Compute Code for Taxes Included Prices"/>
1999 <field name="python_compute_inv"/>
2000 <separator string="Applicable Code (if type=code)"/>
2001 <field name="python_applicable" attrs="{'readonly':[('applicable_type','=','true')]}"/>
2007 <record id="view_account_tax_template_tree" model="ir.ui.view">
2008 <field name="name">account.tax.template.tree</field>
2009 <field name="model">account.tax.template</field>
2010 <field name="arch" type="xml">
2011 <tree string="Account Tax Template">
2012 <field name="name" />
2013 <field name="description"/>
2017 <record id="view_account_tax_template_search" model="ir.ui.view">
2018 <field name="name">account.tax.template.search</field>
2019 <field name="model">account.tax.template</field>
2020 <field name="arch" type="xml">
2021 <search string="Search Tax Templates">
2022 <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax Template"/>
2023 <filter icon="terp-sale" string="Sale" domain="[('type_tax_use','=','sale')]" help="Taxes used in Sales"/>
2024 <filter icon="terp-purchase" string="Purchase" domain="[('type_tax_use','=','purchase')]" help="Taxes used in Purchases"/>
2025 <field name="chart_template_id"/>
2029 <record id="action_account_tax_template_form" model="ir.actions.act_window">
2030 <field name="name">Tax Templates</field>
2031 <field name="res_model">account.tax.template</field>
2032 <field name="view_type">form</field>
2033 <field name="view_mode">tree,form</field>
2034 <field name="search_view_id" ref="view_account_tax_template_search"/>
2036 <menuitem action="action_account_tax_template_form" id="menu_action_account_tax_template_form" parent="account_template_taxes" sequence="13"/>
2038 <!-- Account Tax Code Templates -->
2039 <record id="view_tax_code_template_tree" model="ir.ui.view">
2040 <field name="name">account.tax.code.template.tree</field>
2041 <field name="model">account.tax.code.template</field>
2042 <field name="field_parent">child_ids</field>
2043 <field name="arch" type="xml">
2044 <tree string="Account Tax Code Template" toolbar="1">
2045 <field name="name"/>
2046 <field name="code"/>
2047 <field name="parent_id" invisible="1"/>
2051 <record id="view_tax_code_template_search" model="ir.ui.view">
2052 <field name="name">account.tax.code.template.search</field>
2053 <field name="model">account.tax.code.template</field>
2054 <field name="arch" type="xml">
2055 <search string="Search tax template">
2056 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Tax Template"/>
2057 <field name="parent_id"/>
2058 <group expand="0" string="Group By...">
2059 <filter string="Parent Code" icon="terp-folder-orange" domain="[]" context="{'group_by':'parent_id'}"/>
2064 <record id="view_tax_code_template_form" model="ir.ui.view">
2065 <field name="name">account.tax.code.template.form</field>
2066 <field name="model">account.tax.code.template</field>
2067 <field name="arch" type="xml">
2068 <form string="Account Tax Code Template" version="7.0">
2070 <field name="name"/>
2071 <field name="code"/>
2072 <field name="parent_id"/>
2073 <field name="sign"/>
2075 <separator string="Description"/>
2076 <field name="info"/>
2080 <record id="action_account_tax_code_template_form" model="ir.actions.act_window">
2081 <field name="name">Tax Code Templates</field>
2082 <field name="res_model">account.tax.code.template</field>
2083 <field name="view_type">form</field>
2084 <field name="view_mode">tree,form</field>
2085 <field name="search_view_id" ref="view_tax_code_template_search"/>
2087 <menuitem action="action_account_tax_code_template_form" id="menu_action_account_tax_code_template_form" parent="account_template_taxes" sequence="14"/>
2090 <!-- Wizard for Multi Charts of Accounts -->
2091 <record id="view_wizard_multi_chart" model="ir.ui.view">
2092 <field name="name">Set Your Accounting Options</field>
2093 <field name="model">wizard.multi.charts.accounts</field>
2094 <field name="inherit_id" ref="base.res_config_view_base"/>
2095 <field name="arch" type="xml">
2096 <form position="attributes" version="7.0">
2097 <attribute name="string">Accounting Application Configuration</attribute>
2099 <group string="res_config_contents" position="replace">
2100 <field name="only_one_chart_template" invisible="1"/>
2101 <field name="complete_tax_set" invisible="1"/>
2103 <group attrs="{'invisible': [('only_one_chart_template','=',True)]}">
2104 <field name="chart_template_id" widget="selection" on_change="onchange_chart_template_id(chart_template_id)" domain="[('visible','=', True)]"/>
2106 <group groups="base.group_multi_company">
2107 <field name="company_id" widget="selection" on_change="onchange_company_id(company_id)"/> <!-- we assume that this wizard will be run only by administrators and as this field may cause problem if hidden (because of the default company of the user removed from the selection because already configured), we simply choosed to remove the group "multi company" of it -->
2110 <field name="currency_id" class="oe_inline"/>
2111 <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'))]"/>
2112 <label for="sale_tax_rate" string="Sale Tax" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
2113 <div attrs="{'invisible': [('complete_tax_set', '=', True)]}">
2114 <field name="sale_tax_rate" class="oe_inline" on_change="onchange_tax_rate(sale_tax_rate)"/> %%
2116 <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'))]"/>
2117 <label for="purchase_tax_rate" string="Purchase Tax" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
2118 <div attrs="{'invisible': [('complete_tax_set', '=', True)]}">
2119 <field name="purchase_tax_rate" class="oe_inline"/> %%
2122 <group groups="account.group_account_user">
2123 <field name="code_digits"/>
2129 <record id="action_wizard_multi_chart" model="ir.actions.act_window">
2130 <field name="name">Set Your Accounting Options</field>
2131 <field name="type">ir.actions.act_window</field>
2132 <field name="res_model">wizard.multi.charts.accounts</field>
2133 <field name="view_id" ref="view_wizard_multi_chart"/>
2134 <field name="view_type">form</field>
2135 <field name="view_mode">form</field>
2136 <field name="target">new</field>
2139 <record id="account_account_graph" model="ir.ui.view">
2140 <field name="name">account.account.graph</field>
2141 <field name="model">account.account</field>
2142 <field name="arch" type="xml">
2143 <graph string="Account Statistics" type="bar">
2144 <field name="name"/>
2145 <field name="balance" operator="+"/>
2150 <!-- Fiscal Position Templates -->
2152 <record id="view_account_position_template_search" model="ir.ui.view">
2153 <field name="name">account.fiscal.position.template.search</field>
2154 <field name="model">account.fiscal.position.template</field>
2155 <field name="arch" type="xml">
2156 <search string="Fiscal Position">
2157 <field name="name" string="Fiscal Position Template"/>
2162 <record id="view_account_position_template_form" model="ir.ui.view">
2163 <field name="name">account.fiscal.position.template.form</field>
2164 <field name="model">account.fiscal.position.template</field>
2165 <field name="arch" type="xml">
2166 <form string="Fiscal Position Template" version="7.0">
2168 <field name="name"/>
2169 <field name="chart_template_id"/>
2171 <field name="tax_ids">
2172 <tree string="Taxes Mapping" editable="bottom">
2173 <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2174 <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2176 <form string="Taxes Mapping" version="7.0">
2177 <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
2178 <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
2181 <field name="account_ids">
2182 <tree string="Accounts Mapping" editable="bottom">
2183 <field name="account_src_id"/>
2184 <field name="account_dest_id"/>
2186 <form string="Accounts Mapping" version="7.0">
2187 <field name="account_src_id"/>
2188 <field name="account_dest_id"/>
2194 <record id="view_account_position_template_tree" model="ir.ui.view">
2195 <field name="name">account.fiscal.position.template.tree</field>
2196 <field name="model">account.fiscal.position.template</field>
2197 <field name="arch" type="xml">
2198 <tree string="Fiscal Position">
2199 <field name="name"/>
2204 <record id="action_account_fiscal_position_template_form" model="ir.actions.act_window">
2205 <field name="name">Fiscal Position Templates</field>
2206 <field name="res_model">account.fiscal.position.template</field>
2207 <field name="view_type">form</field>
2208 <field name="view_mode">tree,form</field>
2209 <field name="search_view_id" ref="view_account_position_template_search"/>
2213 action="action_account_fiscal_position_template_form"
2214 id="menu_action_account_fiscal_position_form_template"
2215 parent="account_template_taxes" sequence="20"/>
2217 <!-- Cash Statement -->
2218 <record id="view_cash_statement_tree" model="ir.ui.view">
2219 <field name="name">account.bank.statement.tree</field>
2220 <field name="model">account.bank.statement</field>
2221 <field name="arch" type="xml">
2222 <tree colors="red:balance_end_real!=balance_end;blue:state=='draft' and (balance_end_real==balance_end);black:state == 'open'" string="Statement">
2223 <field name="name"/>
2224 <field name="date"/>
2225 <field name="period_id"/>
2226 <field name="journal_id"/>
2227 <field name="balance_start"/>
2228 <field name="balance_end_real"/>
2229 <field name="balance_end" invisible="1" />
2230 <field name="state"/>
2234 <record id="view_bank_statement_form2" model="ir.ui.view">
2235 <field name="name">account.bank.statement.form</field>
2236 <field name="model">account.bank.statement</field>
2237 <field name="arch" type="xml">
2238 <form string="Statement" version="7.0">
2240 <button name="button_confirm_cash" states="open" string="Close CashBox" type="object" class="oe_highlight"/>
2241 <button name="button_open" states="draft" string="Open CashBox" type="object" class="oe_highlight"/>
2242 <button name="button_cancel" states="confirm,open" string="Cancel" type="object"/>
2243 <field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,confirm"/>
2245 <sheet string="Statement">
2246 <label for="name" class="oe_edit_only" attrs="{'invisible':[('name','=','/')]}"/>
2247 <h1><field name="name" class="oe_inline" attrs="{'invisible':[('name','=','/')]}"/></h1>
2250 <field name="journal_id" on_change="onchange_journal_id(journal_id)" widget="selection" domain="[('type', '=', 'cash')]" />
2251 <field name="user_id" readonly="1" string="Responsible"/>
2252 <field name="total_entry_encoding"/>
2253 <field name='company_id' widget="selection" groups="base.group_multi_company" />
2256 <field name="date" attrs="{'readonly':[('state','!=','draft')]}" on_change="onchange_date(date, company_id)"/>
2257 <field name="closing_date" readonly="1"/>
2258 <field name="period_id" class="oe_inline"/>
2259 <field name="currency" invisible="1"/>
2263 <page string="Cash Transactions" attrs="{'invisible': [('state','=','draft')]}">
2264 <field name="line_ids" context="{'date':date}">
2265 <tree editable="bottom" string="Statement lines">
2266 <field name="sequence" invisible="1"/>
2267 <field name="date"/>
2268 <field name="name"/>
2270 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
2271 <field name="type" on_change="onchange_type(partner_id, type)"/>
2272 <field domain="[('journal_id','=',parent.journal_id), ('company_id', '=', parent.company_id)]" name="account_id"/>
2273 <field name="analytic_account_id" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]" groups="analytic.group_analytic_accounting" />
2274 <field name="amount"/>
2276 <form string="Statement lines" version="7.0">
2278 <field name="date"/>
2279 <field name="name"/>
2281 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
2282 <field name="type" on_change="onchange_type(partner_id, type)"/>
2283 <field domain="[('journal_id', '=', parent.journal_id), ('type', '<>', 'view'), ('company_id', '=', parent.company_id)]" name="account_id"/>
2284 <field name="analytic_account_id" domain="[('company_id', '=', parent.company_id), ('type', '<>', 'view')]" groups="analytic.group_analytic_accounting" />
2285 <field name="amount"/>
2286 <field name="sequence"/>
2288 <separator string="Notes"/>
2289 <field name="note"/>
2293 <page string="Cash Control">
2294 <group col="2" expand="1">
2295 <field name="opening_details_ids" nolabel="1" colspan="4" attrs="{'invisible' : [('state', '!=', 'draft')]}">
2296 <tree string="Opening Cashbox Lines" editable="bottom">
2297 <field name="pieces"/>
2298 <field name="number_opening" string="Opening Unit Numbers" on_change="on_change_sub_opening(pieces, number_opening, parent.balance_end)"/>
2299 <field name="subtotal_opening" string="Opening Subtotal"/>
2302 <field name="closing_details_ids" nolabel="1" colspan="4" attrs="{'invisible' : [('state', '=', 'draft')]}">
2303 <tree string="Closing Cashbox Lines" editable="bottom">
2304 <field name="pieces" readonly="1" />
2305 <field name="number_opening" string="Opening Unit Numbers" readonly="1" />
2306 <field name="subtotal_opening" string="Opening Subtotal" readonly="1" />
2308 <field name="number_closing" string="Closing Unit Numbers" on_change="on_change_sub_closing(pieces, number_closing, parent.balance_end)"/>
2309 <field name="subtotal_closing" string="Closing Subtotal"/>
2314 <page string="Journal Entries" attrs="{'invisible': [('state','!=','confirm')]}">
2315 <field name="move_line_ids" string="Journal Entries"/>
2318 <group col="6" colspan="4">
2319 <group col="2" colspan="2">
2320 <separator string="Opening Balance" colspan="4"/>
2321 <field name="balance_start" readonly="1" string="Opening Cash Control" widget="monetary" options="{'currency_field': 'currency_id'}"/>
2322 <field name="last_closing_balance" readonly="1" string="Last Closing Balance" widget="monetary" options="{'currency_field': 'currency_id'}"/>
2323 <field name="total_entry_encoding" widget="monetary" options="{'currency_field': 'currency_id'}"/>
2325 <group string="Closing Balance">
2326 <field name="balance_end" widget="monetary" options="{'currency_field': 'currency_id'}"/>
2333 <record id="account_cash_statement_graph" model="ir.ui.view">
2334 <field name="name">account.bank.statement.graph</field>
2335 <field name="model">account.bank.statement</field>
2336 <field name="arch" type="xml">
2337 <graph string="Account Statistics" type="bar">
2338 <field name="date"/>
2339 <field name="balance_start" operator="+"/>
2340 <field name="balance_end" operator="+"/>
2344 <record id="action_view_bank_statement_tree" model="ir.actions.act_window">
2345 <field name="name">Cash Registers</field>
2346 <field name="type">ir.actions.act_window</field>
2347 <field name="res_model">account.bank.statement</field>
2348 <field name="view_type">form</field>
2349 <field name="view_mode">tree,form,graph</field>
2350 <field name="view_id" ref="view_cash_statement_tree"/>
2351 <field name="search_view_id" ref="view_account_bank_statement_filter"/>
2352 <field name="domain">[('journal_id.type', '=', 'cash')]</field>
2353 <field name="context">{'journal_type':'cash'}</field>
2354 <field name="help" type="html">
2355 <p class="oe_view_nocontent_create">
2356 Click to create a new cash log.
2358 A Cash Register allows you to manage cash entries in your cash
2359 journals. This feature provides an easy way to follow up cash
2360 payments on a daily basis. You can enter the coins that are in
2361 your cash box, and then post entries when money comes in or
2362 goes out of the cash box.
2367 <record model="ir.actions.act_window.view" id="act_cash_statement1_all">
2368 <field name="sequence" eval="1"/>
2369 <field name="view_mode">tree</field>
2370 <field name="view_id" ref="view_cash_statement_tree"/>
2371 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2373 <record model="ir.actions.act_window.view" id="act_cash_statement2_all">
2374 <field name="sequence" eval="1"/>
2375 <field name="view_mode">form</field>
2376 <field name="view_id" ref="view_bank_statement_form2"/>
2377 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2379 <record model="ir.actions.act_window.view" id="act_cash_statement3_all">
2380 <field name="sequence" eval="1"/>
2381 <field name="view_mode">graph</field>
2382 <field name="view_id" ref="account_cash_statement_graph"/>
2383 <field name="act_window_id" ref="action_view_bank_statement_tree"/>
2385 <menuitem action="action_view_bank_statement_tree" id="journal_cash_move_lines"
2386 parent="menu_finance_bank_and_cash"/>
2388 <menuitem id="menu_account_customer" name="Customers"
2389 parent="menu_finance_receivables"
2390 action="base.action_partner_customer_form" sequence="100"/>
2392 <menuitem id="menu_account_supplier" name="Suppliers"
2393 parent="menu_finance_payables"
2394 action="base.action_partner_supplier_form" sequence="100"/>
2396 <!-- Account Reports -->
2397 <record id="view_account_financial_report_form" model="ir.ui.view">
2398 <field name="name">account.financial.report.form</field>
2399 <field name="model">account.financial.report</field>
2400 <field name="arch" type="xml">
2401 <form string="Account Report" version="7.0">
2403 <field name="name"/>
2404 <field name="parent_id"/>
2405 <field name="sequence"/>
2406 <field name="type"/>
2407 <field name="sign"/>
2408 <field name="style_overwrite"/>
2411 <page string="Report">
2413 <field name="display_detail" attrs="{'invisible': [('type','not in',['accounts','account_type'])]}"/>
2414 <field name="account_report_id" attrs="{'invisible': [('type', '!=', 'account_report')]}"/>
2416 <field name="account_ids" attrs="{'invisible': [('type', '!=', 'accounts')]}"/>
2417 <field name="account_type_ids" attrs="{'invisible': [('type', '!=', 'account_type')]}"/>
2423 <record id="view_account_financial_report_tree" model="ir.ui.view">
2424 <field name="name">account.financial.report.tree</field>
2425 <field name="model">account.financial.report</field>
2426 <field name="arch" type="xml">
2427 <tree string="Account Report">
2428 <field name="name"/>
2429 <field name="parent_id" invisible="1"/>
2430 <field name="type"/>
2431 <field name="account_report_id"/>
2435 <record id="view_account_financial_report_search" model="ir.ui.view">
2436 <field name="name">account.financial.report.search</field>
2437 <field name="model">account.financial.report</field>
2438 <field name="arch" type="xml">
2439 <search string="Account Report">
2440 <field name="name" string="Account Report"/>
2441 <field name="type"/>
2442 <field name="account_report_id"/>
2443 <group expand="0" string="Group By...">
2444 <filter string="Parent Report" icon="terp-folder-orange" domain="" context="{'group_by':'parent_id'}"/>
2445 <filter string="Report Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
2450 <record id="action_account_financial_report_tree" model="ir.actions.act_window">
2451 <field name="name">Financial Reports</field>
2452 <field name="type">ir.actions.act_window</field>
2453 <field name="res_model">account.financial.report</field>
2454 <field name="view_type">form</field>
2455 <field name="view_mode">tree,form</field>
2456 <field name="search_view_id" ref="view_account_financial_report_search"/>
2457 <field name="view_id" ref="view_account_financial_report_tree"/>
2459 <menuitem id="menu_account_financial_reports_tree" name="Account Reports" parent="menu_account_reports" action="action_account_financial_report_tree"/>
2461 <record id="view_account_report_tree_hierarchy" model="ir.ui.view">
2462 <field name="name">account.report.hierarchy</field>
2463 <field name="model">account.financial.report</field>
2464 <field name="field_parent">children_ids</field>
2465 <field name="arch" type="xml">
2466 <tree string="Account Reports Hierarchy">
2467 <field name="name"/>
2468 <field name="type"/>
2469 <field name="parent_id" invisible="1"/>
2470 <field name="account_report_id"/>
2474 <record id="action_account_report_tree_hierarchy" model="ir.actions.act_window">
2475 <field name="name">Financial Reports Hierarchy</field>
2476 <field name="res_model">account.financial.report</field>
2477 <field name="view_type">tree</field>
2478 <field name="view_id" ref="view_account_report_tree_hierarchy"/>
2479 <field name="domain">[('parent_id','=',False)]</field>
2481 <menuitem id="menu_account_report_tree_hierarchy" name="Account Reports Hierarchy"
2482 parent="menu_account_reports" action="action_account_report_tree_hierarchy"/>