<?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="party_view_form">
            <field name="model">party.party</field>
            <field name="inherit" ref="party.party_view_form"/>
            <field name="name">party_form</field>
        </record>

        <record model="ir.action.wizard" id="act_open_customer">
            <field name="name">Parties associated to Sales</field>
            <field name="wiz_name">sale.open_customer</field>
        </record>
        <menuitem
            name="Associated to Sales"
            parent="party.menu_party_form"
            action="act_open_customer"
            sequence="50"
            id="menu_customer"
            icon="tryton-list"/>

        <record model="ir.model.field.access" id="access_party_sale_invoice_method">
            <field name="model">party.party</field>
            <field name="field">sale_invoice_method</field>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="False"/>
        </record>
        <record model="ir.model.field.access" id="access_party_sale_invoice_method_group_sale">
            <field name="model">party.party</field>
            <field name="field">sale_invoice_method</field>
            <field name="group" ref="group_sale"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="True"/>
        </record>

        <record model="ir.model.field.access" id="access_party_sale_shipment_method">
            <field name="model">party.party</field>
            <field name="field">sale_shipment_method</field>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="False"/>
        </record>
        <record model="ir.model.field.access" id="access_party_sale_shipment_method_group_sale">
            <field name="model">party.party</field>
            <field name="field">sale_shipment_method</field>
            <field name="group" ref="group_sale"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="True"/>
        </record>

        <record model="ir.model.field.access" id="access_party_customer_currency">
            <field name="model">party.party</field>
            <field name="field">customer_currency</field>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="False"/>
        </record>
        <record model="ir.model.field.access" id="access_party_customer_currency_group_sale">
            <field name="model">party.party</field>
            <field name="field">customer_currency</field>
            <field name="group" ref="group_sale"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="True"/>
        </record>
    </data>
</tryton>
