2008-07-01 15:58:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2008-09-10 17:56:00 +00:00
|
|
|
<openerp>
|
2008-06-29 08:26:07 +00:00
|
|
|
<data>
|
2008-07-02 04:46:14 +00:00
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
<!--
|
2008-09-16 10:37:53 +00:00
|
|
|
Invoices
|
|
|
|
-->
|
2008-07-02 04:46:14 +00:00
|
|
|
|
2008-09-03 14:20:53 +00:00
|
|
|
<record id="view_invoice_line_calendar" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.calendar</field>
|
|
|
|
<field name="model">account.invoice</field>
|
|
|
|
<field name="type">calendar</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<calendar string="Invoices" color="journal_id" date_start="date_invoice">
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="amount_total"/>
|
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-09-16 10:37:53 +00:00
|
|
|
<record model="ir.ui.view" id="view_invoice_graph">
|
|
|
|
<field name="name">account.invoice.graph</field>
|
|
|
|
<field name="model">account.invoice</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph string="Invoices" type="bar">
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="amount_total" operator="+"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_invoice_line_tree" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.line.tree</field>
|
|
|
|
<field name="model">account.invoice.line</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Invoice Line">
|
|
|
|
<field name="name"/>
|
2009-06-25 13:57:11 +00:00
|
|
|
<field name="account_id" groups="base.group_user"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="quantity"/>
|
|
|
|
<field name="uos_id"/>
|
|
|
|
<field name="price_unit"/>
|
|
|
|
<field name="discount"/>
|
|
|
|
<field name="price_subtotal"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_invoice_line_form" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.line.form</field>
|
|
|
|
<field name="model">account.invoice.line</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Invoice Line">
|
2008-06-29 08:26:07 +00:00
|
|
|
<notebook>
|
2008-07-01 15:58:58 +00:00
|
|
|
<page string="Line">
|
2009-12-04 10:29:03 +00:00
|
|
|
<field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.address_invoice_id, parent.currency_id, {'company_id': parent.company_id})"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="uos_id"/>
|
|
|
|
<field name="quantity" select="1"/>
|
|
|
|
<field name="price_unit" select="1"/>
|
|
|
|
<field name="discount"/>
|
|
|
|
<field colspan="4" name="name" select="1"/>
|
2008-11-18 06:46:13 +00:00
|
|
|
<field colspan="4" name="origin" select="1"/>
|
2009-06-25 13:57:11 +00:00
|
|
|
<field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '<>', 'view')]" name="account_id" on_change="onchange_account_id(parent.fiscal_position,account_id)" groups="base.group_user"/>
|
|
|
|
<field domain="[('type','<>','view'), ('company_id', '=', parent.company_id)]" name="account_analytic_id" groups="base.group_user"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
<newline/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="price_subtotal"/>
|
2009-12-23 16:15:54 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
2009-05-28 05:56:33 +00:00
|
|
|
<field colspan="4" name="invoice_line_tax_id" context="{'type':parent.type}" domain="[('parent_id','=',False),('company_id', '=', parent.company_id)]"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</page>
|
2008-07-01 15:58:58 +00:00
|
|
|
<page string="Notes">
|
|
|
|
<field colspan="4" name="note" nolabel="1"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_invoice_tax_tree" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.tax.tree</field>
|
|
|
|
<field name="model">account.invoice.tax</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Manual Invoice Taxes">
|
|
|
|
<field name="sequence"/>
|
|
|
|
<field name="manual"/>
|
|
|
|
<field name="name"/>
|
2009-06-25 13:57:11 +00:00
|
|
|
<field name="account_id" groups="base.group_user"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="base"/>
|
|
|
|
<field name="amount"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_invoice_tax_form" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.tax.form</field>
|
|
|
|
<field name="model">account.invoice.tax</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Manual Invoice Taxes">
|
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="sequence"/>
|
2009-06-25 13:57:11 +00:00
|
|
|
<field name="account_id" select="1" groups="base.group_user"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="manual" select="1"/>
|
|
|
|
<field name="amount" select="1"/>
|
|
|
|
<field name="base" readonly="0"/>
|
|
|
|
<separator colspan="4" string="Tax codes"/>
|
|
|
|
<field name="base_code_id"/>
|
|
|
|
<field name="base_amount"/>
|
|
|
|
<field name="tax_code_id"/>
|
|
|
|
<field name="tax_amount"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-02 04:46:14 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="invoice_tree" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.tree</field>
|
|
|
|
<field name="model">account.invoice</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2009-12-23 11:43:11 +00:00
|
|
|
<tree colors="blue:state in ('draft');black:state not in ('draft')" string="Invoice">
|
2010-03-02 12:40:41 +00:00
|
|
|
<field name="date_invoice" select="1"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="number"/>
|
2009-06-25 13:57:11 +00:00
|
|
|
<field name="partner_id" groups="base.group_user"/>
|
2010-03-02 12:40:41 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="journal_id" invisible="1"/>
|
|
|
|
<field name="period_id" invisible="1"/>
|
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="date_due"/>
|
|
|
|
<field name="origin"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="currency_id"/>
|
2010-03-02 12:40:41 +00:00
|
|
|
<field name="residual" sum="Residual Amount"/>
|
|
|
|
<field name="amount_untaxed" sum="Untaxed Amount"/>
|
|
|
|
<field name="amount_total" sum="Total Amount"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="state"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-02 04:46:14 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="invoice_supplier_form" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.supplier.form</field>
|
|
|
|
<field name="model">account.invoice</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="priority">2</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Supplier invoice">
|
2008-12-14 16:46:57 +00:00
|
|
|
<group col="6" colspan="4">
|
|
|
|
<field domain="[('type', '=', 'purchase')]" name="journal_id" select="2"/>
|
|
|
|
<field name="type" readonly="1" select="2"/>
|
2010-03-29 12:48:54 +00:00
|
|
|
<field name="number" select="1" readonly="1"/>
|
2009-11-10 12:49:20 +00:00
|
|
|
<field name="partner_id" domain="[('supplier','=', 1)]" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank,company_id)" select="1" context="{'default_customer': 0}"/>
|
2008-12-14 16:46:57 +00:00
|
|
|
<field domain="[('partner_id','=',partner_id)]" name="address_invoice_id"/>
|
2010-03-29 12:48:54 +00:00
|
|
|
|
|
|
|
<field name="currency_id" domain="[('company_id','=', company_id)]" on_change="onchange_currency_id(currency_id, company_id)" select="2"/>
|
|
|
|
<field name="date_invoice" select="1"/>
|
|
|
|
<field name="period_id" groups="base.group_user"/>
|
|
|
|
<group colspan="2" col="1" groups="base.group_user">
|
|
|
|
<label align="0.0" string="(keep empty to use the current period)"/>
|
2010-03-30 12:47:02 +00:00
|
|
|
</group>
|
2008-12-14 16:46:57 +00:00
|
|
|
</group>
|
2008-08-28 23:33:53 +00:00
|
|
|
<notebook colspan="4">
|
2008-07-01 15:58:58 +00:00
|
|
|
<page string="Invoice">
|
2010-03-29 12:48:54 +00:00
|
|
|
<field domain="[('type','<>','view'), ('company_id', '=', company_id),('journal_id','=',journal_id)]" name="account_id" groups="base.group_user"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="reference_type" nolabel="1" select="2" size="0"/>
|
|
|
|
<field name="reference" nolabel="1" select="1"/>
|
2010-03-29 12:48:54 +00:00
|
|
|
<field name="date_due" select="1"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="check_total" required="2"/>
|
|
|
|
<field colspan="4" default_get="{'check_total': check_total, 'invoice_line': invoice_line, 'address_invoice_id': address_invoice_id, 'partner_id': partner_id, 'price_type': 'price_type' in dir() and price_type or False}" name="invoice_line" nolabel="1">
|
2010-03-29 12:48:54 +00:00
|
|
|
<tree string="Invoice lines">
|
2009-12-04 10:29:03 +00:00
|
|
|
<field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.address_invoice_id, parent.currency_id, {'company_id': parent.company_id})"/>
|
2009-01-19 16:49:29 +00:00
|
|
|
<field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '<>', 'view')]" name="account_id" on_change="onchange_account_id(parent.fiscal_position,account_id)"/>
|
2009-01-21 13:53:03 +00:00
|
|
|
<field name="invoice_line_tax_id" view_mode="2" context="{'type':parent.type}" domain="[('parent_id','=',False)]"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field domain="[('type','<>','view'), ('company_id', '=', parent.company_id)]" name="account_analytic_id"/>
|
|
|
|
<field name="quantity"/>
|
|
|
|
<field name="price_unit"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
<!-- Removed if subtotal is set -->
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="price_subtotal"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field invisible="True" name="uos_id"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<group col="1" colspan="2">
|
|
|
|
<field name="tax_line" nolabel="1">
|
|
|
|
<tree editable="bottom" string="Taxes">
|
|
|
|
<field name="name"/>
|
2009-03-19 09:47:23 +00:00
|
|
|
<field name="base" on_change="base_change(base,parent.currency_id,parent.company_id,parent.date_invoice)" readonly="1"/>
|
|
|
|
<field name="amount" on_change="amount_change(amount,parent.currency_id,parent.company_id,parent.date_invoice)"/>
|
2008-07-02 04:46:14 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<field invisible="True" name="base_amount"/>
|
|
|
|
<field invisible="True" name="tax_amount"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</group>
|
2008-07-01 15:58:58 +00:00
|
|
|
<group col="4" colspan="2">
|
2009-10-07 05:09:33 +00:00
|
|
|
<button colspan="2" name="button_reset_taxes" states="draft" string="Compute Taxes" type="object" icon="gtk-apply"/>
|
2008-09-23 20:56:51 +00:00
|
|
|
<field name="amount_untaxed"/>
|
2008-12-31 12:58:51 +00:00
|
|
|
<label string="" colspan="2"/>
|
2008-09-23 20:56:51 +00:00
|
|
|
<field name="amount_tax"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="reconciled"/>
|
2008-09-23 20:56:51 +00:00
|
|
|
<field name="amount_total"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="state" select="2"/>
|
2008-09-23 20:56:51 +00:00
|
|
|
<field name="residual"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<group col="3" colspan="4">
|
2009-09-24 10:46:21 +00:00
|
|
|
<button name="invoice_open" states="draft,proforma2" string="Validate" icon="gtk-apply"/>
|
2009-01-28 15:14:06 +00:00
|
|
|
<button name="invoice_cancel" states="draft,proforma2,sale,open" string="Cancel" icon="gtk-cancel"/>
|
|
|
|
<button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
|
|
|
|
<button name='%(wizard_paid_open)d' type='action' string='Re-Open' states='paid' icon="gtk-convert"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</page>
|
2008-07-01 15:58:58 +00:00
|
|
|
<page string="Other Info">
|
2010-03-29 12:48:54 +00:00
|
|
|
<field domain="[('partner_id', '=', partner_id)]" name="partner_bank" on_change="onchange_partner_bank(partner_bank)" select="2"/>
|
|
|
|
|
2010-02-16 07:05:46 +00:00
|
|
|
<field name="company_id" on_change="onchange_company_id(company_id,partner_id,type,invoice_line,currency_id)" widget="selection" groups="base.group_multi_company"/>
|
2009-10-22 13:40:16 +00:00
|
|
|
<field name="fiscal_position" groups="base.group_extended" widget="selection"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
<newline/>
|
2009-10-22 13:40:16 +00:00
|
|
|
<field name="payment_term" widget="selection"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="name" select="2"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
<newline/>
|
2008-10-20 20:49:11 +00:00
|
|
|
<field name="origin" select="2"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field colspan="4" domain="[('partner_id','=',partner_id)]" name="address_contact_id"/>
|
|
|
|
<field name="move_id"/>
|
2009-10-15 14:11:27 +00:00
|
|
|
<separator colspan="4" string="Additional Information"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field colspan="4" name="comment" nolabel="1"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</page>
|
2008-09-12 07:21:22 +00:00
|
|
|
<page string="Payments">
|
2009-10-22 13:40:16 +00:00
|
|
|
<field name="payment_ids" colspan="4" nolabel="1" >
|
2008-10-20 20:49:11 +00:00
|
|
|
<tree string="Payments">
|
|
|
|
<field name="date"/>
|
|
|
|
<field name="ref"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="journal_id"/>
|
|
|
|
<field name="debit"/>
|
|
|
|
<field name="credit"/>
|
2009-09-07 16:40:12 +00:00
|
|
|
<field name="amount_currency"/>
|
|
|
|
<field name="currency_id"/>
|
2008-10-20 20:49:11 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</page>
|
2008-06-29 08:26:07 +00:00
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-02 04:46:14 +00:00
|
|
|
|
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="invoice_form" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.form</field>
|
|
|
|
<field name="model">account.invoice</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Invoice">
|
2008-08-29 11:35:28 +00:00
|
|
|
<group colspan="4" col="6">
|
2009-06-25 13:57:11 +00:00
|
|
|
<field name="journal_id" select="2" groups="base.group_user"/>
|
2008-08-29 11:35:28 +00:00
|
|
|
<field name="type" readonly="1" select="2"/>
|
|
|
|
<field name="number" select="1"/>
|
2009-11-10 12:49:20 +00:00
|
|
|
<field name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank,company_id)" select="1" groups="base.group_user"/>
|
2008-08-29 11:35:28 +00:00
|
|
|
<field domain="[('partner_id','=',partner_id)]" name="address_invoice_id"/>
|
2009-12-29 06:00:00 +00:00
|
|
|
<field name="currency_id" domain="[('company_id','=', company_id)]" on_change="onchange_currency_id(currency_id, company_id)" select="2"/>
|
2009-03-15 16:29:55 +00:00
|
|
|
<field name="date_invoice" select="1"/>
|
2009-06-25 13:57:11 +00:00
|
|
|
<field name="period_id" groups="base.group_user"/>
|
|
|
|
<group colspan="2" col="1" groups="base.group_user">
|
|
|
|
<label align="0.0" string="(keep empty to use the current period)"/>
|
|
|
|
</group>
|
2008-08-29 11:35:28 +00:00
|
|
|
</group>
|
2008-08-28 23:33:53 +00:00
|
|
|
<notebook colspan="4">
|
2008-07-01 15:58:58 +00:00
|
|
|
<page string="Invoice">
|
2009-06-25 13:57:11 +00:00
|
|
|
<field domain="[('type','<>','view'), ('company_id', '=', company_id),('journal_id','=',journal_id)]" name="account_id" groups="base.group_user"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="name" select="2"/>
|
2009-10-22 13:40:16 +00:00
|
|
|
<field name="payment_term" widget="selection"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field colspan="4" name="invoice_line" nolabel="1" widget="one2many_list"/>
|
|
|
|
<group col="1" colspan="2">
|
|
|
|
<field name="tax_line" nolabel="1">
|
|
|
|
<tree editable="bottom" string="Taxes">
|
|
|
|
<field name="name"/>
|
2009-03-19 09:47:23 +00:00
|
|
|
<field name="base" on_change="base_change(base,parent.currency_id,parent.company_id,parent.date_invoice)" readonly="1"/>
|
|
|
|
<field name="amount" on_change="amount_change(amount,parent.currency_id,parent.company_id,parent.date_invoice)"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field invisible="True" name="base_amount"/>
|
|
|
|
<field invisible="True" name="tax_amount"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</group>
|
2008-07-01 15:58:58 +00:00
|
|
|
<group col="4" colspan="2">
|
2009-09-24 10:46:21 +00:00
|
|
|
<button colspan="2" name="button_reset_taxes" states="draft" string="Compute Taxes" type="object" groups="base.group_user" icon="gtk-apply"/>
|
2008-09-23 20:56:51 +00:00
|
|
|
<field name="amount_untaxed"/>
|
2008-12-31 12:58:51 +00:00
|
|
|
<label string="" colspan="2"/>
|
2008-09-23 20:56:51 +00:00
|
|
|
<field name="amount_tax"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="reconciled"/>
|
2008-09-23 20:56:51 +00:00
|
|
|
<field name="amount_total"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="state" select="2"/>
|
2008-09-23 20:56:51 +00:00
|
|
|
<field name="residual"/>
|
2009-06-25 13:57:11 +00:00
|
|
|
<group col="3" colspan="4" groups="base.group_user">
|
2009-01-28 15:14:06 +00:00
|
|
|
<button name="invoice_proforma2" states="draft" string="PRO-FORMA" icon="gtk-print"/>
|
|
|
|
<button name="invoice_open" states="draft,proforma2" string="Create" icon="gtk-execute"/>
|
|
|
|
<button name="invoice_cancel" states="draft,proforma2,sale,open" string="Cancel" icon="gtk-cancel"/>
|
|
|
|
<button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
|
|
|
|
<button name='%(wizard_paid_open)d' type='action' string='Re-Open' states='paid' icon="gtk-convert"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</page>
|
2008-07-01 15:58:58 +00:00
|
|
|
<page string="Other Info">
|
2010-02-16 07:05:46 +00:00
|
|
|
<field name="company_id" on_change="onchange_company_id(company_id,partner_id,type,invoice_line,currency_id)" widget="selection" groups="base.group_multi_company"/>
|
2009-10-22 13:40:16 +00:00
|
|
|
<field name="fiscal_position" groups="base.group_extended,base.group_user" widget="selection"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
<newline/>
|
2010-03-02 12:40:41 +00:00
|
|
|
<field name="date_due"/>
|
|
|
|
<field name="user_id"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
<newline/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field domain="[('partner_id.ref_companies', 'in', [company_id])]" name="partner_bank" select="2"/>
|
2008-10-20 20:49:11 +00:00
|
|
|
<field name="origin" select="2"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field colspan="4" domain="[('partner_id','=',partner_id)]" name="address_contact_id"/>
|
2009-06-25 13:57:11 +00:00
|
|
|
<field name="move_id" groups="base.group_user"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<separator colspan="4" string="Additionnal Information"/>
|
|
|
|
<field colspan="4" name="comment" nolabel="1"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</page>
|
2008-09-12 07:21:22 +00:00
|
|
|
<page string="Payments">
|
2008-10-20 20:49:11 +00:00
|
|
|
<field name="payment_ids" colspan="4" nolabel="1">
|
|
|
|
<tree string="Payments">
|
|
|
|
<field name="date"/>
|
|
|
|
<field name="ref"/>
|
|
|
|
<field name="name"/>
|
2009-06-25 13:57:11 +00:00
|
|
|
<field name="journal_id" groups="base.group_user"/>
|
2008-10-20 20:49:11 +00:00
|
|
|
<field name="debit"/>
|
|
|
|
<field name="credit"/>
|
2009-09-07 16:40:12 +00:00
|
|
|
<field name="amount_currency"/>
|
|
|
|
<field name="currency_id"/>
|
2008-10-20 20:49:11 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</page>
|
2008-06-29 08:26:07 +00:00
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-07-02 04:46:14 +00:00
|
|
|
|
2009-09-24 10:46:21 +00:00
|
|
|
<record id="view_account_invoice_filter" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.select</field>
|
|
|
|
<field name="model">account.invoice</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Invoice">
|
2009-10-29 10:16:18 +00:00
|
|
|
<group col="10" colspan="4">
|
2010-02-04 07:58:57 +00:00
|
|
|
<filter icon="terp-account" string="Draft" domain="[('state','=','draft')]" help="Draft Invoices"/>
|
2009-11-25 09:27:52 +00:00
|
|
|
<filter icon="terp-account" string="Proforma" domain="[('state','=','proforma2')]" help="Proforma Invoices"/>
|
2010-03-02 12:40:41 +00:00
|
|
|
<filter icon="terp-account" string="Unpaid" domain="[('state','=','open')]" help="Unpaid Invoices"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="number"/>
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="user_id">
|
|
|
|
<filter string="My Invoices" icon="terp-account" domain="[('user_id','=',uid)]"/>
|
|
|
|
</field>
|
|
|
|
<field name="origin"/>
|
|
|
|
<field name="amount_total"/>
|
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<group expand="1" string="Group By..." colspan="12" col="10">
|
|
|
|
<filter string="Journal" icon="terp-account" domain="[]" context="{'group_by':'journal_id'}"/>
|
|
|
|
<filter string="Period" icon="terp-account" domain="[]" context="{'group_by':'period_id'}"/>
|
2010-01-28 17:13:09 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-02-16 09:54:45 +00:00
|
|
|
<filter string="Partner" icon="terp-account" domain="[]" context="{'group_by':'partner_id'}"/>
|
2010-03-02 12:40:41 +00:00
|
|
|
<filter string="Salesman" icon="terp-account" domain="[]" context="{'group_by':'user_id'}"/>
|
|
|
|
<filter string="State" icon="terp-account" domain="[]" context="{'group_by':'state'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-03-11 11:42:51 +00:00
|
|
|
<filter string="Invoice Date" icon="terp-account" domain="[]" context="{'group_by':'date_invoice'}"/>
|
|
|
|
<filter string="Due Date" icon="terp-account" domain="[]" context="{'group_by':'date_due'}"/>
|
2010-03-02 12:40:41 +00:00
|
|
|
</group>
|
2009-09-24 10:46:21 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2008-07-02 04:46:14 +00:00
|
|
|
<record id="action_invoice_tree" model="ir.actions.act_window">
|
|
|
|
<field name="name">Invoices</field>
|
|
|
|
<field name="res_model">account.invoice</field>
|
|
|
|
<field name="view_type">form</field>
|
2008-09-09 12:24:44 +00:00
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
2008-07-02 04:46:14 +00:00
|
|
|
<field name="view_id" ref="invoice_tree"/>
|
|
|
|
<field name="context">{'type':'out_invoice'}</field>
|
2009-11-23 13:47:57 +00:00
|
|
|
<field name="search_view_id" ref="view_account_invoice_filter"/>
|
2008-07-02 04:46:14 +00:00
|
|
|
</record>
|
2010-02-01 12:12:35 +00:00
|
|
|
|
2010-02-05 12:15:55 +00:00
|
|
|
<record id="action_invoice_tree_pending_invoice" model="ir.actions.act_window">
|
|
|
|
<field name="name">Pending Invoice</field>
|
2010-02-01 12:12:35 +00:00
|
|
|
<field name="res_model">account.invoice</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
|
|
|
<field name="view_id" ref="invoice_tree"/>
|
|
|
|
<field name="context">{'type':'out_invoice'}</field>
|
|
|
|
<field name="domain">[('state','=','draft')]</field>
|
|
|
|
<!-- <field name="search_view_id" ref="view_account_invoice_filter"/>-->
|
|
|
|
</record>
|
|
|
|
|
2008-07-02 04:46:14 +00:00
|
|
|
<record id="action_invoice_tree_view1" model="ir.actions.act_window.view">
|
|
|
|
<field eval="1" name="sequence"/>
|
|
|
|
<field name="view_mode">tree</field>
|
|
|
|
<field name="act_window_id" ref="action_invoice_tree"/>
|
|
|
|
</record>
|
|
|
|
<record id="action_invoice_tree_view2" model="ir.actions.act_window.view">
|
|
|
|
<field eval="2" name="sequence"/>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="view_id" ref="invoice_form"/>
|
|
|
|
<field name="act_window_id" ref="action_invoice_tree"/>
|
|
|
|
</record>
|
2010-01-28 17:13:09 +00:00
|
|
|
<menuitem name="Invoices" id="menu_finance_invoice" parent="account.menu_finance" sequence="2"/>
|
2008-07-02 04:46:14 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="action_invoice_tree1" model="ir.actions.act_window">
|
2008-07-02 04:46:14 +00:00
|
|
|
<field name="name">Customer Invoices</field>
|
|
|
|
<field name="res_model">account.invoice</field>
|
|
|
|
<field name="view_type">form</field>
|
2008-09-09 12:24:44 +00:00
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
2008-07-02 04:46:14 +00:00
|
|
|
<field eval="False" name="view_id"/>
|
|
|
|
<field name="domain">[('type','=','out_invoice')]</field>
|
|
|
|
<field name="context">{'type':'out_invoice'}</field>
|
2009-11-23 13:47:57 +00:00
|
|
|
<field name="search_view_id" ref="view_account_invoice_filter"/>
|
2008-07-02 04:46:14 +00:00
|
|
|
</record>
|
2008-09-26 06:34:59 +00:00
|
|
|
<record id="action_invoice_tree1_view1" model="ir.actions.act_window.view">
|
|
|
|
<field eval="1" name="sequence"/>
|
|
|
|
<field name="view_mode">tree</field>
|
|
|
|
<field name="act_window_id" ref="action_invoice_tree1"/>
|
|
|
|
</record>
|
|
|
|
<record id="action_invoice_tree1_view2" model="ir.actions.act_window.view">
|
|
|
|
<field eval="2" name="sequence"/>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="view_id" ref="invoice_form"/>
|
|
|
|
<field name="act_window_id" ref="action_invoice_tree1"/>
|
|
|
|
</record>
|
2008-07-02 04:46:14 +00:00
|
|
|
<menuitem action="action_invoice_tree1" id="menu_action_invoice_tree1" parent="account.menu_finance_invoice"/>
|
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="action_invoice_tree2" model="ir.actions.act_window">
|
2008-07-02 04:46:14 +00:00
|
|
|
<field name="name">Supplier Invoices</field>
|
|
|
|
<field name="res_model">account.invoice</field>
|
|
|
|
<field name="view_type">form</field>
|
2008-09-09 12:24:44 +00:00
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
2008-07-02 04:46:14 +00:00
|
|
|
<field eval="False" name="view_id"/>
|
|
|
|
<field name="domain">[('type','=','in_invoice')]</field>
|
|
|
|
<field name="context">{'type':'in_invoice'}</field>
|
2009-11-23 13:47:57 +00:00
|
|
|
<field name="search_view_id" ref="view_account_invoice_filter"/>
|
2008-07-02 04:46:14 +00:00
|
|
|
</record>
|
|
|
|
<menuitem action="action_invoice_tree2" id="menu_action_invoice_tree2" parent="account.menu_finance_invoice"/>
|
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="action_invoice_tree3" model="ir.actions.act_window">
|
2008-07-02 04:46:14 +00:00
|
|
|
<field name="name">Customer Refunds</field>
|
|
|
|
<field name="res_model">account.invoice</field>
|
|
|
|
<field name="view_type">form</field>
|
2008-09-09 12:24:44 +00:00
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
2008-07-02 04:46:14 +00:00
|
|
|
<field eval="False" name="view_id"/>
|
|
|
|
<field name="domain">[('type','=','out_refund')]</field>
|
|
|
|
<field name="context">{'type':'out_refund'}</field>
|
2009-11-23 13:47:57 +00:00
|
|
|
<field name="search_view_id" ref="view_account_invoice_filter"/>
|
2008-07-02 04:46:14 +00:00
|
|
|
</record>
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2009-12-01 11:15:09 +00:00
|
|
|
<record id="action_invoice_tree3_view1" model="ir.actions.act_window.view">
|
|
|
|
<field eval="1" name="sequence"/>
|
|
|
|
<field name="view_mode">tree</field>
|
|
|
|
<field name="act_window_id" ref="action_invoice_tree3"/>
|
|
|
|
</record>
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2009-12-01 11:15:09 +00:00
|
|
|
<record id="action_invoice_tree3_view2" model="ir.actions.act_window.view">
|
|
|
|
<field eval="2" name="sequence"/>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="view_id" ref="invoice_form"/>
|
|
|
|
<field name="act_window_id" ref="action_invoice_tree3"/>
|
|
|
|
</record>
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2008-07-02 04:46:14 +00:00
|
|
|
<menuitem action="action_invoice_tree3" id="menu_action_invoice_tree3" parent="account.menu_finance_invoice"/>
|
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="action_invoice_tree4" model="ir.actions.act_window">
|
2008-07-02 04:46:14 +00:00
|
|
|
<field name="name">Supplier Refunds</field>
|
|
|
|
<field name="res_model">account.invoice</field>
|
|
|
|
<field name="view_type">form</field>
|
2008-09-09 12:24:44 +00:00
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
2008-07-02 04:46:14 +00:00
|
|
|
<field eval="False" name="view_id"/>
|
|
|
|
<field name="domain">[('type','=','in_refund')]</field>
|
|
|
|
<field name="context">{'type':'in_refund'}</field>
|
2009-11-23 13:47:57 +00:00
|
|
|
<field name="search_view_id" ref="view_account_invoice_filter"/>
|
2008-07-02 04:46:14 +00:00
|
|
|
</record>
|
|
|
|
<menuitem action="action_invoice_tree4" id="menu_action_invoice_tree4" parent="account.menu_finance_invoice"/>
|
|
|
|
|
2008-09-03 13:47:19 +00:00
|
|
|
<act_window domain="[('partner_id','=',active_id)]" id="act_res_partner_2_account_invoice_opened" name="Invoices" res_model="account.invoice" src_model="res.partner"/>
|
2008-07-02 04:46:14 +00:00
|
|
|
|
2008-08-14 15:39:28 +00:00
|
|
|
<act_window domain="[('journal_id','=',active_id),('state','!=','draft'),('reconciled','=',False)]" id="act_account_journal_2_account_invoice_opened" name="Unpaid invoices" res_model="account.invoice" src_model="account.journal"/>
|
2008-07-02 04:46:14 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<act_window domain="[('account_analytic_id', '=', active_id)]" id="act_account_analytic_account_2_account_invoice_line" name="Invoice lines" res_model="account.invoice.line" src_model="account.analytic.account"/>
|
2008-07-02 04:46:14 +00:00
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|