<?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="shipment_carriage_view_form">
            <field name="model">stock.shipment.carriage</field>
            <field name="type">form</field>
            <field name="name">shipment_carriage_form</field>
        </record>

        <record model="ir.ui.view" id="shipment_carriage_view_list">
            <field name="model">stock.shipment.carriage</field>
            <field name="type">tree</field>
            <field name="name">shipment_carriage_list</field>
        </record>

        <record model="ir.model.access" id="access_shipment_carriage">
            <field name="model">stock.shipment.carriage</field>
            <field name="perm_read" eval="False"/>
            <field name="perm_write" eval="False"/>
            <field name="perm_create" eval="False"/>
            <field name="perm_delete" eval="False"/>
        </record>
        <record model="ir.model.access" id="access_shipment_carriage_group_stock">
            <field name="model">stock.shipment.carriage</field>
            <field name="group" ref="stock.group_stock"/>
            <field name="perm_read" eval="True"/>
            <field name="perm_write" eval="True"/>
            <field name="perm_create" eval="True"/>
            <field name="perm_delete" eval="True"/>
        </record>

        <record model="ir.ui.view" id="shipment_out_view_form">
            <field name="model">stock.shipment.out</field>
            <field name="inherit" ref="stock.shipment_out_view_form"/>
            <field name="name">shipment_form</field>
        </record>

        <record model="ir.ui.view" id="shipment_out_return_view_form">
            <field name="model">stock.shipment.out.return</field>
            <field name="inherit" ref="stock.shipment_out_return_view_form"/>
            <field name="name">shipment_form</field>
        </record>
    </data>
    <data depends="sale_shipment_cost">
        <record model="ir.ui.view" id="shipment_carriage_view_form_sale">
            <field name="model">stock.shipment.carriage</field>
            <field name="inherit" ref="shipment_carriage_view_form"/>
            <field name="name">shipment_carriage_form_sale</field>
        </record>

        <record model="ir.ui.view" id="shipment_carriage_view_list_sale">
            <field name="model">stock.shipment.carriage</field>
            <field name="inherit" ref="shipment_carriage_view_list"/>
            <field name="name">shipment_carriage_list_sale</field>
        </record>
    </data>
    <data depends="purchase_shipment_cost">
        <record model="ir.ui.view" id="shipment_in_view_form">
            <field name="model">stock.shipment.in</field>
            <field name="inherit" ref="stock.shipment_in_view_form"/>
            <field name="name">shipment_form</field>
        </record>
    </data>
</tryton>
