<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="project_invoice_form" model="ir.ui.view">
            <field name="name">Inherit project form : Invoicing Data</field>
            <field name="model">project.project</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="project.edit_project"/>
            <field name="arch" type="xml">
                <field name="warn_customer" position="after">
                    <group colspan="4" col="4">
                        <separator colspan="4" string="Invoicing Data"/>
                        <field name="pricelist_id" domain="[('type','=','sale')]" widget="selection"/>
                        <field name="to_invoice" widget="selection"/>
                        <field name="amount_max"/>
                        <field name="amount_invoiced"/>
                    </group>
                </field>
            </field>
        </record>

        <record id="project_invoice_search" model="ir.ui.view">
            <field name="name">Inherit project search view : Invoicing Data</field>
            <field name="model">project.project</field>
            <field name="type">search</field>
            <field name="inherit_id" ref="project.view_project_project_filter"/>
            <field name="arch" type="xml">
                <xpath expr='//filter[@string="Member"]' position='after'>
                    <separator orientation="vertical"/>
                    <filter icon="terp-camera_test" string="Billable" domain="[('to_invoice','!=', False)]" help="Billable Project"/>
                </xpath>
            </field>
        </record>
    </data>
</openerp>
