<?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="attribute_set_view_list">
            <field name="model">product.attribute.set</field>
            <field name="type">tree</field>
            <field name="name">attribute_set_list</field>
        </record>
        <record model="ir.ui.view" id="attribute_set_view_form">
            <field name="model">product.attribute.set</field>
            <field name="type">form</field>
            <field name="name">attribute_set_form</field>
        </record>

        <record model="ir.action.act_window" id="act_attribute_set_form">
            <field name="name">Attribute Sets</field>
            <field name="res_model">product.attribute.set</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_attribute_set_list_view">
            <field name="sequence" eval="10"/>
            <field name="view" ref="attribute_set_view_list"/>
            <field name="act_window" ref="act_attribute_set_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_attribute_set_form_view">
            <field name="sequence" eval="20"/>
            <field name="view" ref="attribute_set_view_form"/>
            <field name="act_window" ref="act_attribute_set_form"/>
        </record>
        <menuitem
            parent="product.menu_configuration"
            action="act_attribute_set_form"
            sequence="50"
            id="menu_attribute_set"/>

        <record model="ir.model.access" id="access_attribute_set">
            <field name="model">product.attribute.set</field>
            <field name="perm_read" eval="True"/>
            <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_attribute_set_admin">
            <field name="model">product.attribute.set</field>
            <field name="group" ref="product.group_product_admin"/>
            <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="attribute_view_list_simple">
            <field name="model">product.attribute</field>
            <field name="type">tree</field>
            <field name="priority" eval="10"/>
            <field name="name">attribute_list_simple</field>
        </record>
        <record model="ir.ui.view" id="attribute_view_list">
            <field name="model">product.attribute</field>
            <field name="type">tree</field>
            <field name="priority" eval="20"/>
            <field name="name">attribute_list</field>
        </record>
        <record model="ir.ui.view" id="attribute_view_form">
            <field name="model">product.attribute</field>
            <field name="type">form</field>
            <field name="name">attribute_form</field>
        </record>

        <record model="ir.action.act_window" id="act_attribute_form">
            <field name="name">Attributes</field>
            <field name="res_model">product.attribute</field>
        </record>
        <record model="ir.action.act_window.view" id="act_attribute_list_view">
            <field name="sequence" eval="10"/>
            <field name="view" ref="attribute_view_list"/>
            <field name="act_window" ref="act_attribute_form"/>
        </record>
        <record model="ir.action.act_window.view" id="act_attribute_form_view">
            <field name="sequence" eval="20"/>
            <field name="view" ref="attribute_view_form"/>
            <field name="act_window" ref="act_attribute_form"/>
        </record>
        <menuitem
            parent="menu_attribute_set"
            action="act_attribute_form"
            sequence="10"
            id="menu_attribute"/>

        <record model="ir.model.access" id="access_attribute">
            <field name="model">product.attribute</field>
            <field name="perm_read" eval="True"/>
            <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_attribute_admin">
            <field name="model">product.attribute</field>
            <field name="group" ref="product.group_product_admin"/>
            <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="template_view_tree">
            <field name="model">product.template</field>
            <field name="inherit" ref="product.template_view_tree"/>
            <field name="name">template_tree</field>
        </record>

        <record model="ir.ui.view" id="template_view_form">
            <field name="model">product.template</field>
            <field name="inherit" ref="product.template_view_form"/>
            <field name="name">template_form</field>
        </record>

        <record model="ir.ui.view" id="product_view_tree">
            <field name="model">product.product</field>
            <field name="inherit" ref="product.product_view_tree"/>
            <field name="name">product_tree</field>
        </record>

        <record model="ir.ui.view" id="product_view_form">
            <field name="model">product.product</field>
            <field name="inherit" ref="product.product_view_form"/>
            <field name="name">product_form</field>
        </record>
    </data>
</tryton>
