<?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="service_view_form">
            <field name="model">sale.subscription.service</field>
            <field name="type">form</field>
            <field name="name">service_form</field>
        </record>

        <record model="ir.ui.view" id="service_view_list">
            <field name="model">sale.subscription.service</field>
            <field name="type">tree</field>
            <field name="name">service_list</field>
        </record>

        <record model="ir.action.act_window" id="act_service_form">
            <field name="name">Subscription Services</field>
            <field name="res_model">sale.subscription.service</field>
        </record>
        <record model="ir.action.act_window.view" id="act_service_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="service_view_list"/>
            <field name="act_window" ref="act_service_form"/>
        </record>
        <record model="ir.action.act_window.view" id="act_service_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="service_view_form"/>
            <field name="act_window" ref="act_service_form"/>
        </record>
        <menuitem
            parent="product.menu_template"
            action="act_service_form"
            sequence="20"
            id="menu_service_form"/>

        <record model="ir.model.access" id="access_service">
            <field name="model">sale.subscription.service</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_service_product_admin">
            <field name="model">sale.subscription.service</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>
    </data>
</tryton>
