<?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="address_view_tree">
            <field name="model">party.address</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <![CDATA[
                <tree string="Addresses">
                    <field name="party" select="1"/>
                    <field name="name" select="1"/>
                    <field name="street" select="2"/>
                    <field name="streetbis" select="2"/>
                    <field name="zip" select="2"/>
                    <field name="city" select="2"/>
                    <field name="country" select="1"/>
                    <field name="subdivision" select="2"/>
                    <field name="active" select="2"/>
                </tree>
                ]]>
            </field>
        </record>
        <record model="ir.ui.view" id="address_view_form">
            <field name="model">party.address</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Addresses" col="6">
                    <label name="party"/>
                    <field name="party" colspan="5"/>
                    <label name="name"/>
                    <field name="name"/>
                    <group colspan="2" col="20" id="checkboxes">
                        <label name="active"/>
                        <field name="active"
                            xexpand="0" width="25"/>
                        <!-- Add here some checkboxes ! -->
                    </group>
                    <newline/>
                    <label name="street"/>
                    <field name="street"/>
                    <label name="streetbis"/>
                    <field name="streetbis"/>
                    <newline/>
                    <label name="zip"/>
                    <field name="zip"/>
                    <label name="city"/>
                    <field name="city"/>
                    <newline/>
                    <label name="country"/>
                    <field name="country" widget="selection"/>
                    <label name="subdivision"/>
                    <field name="subdivision" widget="selection"/>
                </form>
                ]]>
            </field>
        </record>
        <record model="ir.action.act_window" id="act_address_form">
            <field name="name">Addresses</field>
            <field name="res_model">party.address</field>
        </record>
        <record model="ir.action.act_window.view" id="act_address_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="address_view_tree"/>
            <field name="act_window" ref="act_address_form"/>
        </record>
        <record model="ir.action.act_window.view" id="act_address_form_view2">
          <field name="sequence" eval="20"/>
          <field name="view" ref="address_view_form"/>
          <field name="act_window" ref="act_address_form"/>
        </record>
        <menuitem name="Addresses" parent="menu_party"
              sequence="2" action="act_address_form"
              id="menu_address_form"/>
        <record model="ir.action.act_window" id="act_address_form2">
            <field name="name">Addresses</field>
            <field name="res_model">party.address</field>
        </record>
        <record model="ir.action.act_window.view" id="act_address_form2_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="address_view_form"/>
            <field name="act_window" ref="act_address_form2"/>
        </record>
        <record model="ir.action.act_window.view" id="act_address_form2_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="address_view_tree"/>
            <field name="act_window" ref="act_address_form2"/>
        </record>
        <menuitem name="New Address" parent="menu_address_form"
              action="act_address_form2"
              id="menu_address_form2"/>
    </data>
</tryton>
