<?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>
        <menuitem
            name="Sequences"
            parent="menu_administration"
            sequence="20"
            id="menu_sequences"/>

        <record model="ir.ui.view" id="sequence_view_form">
            <field name="model">ir.sequence</field>
            <field name="type">form</field>
            <field name="name">sequence_form</field>
        </record>
        <record model="ir.ui.view" id="sequence_view_tree">
            <field name="model">ir.sequence</field>
            <field name="type">tree</field>
            <field name="name">sequence_list</field>
        </record>
        <record model="ir.action.act_window" id="act_sequence_form">
            <field name="name">Sequences</field>
            <field name="type">ir.action.act_window</field>
            <field name="res_model">ir.sequence</field>
            <field name="context"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_sequence_form_view1">
            <field name="sequence" eval="1"/>
            <field name="view" ref="sequence_view_tree"/>
            <field name="act_window" ref="act_sequence_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_sequence_form_view2">
            <field name="sequence" eval="2"/>
            <field name="view" ref="sequence_view_form"/>
            <field name="act_window" ref="act_sequence_form"/>
        </record>
        <menuitem
            parent="menu_sequences"
            action="act_sequence_form"
            sequence="10"
            id="menu_sequence_form"/>

        <record model="ir.rule.group" id="rule_group_sequence">
            <field name="name">User in groups</field>
            <field name="model">ir.sequence</field>
            <field name="global_p" eval="True"/>
            <field name="perm_read" eval="False"/>
        </record>
        <record model="ir.rule" id="rule_sequence">
            <field name="domain" eval="[('sequence_type.groups', 'in', Eval('groups', []))]" pyson="1"/>
            <field name="rule_group" ref="rule_group_sequence"/>
        </record>

        <record model="ir.ui.view" id="sequence_strict_view_form">
            <field name="model">ir.sequence.strict</field>
            <field name="type" eval="None"/>
            <field name="inherit" ref="sequence_view_form"/>
        </record>
        <record model="ir.ui.view" id="sequence_strict_view_tree">
            <field name="model">ir.sequence.strict</field>
            <field name="type" eval="None"/>
            <field name="inherit" ref="sequence_view_tree"/>
        </record>
        <record model="ir.action.act_window" id="act_sequence_strict_form">
            <field name="name">Sequences Strict</field>
            <field name="type">ir.action.act_window</field>
            <field name="res_model">ir.sequence.strict</field>
            <field name="context"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_sequence_strict_form_view1">
            <field name="sequence" eval="1"/>
            <field name="view" ref="sequence_strict_view_tree"/>
            <field name="act_window" ref="act_sequence_strict_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_sequence_strict_form_view2">
            <field name="sequence" eval="2"/>
            <field name="view" ref="sequence_strict_view_form"/>
            <field name="act_window" ref="act_sequence_strict_form"/>
        </record>
        <menuitem
            parent="menu_sequences"
            action="act_sequence_strict_form"
            sequence="10"
            id="menu_sequence_strict_form"
            icon="tryton-list"/>

        <record model="ir.rule.group" id="rule_group_sequence_strict">
            <field name="name">User in groups</field>
            <field name="model">ir.sequence.strict</field>
            <field name="global_p" eval="True"/>
            <field name="perm_read" eval="False"/>
        </record>
        <record model="ir.rule" id="rule_sequence_strict">
            <field name="domain" eval="[('sequence_type.groups', 'in', Eval('groups', []))]" pyson="1"/>
            <field name="rule_group" ref="rule_group_sequence_strict"/>
        </record>

        <record model="ir.ui.view" id="sequence_type_view_form">
            <field name="model">ir.sequence.type</field>
            <field name="type">form</field>
            <field name="name">sequence_type_form</field>
        </record>
        <record model="ir.ui.view" id="sequence_type_view_tree">
            <field name="model">ir.sequence.type</field>
            <field name="type">tree</field>
            <field name="name">sequence_type_list</field>
        </record>
        <record model="ir.action.act_window"
            id="act_sequence_type_form">
            <field name="name">Types</field>
            <field name="type">ir.action.act_window</field>
            <field name="res_model">ir.sequence.type</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_sequence_type_form_view1">
            <field name="sequence" eval="1"/>
            <field name="view" ref="sequence_type_view_tree"/>
            <field name="act_window" ref="act_sequence_type_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_sequence_type_form_view2">
            <field name="sequence" eval="2"/>
            <field name="view" ref="sequence_type_view_form"/>
            <field name="act_window" ref="act_sequence_type_form"/>
        </record>
        <menuitem
            parent="menu_sequences"
            action="act_sequence_type_form"
            sequence="20"
            id="menu_ir_sequence_type"/>

        <record model="ir.model.access" id="access_sequence_type">
            <field name="model">ir.sequence.type</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_sequence_type_admin">
            <field name="model">ir.sequence.type</field>
            <field name="group" ref="res.group_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>
    </data>
</tryton>
