<?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="recurrence_rule_set_view_form">
            <field name="model">sale.subscription.recurrence.rule.set</field>
            <field name="type">form</field>
            <field name="name">recurrence_rule_set_form</field>
        </record>

        <record model="ir.ui.view" id="recurrence_rule_set_view_list">
            <field name="model">sale.subscription.recurrence.rule.set</field>
            <field name="type">tree</field>
            <field name="name">recurrence_rule_set_list</field>
        </record>

        <record model="ir.action.act_window" id="act_recurrence_rule_set_form">
            <field name="name">Subscription Recurrence Rule Sets</field>
            <field name="res_model">sale.subscription.recurrence.rule.set</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_recurrence_rule_set_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="recurrence_rule_set_view_list"/>
            <field name="act_window" ref="act_recurrence_rule_set_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_recurrence_rule_set_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="recurrence_rule_set_view_form"/>
            <field name="act_window" ref="act_recurrence_rule_set_form"/>
        </record>
        <menuitem
            parent="menu_configuration"
            action="act_recurrence_rule_set_form"
            sequence="10"
            id="menu_recurrence_rule_set_form"/>

        <record model="ir.model.access" id="access_recurrence_rule_set">
            <field name="model">sale.subscription.recurrence.rule.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_recurrence_rule_set_product_admin">
            <field name="model">sale.subscription.recurrence.rule.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="recurrence_rule_view_form">
            <field name="model">sale.subscription.recurrence.rule</field>
            <field name="type">form</field>
            <field name="name">recurrence_rule_form</field>
        </record>

        <record model="ir.ui.view" id="recurrence_rule_view_list">
            <field name="model">sale.subscription.recurrence.rule</field>
            <field name="type">tree</field>
            <field name="name">recurrence_rule_list</field>
        </record>

        <record model="ir.action.wizard" id="wizard_recurrence_test">
            <field name="name">Test Recurrence Rule</field>
            <field name="wiz_name">sale.subscription.recurrence.rule.set.test</field>
        </record>
        <record model="ir.action.keyword"
            id="wizard_recurrence_test_keyword1">
            <field name="keyword">form_action</field>
            <field name="model">sale.subscription.recurrence.rule.set,-1</field>
            <field name="action" ref="wizard_recurrence_test"/>
        </record>
        <menuitem
            parent="menu_configuration"
            action="wizard_recurrence_test"
            sequence="90"
            id="menu_recurrence_test"/>

        <record model="ir.ui.view" id="recurrence_rule_set_test_view_form">
            <field name="model">sale.subscription.recurrence.rule.set.test</field>
            <field name="type">form</field>
            <field name="name">recurrence_rule_set_test_form</field>
        </record>
        <record model="ir.ui.view" id="recurrence_rule_set_test_result_view_list">
            <field name="model">sale.subscription.recurrence.rule.set.test.result</field>
            <field name="type">tree</field>
            <field name="name">recurrence_rule_set_test_result_list</field>
        </record>
    </data>
</tryton>
