<?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.sequence.type" id="sequence_type_package">
            <field name="name">Stock Package</field>
        </record>
        <record model="ir.sequence.type-res.group"
            id="sequence_type_package_group_admin">
            <field name="sequence_type" ref="sequence_type_package"/>
            <field name="group" ref="res.group_admin"/>
        </record>
        <record model="ir.sequence.type-res.group"
            id="sequence_type_package_group_stock_admin">
            <field name="sequence_type" ref="sequence_type_package"/>
            <field name="group" ref="stock.group_stock_admin"/>
        </record>

        <record model="ir.sequence" id="sequence_package">
            <field name="name">Stock Package</field>
            <field name="sequence_type" ref="sequence_type_package"/>
        </record>

        <record model="ir.ui.view" id="stock_configuration_view_form">
            <field name="model">stock.configuration</field>
            <field name="inherit" ref="stock.stock_configuration_view_form"/>
            <field name="name">configuration_form</field>
        </record>

        <record model="ir.ui.view" id="package_view_form">
            <field name="model">stock.package</field>
            <field name="type">form</field>
            <field name="priority" eval="10"/>
            <field name="name">package_form</field>
        </record>

        <record model="ir.ui.view" id="package_view_form_pack">
            <field name="model">stock.package</field>
            <field name="type">form</field>
            <field name="priority" eval="20"/>
            <field name="name">package_form_pack</field>
        </record>

        <record model="ir.ui.view" id="package_view_tree">
            <field name="model">stock.package</field>
            <field name="type">tree</field>
            <field name="field_childs">children</field>
            <field name="priority" eval="20"/>
            <field name="name">package_tree</field>
        </record>

        <record model="ir.ui.view" id="package_view_list">
            <field name="model">stock.package</field>
            <field name="type">tree</field>
            <field name="priority" eval="10"/>
            <field name="name">package_list</field>
        </record>

        <record model="ir.model.button" id="package_fill_button">
            <field name="model">stock.package</field>
            <field name="name">fill</field>
            <field name="string">Fill</field>
        </record>

        <record model="ir.rule.group" id="rule_group_package_companies">
            <field name="name">User in companies</field>
            <field name="model">stock.package</field>
            <field name="global_p" eval="True"/>
        </record>
        <record model="ir.rule" id="rule_package_companies">
            <field name="domain"
                eval="[('company', 'in', Eval('companies', []))]"
                pyson="1"/>
            <field name="rule_group" ref="rule_group_package_companies"/>
        </record>

        <record model="ir.model.access" id="access_package">
            <field name="model">stock.package</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_package_group_stock">
            <field name="model">stock.package</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="package_type_view_form">
            <field name="model">stock.package.type</field>
            <field name="type">form</field>
            <field name="name">package_type_form</field>
        </record>

        <record model="ir.ui.view" id="package_type_view_list">
            <field name="model">stock.package.type</field>
            <field name="type">tree</field>
            <field name="name">package_type_list</field>
        </record>

        <record model="ir.action.act_window" id="act_package_type_form">
            <field name="name">Package Types</field>
            <field name="res_model">stock.package.type</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_package_type_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="package_type_view_list"/>
            <field name="act_window" ref="act_package_type_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_package_type_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="package_type_view_form"/>
            <field name="act_window" ref="act_package_type_form"/>
        </record>
        <menuitem
            parent="stock.menu_configuration"
            action="act_package_type_form"
            sequence="50"
            id="menu_package_form"/>

        <record model="ir.model.access" id="access_package_type">
            <field name="model">stock.package.type</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_package_type_group_stock">
            <field name="model">stock.package.type</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="stock_move_view_form">
            <field name="model">stock.move</field>
            <field name="inherit" ref="stock.move_view_form"/>
            <field name="name">stock_move_form</field>
        </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_out_form</field>
        </record>

        <record model="ir.model.button" id="shipment_out_pack_wizard_button">
            <field name="model">stock.shipment.out</field>
            <field name="name">pack_wizard</field>
            <field name="string">Pack</field>
        </record>

        <record model="ir.ui.view" id="shipment_in_return_view_form">
            <field name="model">stock.shipment.in.return</field>
            <field name="inherit" ref="stock.shipment_in_return_view_form"/>
            <field name="name">shipment_in_return_form</field>
        </record>

        <record model="ir.model.button" id="shipment_in_return_pack_wizard_button">
            <field name="model">stock.shipment.in.return</field>
            <field name="name">pack_wizard</field>
            <field name="string">Fill</field>
        </record>

        <record model="ir.ui.view" id="shipment_internal_view_form">
            <field name="model">stock.shipment.internal</field>
            <field name="inherit" ref="stock.shipment_internal_view_form"/>
            <field name="name">shipment_internal_form</field>
        </record>

        <record model="ir.model.button" id="shipment_internal_pack_wizard_button">
            <field name="model">stock.shipment.internal</field>
            <field name="name">pack_wizard</field>
            <field name="string">Add Package</field>
        </record>

        <record model="ir.action.wizard" id="wizard_shipment_pack">
            <field name="name">Pack Shipment</field>
            <field name="wiz_name">stock.shipment.pack</field>
        </record>

        <record model="ir.action.wizard" id="wizard_package_pack">
            <field name="name">Pack Package</field>
            <field name="wiz_name">stock.package.pack</field>
            <field name="model">stock.package</field>
        </record>

        <record model="ir.ui.view" id="package_pack_move_view_form">
            <field name="model">stock.package.pack.move</field>
            <field name="type">form</field>
            <field name="name">package_pack_move_form</field>
        </record>

    </data>
</tryton>
