<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>
        
        <record id="account_analytic_line_to_invoice_view_form" model="ir.ui.view">
            <field name="name">report.account.analytic.line.to.invoice</field>
            <field name="model">report.account.analytic.line.to.invoice</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <tree string="Analytic Lines to Invoice">
                    <field name="name" select="1"/>
                    <field name="account_id" select="1"/>
                    <newline/>
                    <field name="product_id" select="1"/>
                    <field name="product_uom_id"/>
                    <newline/>
                    <field colspan="1" name="amount"/>
                    <field colspan="1" name="unit_amount"/>
                </tree>
            </field>
        </record>
        
        <record id="account_analytic_line_to_invoice_view_tree" model="ir.ui.view">
            <field name="name">report.account.analytic.line.to.invoice</field>
            <field name="model">report.account.analytic.line.to.invoice</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Analytic Lines to Invoice">
                    <field name="name"/>
                    <field name="product_id"/>
                    <field name="account_id"/>
                    <field name="amount"/>
                    <field name="sale_price"/>
                    <field name="unit_amount"/>
                    <field name="product_uom_id"/>
                </tree>
            </field>
        </record>
        
        <record id="account_analytic_line_to_invoice_view_graph" model="ir.ui.view">
            <field name="name">report.account.analytic.line.to.invoice.graph</field>
            <field name="model">report.account.analytic.line.to.invoice</field>
            <field name="type">graph</field>
            <field name="arch" type="xml">
                <graph string="Analytic Lines to Invoice" type="bar">
                    <field name="name"/>
                    <field name="sale_price" operator="+"/>
                </graph>
            </field>
        </record>
        
        
        <record id="action_account_analytic_line_to_invoice" model="ir.actions.act_window">
            <field name="name">Analytic Lines to Invoice</field>
            <field name="res_model">report.account.analytic.line.to.invoice</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,graph</field>
        </record>
        <menuitem action="action_account_analytic_line_to_invoice" id="account_analytic_lines_to_invoice_report" parent="account.next_id_42"/>
        
        <act_window domain="[('product_id', '=', active_id)]" id="act_product_product_2_report_acc_analytic_line_to_invoice" name="Analytic Lines to Invoice" res_model="report.account.analytic.line.to.invoice" src_model="product.product"/>
        
        <act_window domain="[('account_id', '=', active_id),('invoice_id','=',False),('to_invoice','&lt;&gt;',False)]" id="act_acc_analytic_acc_2_report_acc_analytic_line_to_invoice" name="Lines to Invoice" res_model="account.analytic.line" src_model="account.analytic.account"/>
        
    </data>
</terp>