<?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="sequence_view_form">
            <field name="model">ir.sequence</field>
            <field name="inherit" ref="ir.sequence_view_form"/>
            <field name="name">sequence_form</field>
        </record>

        <record model="ir.ui.view" id="sequence_view_tree">
            <field name="model">ir.sequence</field>
            <field name="inherit" ref="ir.sequence_view_tree"/>
            <field name="name">sequence_tree</field>
        </record>
        <record model="ir.ui.view" id="sequence_strict_view_form">
            <field name="model">ir.sequence.strict</field>
            <field name="inherit" ref="ir.sequence_view_form"/>
            <field name="name">sequence_form</field>
        </record>

        <record model="ir.ui.view" id="sequence_strict_view_tree">
            <field name="model">ir.sequence.strict</field>
            <field name="inherit" ref="ir.sequence_view_tree"/>
            <field name="name">sequence_tree</field>
        </record>

        <record model="ir.rule.group" id="rule_group_sequence_companies">
            <field name="name">User in companies</field>
            <field name="model">ir.sequence</field>
            <field name="global_p" eval="True"/>
        </record>
        <record model="ir.rule" id="rule_sequence_companies1">
            <field name="domain"
                eval="[('company', 'in', Eval('companies', []))]"
                pyson="1"/>
            <field name="rule_group" ref="rule_group_sequence_companies"/>
        </record>
        <record model="ir.rule" id="rule_sequence_comapnies2">
            <field name="domain" eval="[('company', '=', None)]" pyson="1"/>
            <field name="rule_group" ref="rule_group_sequence_companies"/>
        </record>

        <record model="ir.rule.group" id="rule_group_sequence_strict_companies">
            <field name="name">User in companies</field>
            <field name="model">ir.sequence.strict</field>
            <field name="global_p" eval="True"/>
        </record>
        <record model="ir.rule" id="rule_sequence_strict_companies1">
            <field name="domain"
                eval="[('company', 'in', Eval('companies', []))]"
                pyson="1"/>
            <field name="rule_group" ref="rule_group_sequence_strict_companies"/>
        </record>
        <record model="ir.rule" id="rule_sequence_strict_companies2">
            <field name="domain" eval="[('company', '=', None)]" pyson="1"/>
            <field name="rule_group" ref="rule_group_sequence_strict_companies"/>
        </record>

        <record model="ir.ui.view" id="cron_view_form">
            <field name="model">ir.cron</field>
            <field name="inherit" ref="ir.cron_view_form"/>
            <field name="name">cron_form</field>
        </record>
    </data>
</tryton>
