<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>
        <record model="ir.ui.view" id="sale_line_view_form">
            <field name="model">sale.line</field>
            <field name="inherit" ref="sale.sale_line_view_form"/>
            <field name="name">sale_line_form</field>
        </record>
        <record model="ir.ui.view" id="sale_line_view_tree">
            <field name="model">sale.line</field>
            <field name="inherit" ref="sale.sale_line_view_tree"/>
            <field name="name">sale_line_tree</field>
        </record>
        <record model="ir.ui.view" id="sale_line_view_tree_sequence">
            <field name="model">sale.line</field>
            <field name="inherit" ref="sale.sale_line_view_tree_sequence"/>
            <field name="name">sale_line_tree_sequence</field>
        </record>

        <record model="ir.ui.view" id="product_customer_view_form">
            <field name="model">sale.product_customer</field>
            <field name="type">form</field>
            <field name="name">product_customer_form</field>
        </record>
        <record model="ir.ui.view" id="product_customer_view_tree">
            <field name="model">sale.product_customer</field>
            <field name="type">tree</field>
            <field name="priority" eval="10"/>
            <field name="name">product_customer_tree</field>
        </record>

        <record model="ir.ui.view" id="product_customer_view_tree_sequence">
            <field name="model">sale.product_customer</field>
            <field name="type">tree</field>
            <field name="priority" eval="20"/>
            <field name="name">product_customer_tree_sequence</field>
        </record>

        <record model="ir.action.act_window" id="act_product_customer_form">
            <field name="name">Customers</field>
            <field name="res_model">sale.product_customer</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_product_customer_list_view">
            <field name="sequence" eval="10"/>
            <field name="view" ref="product_customer_view_tree"/>
            <field name="act_window" ref="act_product_customer_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_product_customer_form_view">
            <field name="sequence" eval="20"/>
            <field name="view" ref="product_customer_view_form"/>
            <field name="act_window" ref="act_product_customer_form"/>
        </record>

        <menuitem
            parent="product.menu_template"
            action="act_product_customer_form"
            sequence="20"
            id="menu_product_customer"/>

        <record model="ir.model.access" id="access_product_customer">
            <field name="model">sale.product_customer</field>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="False"/>
            <field name="perm_create" eval="False"/>
            <field name="perm_delete" eval="False"/>
        </record>
        <record model="ir.model.access" id="access_product_customer_sale">
            <field name="model">sale.product_customer</field>
            <field name="group" ref="sale.group_sale"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="True"/>
            <field name="perm_create" eval="True"/>
            <field name="perm_delete" eval="True"/>
        </record>
    </data>

    <data depends="sale_amendment">
        <record model="ir.ui.view" id="sale_amendment_line_view_form">
            <field name="model">sale.amendment.line</field>
            <field name="inherit" ref="sale_amendment.sale_amendment_line_view_form"/>
            <field name="name">sale_amendment_line_form</field>
        </record>
    </data>

    <data depends="sale_blanket_agreement">
        <record model="ir.ui.view" id="sale_blanket_agreement_line_view_form">
            <field name="model">sale.blanket_agreement.line</field>
            <field name="inherit" ref="sale_blanket_agreement.sale_blanket_agreement_line_view_form"/>
            <field name="name">sale_blanket_agreement_line_form</field>
        </record>
        <record model="ir.ui.view" id="sale_blanket_agreement_line_view_list">
            <field name="model">sale.blanket_agreement.line</field>
            <field name="inherit" ref="sale_blanket_agreement.sale_blanket_agreement_line_view_list"/>
            <field name="name">sale_blanket_agreement_line_list</field>
        </record>
    </data>
</tryton>
