<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="purchase_transport_mode_constraint_form" model="ir.ui.view">
        <field name="model">purchase.transport.mode.constraint</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <div class="oe_title">
                        <label for="name" />
                        <h1><field name="name" /></h1>
                    </div>
                <group>
                    <field name="description" />
                    <field
                            name="purchase_domain"
                            widget="domain"
                            options="{'model': 'purchase.order'}"
                        />
                    <field name="purchase_transport_mode_id" />
                </group>
                </sheet>
            </form>
        </field>
    </record>
    <record id="purchase_transport_mode_constraint_tree" model="ir.ui.view">
        <field name="model">purchase.transport.mode.constraint</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name" />
                <field name="description" />
                <field name="purchase_domain" />
            </tree>
        </field>
    </record>

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