2008-10-23 05:53:55 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-12-06 13:18:05 +00:00
|
|
|
<openerp>
|
2009-11-25 17:50:23 +00:00
|
|
|
<data>
|
|
|
|
<record model="ir.ui.view" id="view_voucher_tree">
|
|
|
|
<field name="name">account.voucher.tree</field>
|
|
|
|
<field name="model">account.voucher</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-08-07 05:00:07 +00:00
|
|
|
<tree colors="blue:state == 'draft';gray:state == 'cancel';red:audit" string="Voucher Entries">
|
|
|
|
<field name="date"/>
|
|
|
|
<field name="number"/>
|
|
|
|
<field name="reference"/>
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="journal_id" groups="account.group_account_user"/>
|
|
|
|
<field name="period_id" invisible="context.get('visible', True)"/>
|
|
|
|
<field name="type" invisible="context.get('visible', True)"/>
|
|
|
|
<field name="amount" sum="Total Amount"/>
|
|
|
|
<field name="audit" invisible="1"/>
|
|
|
|
<field name="state"/>
|
|
|
|
</tree>
|
2009-11-25 17:50:23 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2011-01-18 17:05:22 +00:00
|
|
|
<record model="ir.ui.view" id="view_voucher_line_form">
|
|
|
|
<field name="name">account.voucher.line.form</field>
|
|
|
|
<field name="model">account.voucher.line</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-09 14:13:14 +00:00
|
|
|
<form string="Voucher Lines" version="7.0">
|
2012-06-05 17:54:11 +00:00
|
|
|
<group col="4">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="account_id"/>
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="amount"/>
|
|
|
|
</group>
|
2011-01-18 17:05:22 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-09-22 06:23:08 +00:00
|
|
|
|
2012-11-20 10:42:07 +00:00
|
|
|
<!-- This general view is used in
|
|
|
|
Invoicing - Journal Entries - Journal Vouchers -->
|
2009-11-25 17:50:23 +00:00
|
|
|
<record model="ir.ui.view" id="view_voucher_form">
|
|
|
|
<field name="name">account.voucher.form</field>
|
|
|
|
<field name="model">account.voucher</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-08-06 13:23:01 +00:00
|
|
|
<form string="Accounting Voucher" version="7.0">
|
2012-07-16 13:42:33 +00:00
|
|
|
<header>
|
|
|
|
<button name="proforma_voucher" string="Post" states="draft" class="oe_highlight"/>
|
|
|
|
<button name="cancel_voucher" string="Cancel" type="object" states="posted" confirm="Are you sure to unreconcile this record?"/>
|
|
|
|
<button name="cancel_voucher" string="Cancel" states="draft,proforma" />
|
|
|
|
<button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft"/>
|
|
|
|
<field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
|
|
|
|
</header>
|
|
|
|
<sheet string="Accounting Voucher">
|
2012-09-14 10:51:25 +00:00
|
|
|
<group col="4" colspan="4">
|
2012-07-16 13:42:33 +00:00
|
|
|
<field name="partner_id" required="1" on_change="onchange_journal_voucher(line_ids, tax_id, amount, partner_id, journal_id, type)"/>
|
|
|
|
<field name="date" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id)"/>
|
|
|
|
<field name="journal_id" widget="selection" on_change="onchange_journal_voucher(line_ids, tax_id, amount, partner_id, journal_id, type)"/>
|
|
|
|
<field name="type" required="1"/>
|
|
|
|
<field name="name" colspan="2"/>
|
|
|
|
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
|
|
|
|
<field name="reference"/>
|
2012-09-14 10:51:25 +00:00
|
|
|
<field name="number"/>
|
|
|
|
<field name="currency_id" groups="base.group_multi_currency"/>
|
2012-07-16 13:42:33 +00:00
|
|
|
<field name="account_id" widget="selection" invisible="True"/>
|
2012-09-14 10:51:25 +00:00
|
|
|
<field name="payment_rate_currency_id" invisible="1"/>
|
2012-07-16 13:42:33 +00:00
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Voucher Entry">
|
|
|
|
<field name="line_ids" on_change="onchange_price(line_ids, tax_id, partner_id)" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}">
|
|
|
|
<tree string="Voucher Items" editable="bottom">
|
|
|
|
<field name="account_id"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="amount" sum="Total Amount"/>
|
|
|
|
<field name="type"/>
|
|
|
|
<field name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
2012-09-14 10:51:25 +00:00
|
|
|
<group>
|
|
|
|
<field name="narration" nolabel="1" placeholder="Internal Notes"/>
|
|
|
|
<group class="oe_subtotal_footer oe_right" attrs="{'invisible':[('type','in',['payment', 'receipt', False])]}">
|
|
|
|
<field name="tax_id" on_change="onchange_price(line_ids, tax_id, partner_id)" widget="selection" nolabel="1"/>
|
2012-07-16 13:42:33 +00:00
|
|
|
<field name="tax_amount" nolabel="1"/>
|
2012-09-14 10:51:25 +00:00
|
|
|
<div class="oe_subtotal_footer_separator">
|
|
|
|
<label for="amount"/>
|
|
|
|
<button type="object" icon="terp-stock_format-scientific" name="compute_tax" class="oe_link oe_edit_only" string="(Update)" attrs="{'invisible': [('state','!=','draft')]}"/>
|
|
|
|
</div>
|
|
|
|
<field name="amount" class="oe_subtotal_footer_separator" nolabel="1"/>
|
2012-07-16 13:42:33 +00:00
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
<page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
|
|
|
|
<group col="4">
|
|
|
|
<field name="period_id"/>
|
|
|
|
<field name="audit"/>
|
|
|
|
</group>
|
|
|
|
<field name="move_ids" readonly="1">
|
|
|
|
<tree string="Journal Items">
|
|
|
|
<field name="move_id"/>
|
|
|
|
<field name="ref"/>
|
|
|
|
<field name="date"/>
|
|
|
|
<field name="statement_id"/>
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="account_id"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="debit"/>
|
|
|
|
<field name="credit"/>
|
|
|
|
<field name="state"/>
|
|
|
|
<field name="reconcile_id"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</sheet>
|
|
|
|
<div class="oe_chatter">
|
2012-08-15 22:30:38 +00:00
|
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
2012-10-26 09:58:21 +00:00
|
|
|
<field name="message_ids" widget="mail_thread"/>
|
2012-07-16 13:42:33 +00:00
|
|
|
</div>
|
2009-11-25 17:50:23 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2012-07-18 10:21:09 +00:00
|
|
|
|
2010-06-29 06:29:06 +00:00
|
|
|
<record id="view_voucher_filter" model="ir.ui.view">
|
2010-05-20 19:35:09 +00:00
|
|
|
<field name="name">account.voucher.select</field>
|
|
|
|
<field name="model">account.voucher</field>
|
2010-09-14 22:15:34 +00:00
|
|
|
<field name="priority">1</field>
|
2010-05-20 19:35:09 +00:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Vouchers">
|
2012-07-20 05:33:26 +00:00
|
|
|
<field name="number" string="Voucher"/>
|
|
|
|
<field name="date"/>
|
|
|
|
<filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
|
|
|
|
<filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
|
2012-07-30 08:50:27 +00:00
|
|
|
<separator/>
|
2012-07-20 05:33:26 +00:00
|
|
|
<filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('state','=','posted'), ('audit','=',False)]" help="To Review"/>
|
2012-07-31 11:28:04 +00:00
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="journal_id" context="{'journal_id': self, 'set_visible':False}" />
|
|
|
|
<field name="period_id"/>
|
2011-03-15 14:08:59 +00:00
|
|
|
<group expand="0" string="Group By...">
|
2010-08-16 20:14:32 +00:00
|
|
|
<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
|
2010-06-29 06:39:24 +00:00
|
|
|
<filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
|
2010-08-25 16:42:19 +00:00
|
|
|
<filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
|
2012-05-04 11:57:48 +00:00
|
|
|
<filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
|
2010-06-29 06:39:24 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-07 09:04:11 +00:00
|
|
|
|
2010-07-25 18:05:49 +00:00
|
|
|
<record id="account_cash_statement_graph" model="ir.ui.view">
|
|
|
|
<field name="name">account.voucher.graph</field>
|
|
|
|
<field name="model">account.voucher</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph string="Voucher Statistics" type="bar">
|
|
|
|
<field name="date"/>
|
|
|
|
<field name="amount" operator="+"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-08-20 04:16:03 +00:00
|
|
|
|
2010-06-23 19:44:06 +00:00
|
|
|
<!-- Journal Vouchers -->
|
|
|
|
<record model="ir.actions.act_window" id="action_voucher_list">
|
|
|
|
<field name="name">Journal Vouchers</field>
|
|
|
|
<field name="res_model">account.voucher</field>
|
|
|
|
<field name="view_type">form</field>
|
2010-07-25 18:05:49 +00:00
|
|
|
<field name="view_mode">tree,form,graph</field>
|
2010-07-07 13:05:41 +00:00
|
|
|
<field name="context">{'type':'general'}</field>
|
2010-06-23 19:44:06 +00:00
|
|
|
<field name="view_id" eval="view_voucher_tree"/>
|
2010-06-29 06:29:06 +00:00
|
|
|
<field name="search_view_id" ref="view_voucher_filter"/>
|
2010-06-23 19:44:06 +00:00
|
|
|
</record>
|
2010-09-16 17:52:58 +00:00
|
|
|
<record id="action_journal_voucher_tree" model="ir.actions.act_window.view">
|
|
|
|
<field eval="1" name="sequence"/>
|
|
|
|
<field name="view_mode">tree</field>
|
|
|
|
<field name="act_window_id" ref="action_voucher_list"/>
|
|
|
|
</record>
|
|
|
|
<record id="action_journal_voucher_form" model="ir.actions.act_window.view">
|
|
|
|
<field eval="2" name="sequence"/>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="view_id" ref="view_voucher_form"/>
|
|
|
|
<field name="act_window_id" ref="action_voucher_list"/>
|
|
|
|
</record>
|
2012-11-21 05:15:55 +00:00
|
|
|
<menuitem action="action_voucher_list" id="menu_encode_entries_by_voucher" parent="account.menu_finance_entries" sequence="6" groups="base.group_no_one"/>
|
2010-06-24 04:24:31 +00:00
|
|
|
|
2010-05-26 19:30:21 +00:00
|
|
|
<act_window
|
|
|
|
id="act_journal_voucher_open"
|
|
|
|
name="Voucher Entries"
|
2011-01-27 09:49:39 +00:00
|
|
|
context="{'search_default_journal_id': active_id, 'type':type, 'default_journal_id': active_id}"
|
2010-05-26 19:30:21 +00:00
|
|
|
res_model="account.voucher"
|
|
|
|
src_model="account.journal"/>
|
2010-08-20 04:16:03 +00:00
|
|
|
|
2010-07-09 04:54:54 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_review_voucher_list">
|
|
|
|
<field name="name">Vouchers Entries</field>
|
|
|
|
<field name="res_model">account.voucher</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="view_id" eval="view_voucher_tree"/>
|
|
|
|
<field name="domain">[('state','=','posted')]</field>
|
|
|
|
<field name="context">{'state':'posted'}</field>
|
2010-09-14 22:15:34 +00:00
|
|
|
<field name="search_view_id" ref="view_voucher_filter"/>
|
2010-07-09 04:54:54 +00:00
|
|
|
</record>
|
2010-09-22 06:23:08 +00:00
|
|
|
|
|
|
|
<record id="view_bank_statement_form_invoice" model="ir.ui.view">
|
|
|
|
<field name="name">account.bank.statement.invoice.form.inherit</field>
|
|
|
|
<field name="model">account.bank.statement</field>
|
|
|
|
<field name="inherit_id" ref="account.view_bank_statement_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-27 11:44:28 +00:00
|
|
|
<xpath expr="//div[@name='import_buttons']" position="inside">
|
|
|
|
<button name="%(action_view_account_statement_from_invoice_lines)d"
|
2012-11-07 15:22:20 +00:00
|
|
|
string="Import Invoices" type="action"
|
2010-09-22 06:23:08 +00:00
|
|
|
attrs="{'invisible':[('state','=','confirm')]}"/>
|
2012-06-28 14:04:54 +00:00
|
|
|
</xpath>
|
2010-09-22 06:23:08 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-07 09:04:11 +00:00
|
|
|
|
2012-11-13 12:30:13 +00:00
|
|
|
<record id="view_bank_statement_form_voucher" model="ir.ui.view">
|
2010-09-29 05:13:36 +00:00
|
|
|
<field name="name">account.bank.statement.voucher.tree.inherit</field>
|
|
|
|
<field name="model">account.bank.statement</field>
|
|
|
|
<field name="inherit_id" ref="account.view_bank_statement_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-05-22 08:50:37 +00:00
|
|
|
<xpath expr="//page[@name='statement_line_ids']/field[@name='line_ids']/tree/field[@name='amount']" position="after">
|
2012-11-13 12:30:13 +00:00
|
|
|
<field name="voucher_id" widget="many2onebutton" options="{'label':{'create':'Reconcile','edit':'Edit Reconciliation'}}" context="{'line_type': type, 'default_type': amount < 0 and 'payment' or 'receipt', 'type': amount < 0 and 'payment' or 'receipt', 'default_partner_id': partner_id, 'default_journal_id': parent.journal_id, 'default_amount': abs(amount), 'default_reference': ref, 'default_date': date, 'default_name': name, 'default_active': False}"/>
|
2010-09-29 05:13:36 +00:00
|
|
|
</xpath>
|
2012-06-06 06:02:47 +00:00
|
|
|
<xpath expr="//page[@name='statement_line_ids']/field[@name='line_ids']/form/group/field[@name='sequence']" position="before">
|
2012-11-13 12:30:13 +00:00
|
|
|
<field name="voucher_id" widget="many2onebutton" options="{'label':{'create':'Reconcile','edit':'Edit Reconciliation'}}" context="{'line_type': type, 'default_type': amount < 0 and 'payment' or 'receipt', 'type': amount < 0 and 'payment' or 'receipt', 'default_partner_id': partner_id, 'default_journal_id': parent.journal_id, 'default_amount': abs(amount), 'default_reference': ref, 'default_date': date, 'default_name': name, 'default_active': False}"/>
|
2010-10-26 16:07:13 +00:00
|
|
|
</xpath>
|
2012-11-10 18:01:29 +00:00
|
|
|
<field name="amount" position="attributes">
|
|
|
|
<attribute name="on_change">onchange_amount(amount)</attribute>
|
|
|
|
</field>
|
2010-10-26 16:07:13 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2012-11-07 15:22:20 +00:00
|
|
|
|
2010-10-26 16:07:13 +00:00
|
|
|
<record id="view_cash_statement_tree_voucher" model="ir.ui.view">
|
|
|
|
<field name="name">account.cash.statement.voucher.tree.inherit</field>
|
|
|
|
<field name="model">account.bank.statement</field>
|
|
|
|
<field name="inherit_id" ref="account.view_bank_statement_form2"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-05-22 08:50:37 +00:00
|
|
|
<xpath expr="//page/field[@name='line_ids']/tree/field[@name='amount']" position="after">
|
2010-10-29 05:55:58 +00:00
|
|
|
<field name="voucher_id" context="{'line_type': type, 'default_type': amount < 0 and 'payment' or 'receipt', 'type': amount < 0 and 'payment' or 'receipt', 'default_partner_id': partner_id, 'default_journal_id': parent.journal_id, 'default_amount': abs(amount), 'default_reference': ref, 'default_date': date, 'default_name': name}"/>
|
2010-10-26 16:07:13 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_cash_statement_form_voucher" model="ir.ui.view">
|
|
|
|
<field name="name">account.cash.statement.voucher.form.inherit</field>
|
|
|
|
<field name="model">account.bank.statement</field>
|
|
|
|
<field name="inherit_id" ref="account.view_bank_statement_form2"/>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-06 06:02:47 +00:00
|
|
|
<xpath expr="//page/field[@name='line_ids']/form/group/field[@name='amount']" position="after">
|
2010-10-29 05:55:58 +00:00
|
|
|
<field name="voucher_id" context="{'line_type': type, 'default_type': amount < 0 and 'payment' or 'receipt', 'type': amount < 0 and 'payment' or 'receipt', 'default_partner_id': partner_id, 'default_journal_id': parent.journal_id, 'default_amount': abs(amount), 'default_reference': ref, 'default_date': date, 'default_name': name}"/>
|
2010-09-18 12:43:30 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2012-10-15 13:50:27 +00:00
|
|
|
<!-- res.config form view -->
|
|
|
|
<record model="ir.ui.view" id="view_account_settings_currency_xchange_form">
|
|
|
|
<field name="name">account.config.settings.inherit</field>
|
|
|
|
<field name="inherit_id" ref="account.view_account_config_settings"/>
|
|
|
|
<field name="model">account.config.settings</field>
|
|
|
|
<field name="priority">20</field>
|
2011-11-24 15:42:16 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-10-15 13:50:27 +00:00
|
|
|
<xpath expr="//div[@name='group_multi_currency']" position="after">
|
|
|
|
<group attrs="{'invisible': [('group_multi_currency', '<>', True)]}" col="2">
|
|
|
|
<group>
|
|
|
|
<field name="income_currency_exchange_account_id"/>
|
|
|
|
<field name="expense_currency_exchange_account_id"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</xpath>
|
2011-11-24 15:42:16 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-08-19 11:51:57 +00:00
|
|
|
</data>
|
2012-08-11 10:03:22 +00:00
|
|
|
<data noupdate="1">
|
|
|
|
|
|
|
|
<!-- After installation of the module, open the related menu -->
|
|
|
|
<record id="action_client_invoice_menu" model="ir.actions.client">
|
|
|
|
<field name="name">Open Invoicing Menu</field>
|
|
|
|
<field name="tag">reload</field>
|
|
|
|
<field name="params" eval="{'menu_id': ref('account.menu_finance')}"/>
|
|
|
|
</record>
|
2012-09-16 11:42:49 +00:00
|
|
|
<record id="base.open_menu" model="ir.actions.todo">
|
2012-08-11 10:03:22 +00:00
|
|
|
<field name="action_id" ref="action_client_invoice_menu"/>
|
2012-09-16 11:42:49 +00:00
|
|
|
<field name="state">open</field>
|
2012-08-11 10:03:22 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
</data>
|
2009-05-14 07:06:09 +00:00
|
|
|
</openerp>
|