<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>

        <!--
		Invoices
		-->

        <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"/>
                    <field name="account_id"/>
                    <field name="quantity"/>
                    <field name="uos_id"/>
                    <field name="price_unit"/>
                    <field name="discount"/>
                    <field name="price_subtotal"/>
                </tree>
            </field>
        </record>
        <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">
                    <notebook>
                        <page string="Line">
                            <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id)" select="1"/>
                            <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"/>
                            <field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view')]" name="account_id" on_change="onchange_account_id(parent.partner_id,account_id)"/>
                            <field domain="[('type','&lt;&gt;','view'), ('company_id', '=', parent.company_id)]" name="account_analytic_id"/>
                            <newline/>
                            <field name="price_subtotal"/>
                            <field colspan="4" name="invoice_line_tax_id"/>
                        </page>
                        <page string="Notes">
                            <field colspan="4" name="note" nolabel="1"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>
        <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"/>
                    <field name="account_id"/>
                    <field name="base"/>
                    <field name="amount"/>
                </tree>
            </field>
        </record>
        <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"/>
                    <field name="account_id" select="1"/>
                    <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"/>
                </form>
            </field>
        </record>

        <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">
                <tree colors="blue:state=='draft'" string="Invoice">
                    <field name="name"/>
                    <field name="type"/>
                    <field name="number"/>
                    <field name="partner_id"/>
                    <field name="amount_untaxed" sum="Untaxed amount"/>
                    <field name="amount_total" sum="Total amount"/>
                    <field name="currency_id"/>
                    <field name="date_invoice"/>
                    <field name="date_due" select="1"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>

        <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">
                    <notebook>
                        <page string="Invoice">
                            <field domain="[('type', '=', 'purchase')]" name="journal_id" select="2"/>
                            <field name="type" readonly="1" select="2"/>
                            <field name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank)" select="1"/>
                            <field domain="[('partner_id','=',partner_id)]" name="address_invoice_id"/>
                            <field domain="[('type','&lt;&gt;','view'), ('company_id', '=', company_id),('journal_id','=',journal_id)]" name="account_id"/>
                            <field name="date_due" select="1"/>
                            <field domain="[('partner_id', '=', partner_id)]" name="partner_bank" on_change="onchange_partner_bank(partner_bank)" select="2"/>
                            <field name="reference_type" nolabel="1" select="2" size="0"/>
                            <field name="reference" nolabel="1" select="1"/>
                            <field name="check_total" required="2"/>
                            <field name="currency_id" on_change="onchange_currency_id(currency_id)" select="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">
                                <tree editable="bottom" string="Invoice lines">
                                    <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, price_unit, parent.address_invoice_id)"/>
                                    <field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view')]" name="account_id" on_change="onchange_account_id(parent.partner_id,account_id)"/>
                                    <field name="invoice_line_tax_id" view_mode="2"/>
                                    <field domain="[('type','&lt;&gt;','view'), ('company_id', '=', parent.company_id)]" name="account_analytic_id"/>
                                    <field name="quantity"/>
                                    <field name="price_unit"/>
                                     <!-- Removed if subtotal is set -->
                                    <field name="price_subtotal"/>
                                    <field name="name"/>
                                    <field invisible="True" name="uos_id"/>
                                </tree>
                            </field>
                            <group col="1" colspan="2">
                                <field name="tax_line" nolabel="1">
                                    <tree editable="bottom" string="Taxes">
                                        <field name="name"/>
                                        <field name="base" on_change="base_change(base)" readonly="1"/>
                                        <field name="amount" on_change="amount_change(amount)"/>

                                        <field invisible="True" name="base_amount"/>
                                        <field invisible="True" name="tax_amount"/>
                                    </tree>
                                </field>
                            </group>
                            <group col="4" colspan="2">
                                <label colspan="2"/>
                                <field name="amount_untaxed"/>
                                <button colspan="2" name="button_reset_taxes" states="draft" string="Reset taxes" type="object"/>
                                <field name="amount_tax"/>
                                <button colspan="2" name="button_compute" states="draft" string="Compute" type="object"/>
                                <field name="amount_total"/>
                                <field name="reconciled"/>
                                <field name="state" select="2"/>
                                <group col="3" colspan="4">
                                    <button name="invoice_open" states="draft,proforma" string="Validate"/>
                                    <button name="invoice_cancel" states="draft,proforma,sale,open" string="Cancel"/>
                                    <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
                                </group>
                            </group>
                        </page>
                        <page string="Other Info">
                            <field name="company_id"/>
                            <newline/>
                            <field name="payment_term" on_change="onchange_payment_term_date_invoice(payment_term, date_invoice)"/>
                            <field name="name" select="2"/>
                            <newline/>
                            <field name="number" select="2"/>
                            <field name="origin"/>
                            <field colspan="4" domain="[('partner_id','=',partner_id)]" name="address_contact_id"/>
                            <field name="move_id"/>
                            <field name="date_invoice" on_change="onchange_payment_term_date_invoice(payment_term, date_invoice)" select="1"/>
                            <field name="period_id"/>
                            <label align="0.0" colspan="2" string="(keep empty to use the current period)"/>
                            <separator colspan="4" string="Additionnal Information"/>
                            <field colspan="4" name="comment" nolabel="1"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>


        <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">
                    <notebook>
                        <page string="Invoice">
                            <field name="journal_id" select="2"/>
                            <field name="type" readonly="1" select="2"/>
                            <field name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term)" select="1"/>
                            <field domain="[('partner_id','=',partner_id)]" name="address_invoice_id"/>
                            <field domain="[('type','&lt;&gt;','view'), ('company_id', '=', company_id),('journal_id','=',journal_id)]" name="account_id"/>
                            <field name="payment_term" on_change="onchange_payment_term_date_invoice(payment_term, date_invoice)"/>
                            <field name="name" select="2"/>
                            <field name="number" select="1"/>
                            <field name="currency_id" on_change="onchange_currency_id(currency_id)" select="2"/>
                            <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"/>
                                        <field name="base" on_change="base_change(base)" readonly="1"/>
                                        <field name="amount" on_change="amount_change(amount)"/>
                                        <field invisible="True" name="base_amount"/>
                                        <field invisible="True" name="tax_amount"/>
                                    </tree>
                                </field>
                            </group>
                            <group col="4" colspan="2">
                                <label colspan="2"/>
                                <field name="amount_untaxed"/>
                                <button colspan="2" name="button_reset_taxes" states="draft" string="Reset taxes" type="object"/>
                                <field name="amount_tax"/>
                                <button colspan="2" name="button_compute" states="draft" string="Compute" type="object"/>
                                <field name="amount_total"/>
                                <field name="reconciled"/>
                                <field name="state" select="2"/>
                                <group col="3" colspan="4">
                                    <button name="invoice_proforma" states="draft" string="PRO-FORMA"/>
                                    <button name="invoice_open" states="draft,proforma" string="Create"/>
                                    <button name="invoice_cancel" states="draft,proforma,sale,open" string="Cancel"/>
                                    <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
                                </group>
                            </group>
                        </page>
                        <page string="Other Info">
                            <field name="company_id"/>
                            <newline/>
                            <field name="date_due" select="1"/>
                            <newline/>
                            <field domain="[('partner_id.ref_companies', 'in', [company_id])]" name="partner_bank" select="2"/>
                            <field name="origin"/>
                            <field colspan="4" domain="[('partner_id','=',partner_id)]" name="address_contact_id"/>
                            <field name="move_id"/>
                            <field name="date_invoice" on_change="onchange_payment_term_date_invoice(payment_term, date_invoice)" select="1"/>
                            <field name="period_id"/>
                            <label align="0.0" colspan="2" string="(keep empty to use the current period)"/>
                            <separator colspan="4" string="Additionnal Information"/>
                            <field colspan="4" name="comment" nolabel="1"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>

        <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>
            <field name="view_id" ref="invoice_tree"/>
            <field name="context">{'type':'out_invoice'}</field>
        </record>
        <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>
        <menuitem action="action_invoice_tree" id="menu_finance_invoice" parent="account.menu_finance"/>

        <record id="action_invoice_tree1" model="ir.actions.act_window">
            <field name="name">Customer Invoices</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field eval="False" name="view_id"/>
            <field name="domain">[('type','=','out_invoice')]</field>
            <field name="context">{'type':'out_invoice'}</field>
        </record>
        <menuitem action="action_invoice_tree1" id="menu_action_invoice_tree1" parent="account.menu_finance_invoice"/>
        <record id="action_invoice_tree1_new" model="ir.actions.act_window">
            <field name="name">New Customer Invoice</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="view_mode">form,tree</field>
            <field eval="invoice_form" name="view_id"/>
            <field name="domain">[('type','=','out_invoice')]</field>
            <field name="context">{'type':'out_invoice'}</field>
        </record>
        <menuitem action="action_invoice_tree1_new" id="menu_action_invoice_tree1_new" parent="menu_action_invoice_tree1"/>

        <record id="action_invoice_tree2" model="ir.actions.act_window">
            <field name="name">Supplier Invoices</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field eval="False" name="view_id"/>
            <field name="domain">[('type','=','in_invoice')]</field>
            <field name="context">{'type':'in_invoice'}</field>
        </record>
        <menuitem action="action_invoice_tree2" id="menu_action_invoice_tree2" parent="account.menu_finance_invoice"/>
        <record id="action_invoice_tree2_new" model="ir.actions.act_window">
            <field name="name">New Supplier Invoice</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="view_mode">form,tree</field>
            <field eval="invoice_supplier_form" name="view_id"/>
            <field name="domain">[('type','=','in_invoice')]</field>
            <field name="context">{'type':'in_invoice'}</field>
        </record>
        <menuitem action="action_invoice_tree2_new" id="menu_action_invoice_tree2_new" parent="menu_action_invoice_tree2"/>

        <record id="action_invoice_tree3" model="ir.actions.act_window">
            <field name="name">Customer Refunds</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field eval="False" name="view_id"/>
            <field name="domain">[('type','=','out_refund')]</field>
            <field name="context">{'type':'out_refund'}</field>
        </record>
        <menuitem action="action_invoice_tree3" id="menu_action_invoice_tree3" parent="account.menu_finance_invoice"/>

        <record id="action_invoice_tree3_new" model="ir.actions.act_window">
            <field name="name">New Customer Refund</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="view_mode">form,tree</field>
            <field eval="invoice_form" name="view_id"/>
            <field name="domain">[('type','=','out_refund')]</field>
            <field name="context">{'type':'out_refund'}</field>
        </record>
        <menuitem action="action_invoice_tree3_new" id="menu_action_invoice_tree3_new" parent="menu_action_invoice_tree3"/>

        <record id="action_invoice_tree4" model="ir.actions.act_window">
            <field name="name">Supplier Refunds</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field eval="False" name="view_id"/>
            <field name="domain">[('type','=','in_refund')]</field>
            <field name="context">{'type':'in_refund'}</field>
        </record>
        <menuitem action="action_invoice_tree4" id="menu_action_invoice_tree4" parent="account.menu_finance_invoice"/>

        <record id="action_invoice_tree4_new" model="ir.actions.act_window">
            <field name="name">New Supplier Refund</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="view_mode">form,tree</field>
            <field eval="invoice_supplier_form" name="view_id"/>
            <field name="domain">[('type','=','in_refund')]</field>
            <field name="context">{'type':'in_refund'}</field>
        </record>
        <menuitem action="action_invoice_tree4_new" id="menu_action_invoice_tree4_new" parent="menu_action_invoice_tree4"/>


        <record id="action_invoice_tree5" model="ir.actions.act_window">
            <field name="name">Draft Customer Invoices</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="domain">[('state','=','draft'),('type','=','out_invoice')]</field>
            <field name="context">{'type':'out_invoice'}</field>
        </record>
        <record id="action_invoice_tree5_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_tree5"/>
        </record>
        <record id="action_invoice_tree5_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_tree5"/>
        </record>

        <menuitem action="action_invoice_tree5" id="menu_invoice_draft" parent="menu_action_invoice_tree1"/>

        <record id="action_invoice_tree6" model="ir.actions.act_window">
            <field name="name">PRO-FORMA Customer Invoices</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="domain">[('state','=','proforma'),('type','=','out_invoice')]</field>
            <field name="context">{'type':'out_invoice'}</field>
        </record>
        <record id="action_invoice_tree6_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_tree6"/>
        </record>
        <record id="action_invoice_tree6_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_tree6"/>
        </record>

        <menuitem action="action_invoice_tree6" id="menu_action_invoice_tree6" parent="menu_action_invoice_tree1"/>

        <record id="action_invoice_tree7" model="ir.actions.act_window">
            <field name="name">Open Customer Invoices</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="domain">[('state','=','open'),('type','=','out_invoice')]</field>
            <field name="context">{'type':'out_invoice'}</field>
        </record>
        <record id="action_invoice_tree7_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_tree7"/>
        </record>
        <record id="action_invoice_tree7_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_tree7"/>
        </record>

        <menuitem action="action_invoice_tree7" id="menu_action_invoice_tree7" parent="menu_action_invoice_tree1"/>

        <record id="action_invoice_tree8" model="ir.actions.act_window">
            <field name="name">Draft Supplier Invoices</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="domain">[('state','=','draft'),('type','=','in_invoice')]</field>
            <field name="context">{'type':'in_invoice'}</field>
        </record>
        <record id="action_invoice_tree8_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_tree8"/>
        </record>
        <record id="action_invoice_tree8_view2" model="ir.actions.act_window.view">
            <field eval="2" name="sequence"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="invoice_supplier_form"/>
            <field name="act_window_id" ref="action_invoice_tree8"/>
        </record>

        <menuitem action="action_invoice_tree8" id="menu_action_invoice_tree8" parent="menu_action_invoice_tree2"/>

        <record id="action_invoice_tree9" model="ir.actions.act_window">
            <field name="name">Open Supplier Invoices</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="domain">[('state','=','open'),('type','=','in_invoice')]</field>
            <field name="context">{'type':'in_invoice'}</field>
        </record>
        <record id="action_invoice_tree9_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_tree9"/>
        </record>
        <record id="action_invoice_tree9_view2" model="ir.actions.act_window.view">
            <field eval="2" name="sequence"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="invoice_supplier_form"/>
            <field name="act_window_id" ref="action_invoice_tree9"/>
        </record>

        <menuitem action="action_invoice_tree9" id="menu_action_invoice_tree9" parent="menu_action_invoice_tree2"/>

        <record id="action_invoice_tree10" model="ir.actions.act_window">
            <field name="name">Draft Customer Refunds</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="domain">[('state','=','draft'),('type','=','out_refund')]</field>
            <field name="context">{'type':'out_refund'}</field>
        </record>
        <record id="action_invoice_tree10_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_tree10"/>
        </record>
        <record id="action_invoice_tree10_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_tree10"/>
        </record>

        <menuitem action="action_invoice_tree10" id="menu_action_invoice_tree10" parent="menu_action_invoice_tree3"/>

        <record id="action_invoice_tree11" model="ir.actions.act_window">
            <field name="name">Open Customer Refunds</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="domain">[('state','=','open'),('type','=','out_refund')]</field>
            <field name="context">{'type':'out_refund'}</field>
        </record>
        <record id="action_invoice_tree11_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_tree11"/>
        </record>
        <record id="action_invoice_tree11_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_tree11"/>
        </record>

        <menuitem action="action_invoice_tree11" id="menu_action_invoice_tree11" parent="menu_action_invoice_tree3"/>

        <record id="action_invoice_tree12" model="ir.actions.act_window">
            <field name="name">Draft Supplier Refunds</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="domain">[('state','=','draft'),('type','=','in_refund')]</field>
            <field name="context">{'type':'in_refund'}</field>
        </record>
        <record id="action_invoice_tree12_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_tree12"/>
        </record>
        <record id="action_invoice_tree12_view2" model="ir.actions.act_window.view">
            <field eval="2" name="sequence"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="invoice_supplier_form"/>
            <field name="act_window_id" ref="action_invoice_tree12"/>
        </record>

        <menuitem action="action_invoice_tree12" id="menu_action_invoice_tree12" parent="menu_action_invoice_tree4"/>

        <record id="action_invoice_tree13" model="ir.actions.act_window">
            <field name="name">Open Supplier Refunds</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="domain">[('state','=','open'),('type','=','in_refund')]</field>
            <field name="context">{'type':'in_refund'}</field>
        </record>
        <record id="action_invoice_tree13_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_tree13"/>
        </record>
        <record id="action_invoice_tree13_view2" model="ir.actions.act_window.view">
            <field eval="2" name="sequence"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="invoice_supplier_form"/>
            <field name="act_window_id" ref="action_invoice_tree13"/>
        </record>

        <menuitem action="action_invoice_tree13" id="menu_action_invoice_tree13" parent="menu_action_invoice_tree4"/>

        <act_window domain="[('partner_id', '=', active_id),('state', '=', 'open')]" id="act_res_partner_2_account_invoice_opened" name="Open invoices" res_model="account.invoice" src_model="res.partner"/>

        <act_window domain="[('journal_id', '=', active_id),('state', '=', 'open')]" id="act_account_journal_2_account_invoice_opened" name="Open invoices" res_model="account.invoice" src_model="account.journal"/>

        <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"/>

    </data>
</terp>
