<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="purchase_transport_mode_form" model="ir.ui.view">
        <field name="model">purchase.transport.mode</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <div class="oe_title">
                        <label for="name" />
                        <h1><field name="name" /></h1>
                    </div>
                <group>
                    <field
                            name="constraint_ids"
                            string="Purchase transport constraints"
                        >
                        <tree>
                            <field name="name" />
                            <field name="purchase_domain" />
                        </tree>
                    </field>
                </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="purchase_transport_mode_tree" model="ir.ui.view">
        <field name="model">purchase.transport.mode</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name" />
            </tree>
        </field>
    </record>

    <record id="purchase_transport_mode_search" model="ir.ui.view">
        <field name="model">purchase.transport.mode</field>
        <field name="arch" type="xml">
            <search>
                <field name="name" />
            </search>
        </field>
    </record>

    <record id="purchase_transport_mode_action" model="ir.actions.act_window">
        <field name="name">Purchase Transport Mode</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">purchase.transport.mode</field>
        <field name="view_mode">tree,form</field>
        <field name="view_id" ref="purchase_transport_mode_tree" />
    </record>
</odoo>
