<?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_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.ui.view" id="address_view_tree">
            <field name="model">party.address</field>
            <field name="inherit" ref="party.address_view_tree"/>
            <field name="name">party_address_tree</field>
        </record>
        <record model="ir.ui.view" id="address_view_form">
            <field name="model">party.address</field>
            <field name="inherit" ref="party.address_view_form"/>
            <field name="name">party_address_form</field>
        </record>

        <record model="ir.ui.view" id="address_view_form_simple">
            <field name="model">party.address</field>
            <field name="inherit" ref="party.address_view_form_simple"/>
            <field name="name">party_address_form</field>
        </record>

        <record model="ir.ui.view" id="address_view_tree_sequence">
            <field name="model">party.address</field>
            <field name="inherit" ref="party.address_view_tree_sequence"/>
            <field name="name">party_address_tree</field>
        </record>

        <record model="ir.ui.view" id="contact_mechanism_view_tree">
            <field name="model">party.contact_mechanism</field>
            <field name="inherit" ref="party.contact_mechanism_view_tree"/>
            <field name="name">party_contact_mechanism_tree</field>
        </record>
        <record model="ir.ui.view" id="contact_mechanism_view_form">
            <field name="model">party.contact_mechanism</field>
            <field name="inherit" ref="party.contact_mechanism_view_form"/>
            <field name="name">party_contact_mechanism_form</field>
        </record>
        <record model="ir.ui.view" id="contact_mechanism_view_tree_sequence">
            <field name="model">party.contact_mechanism</field>
            <field name="inherit" ref="party.contact_mechanism_view_tree_sequence"/>
            <field name="name">party_contact_mechanism_tree</field>
        </record>

        <record model="ir.action.act_window" id="act_shipment_out_form2">
            <field name="name">Customer Shipments</field>
            <field name="res_model">stock.shipment.out</field>
            <field name="domain"
                eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('customer', '=', Eval('active_id')), ('customer', 'in', Eval('active_ids')))]"
                pyson="1"/>
            <field name="search_value" eval="[('state', 'not in', ['done', 'cancelled'])]" pyson="1"/>
        </record>
        <record model="ir.action.keyword"
                id="act_open_purchase_keyword1">
            <field name="keyword">form_relate</field>
            <field name="model">party.party,-1</field>
            <field name="action" ref="act_shipment_out_form2"/>
        </record>

        <record model="ir.action.act_window" id="act_shipment_out_form3">
            <field name="name">Supplier Shipments</field>
            <field name="res_model">stock.shipment.in</field>
            <field name="domain"
                eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('supplier', '=', Eval('active_id')), ('supplier', 'in', Eval('active_ids')))]"
                pyson="1"/>
            <field name="search_value" eval="[('state', 'not in', ['done', 'cancelled'])]" pyson="1"/>
        </record>
        <record model="ir.action.keyword"
                id="act_open_purchase_keyword2">
            <field name="keyword">form_relate</field>
            <field name="model">party.party,-1</field>
            <field name="action" ref="act_shipment_out_form3"/>
        </record>
    </data>
</tryton>
