<?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="fee_lot_view_tree_sequence">
            <field name="model">fee.lots</field>
            <field name="type">tree</field>
            <field name="name">fee_lot_tree_sequence</field>
        </record>
        <record model="ir.ui.view" id="fee_view_form">
            <field name="model">fee.fee</field>
            <field name="type">form</field>
            <field name="name">fee_form</field>
        </record>
        <record model="ir.ui.view" id="fee_view_tree_sequence">
            <field name="model">fee.fee</field>
            <field name="type">tree</field>
            <field name="name">fee_tree_sequence</field>
        </record>
        
        <record model="ir.ui.view" id="fee_view_tree_sequence2">
            <field name="model">fee.fee</field>
            <field name="type">tree</field>
            <field name="name">fee_tree_sequence2</field>
        </record>

        <record model="ir.ui.view" id="fee_report_view_list">
            <field name="model">fee.report</field>
            <field name="type">tree</field>
            <field name="name">fee_report_list</field>
        </record>
        <record model="ir.action.act_window" id="act_fee_report_form">
            <field name="name">Fee report</field>
            <field name="res_model">fee.report</field>
            <field name="context_model">fee.context</field>
        </record>
        <record model="ir.action.act_window.view" id="act_fee_report_form_view">
            <field name="sequence" eval="70"/>
            <field name="view" ref="fee_report_view_list"/>
            <field name="act_window" ref="act_fee_report_form"/>
        </record>
        <record model="ir.ui.view" id="fee_report_context_view_form">
            <field name="model">fee.context</field>
            <field name="type">form</field>
            <field name="name">fee_report_context_form</field>
        </record>
        
        <record model="ir.model.button" id="fee_invoice_button">
            <field name="model">fee.fee</field>
            <field name="name">invoice</field>
            <field name="string">Invoice</field>
        </record>
        <record model="ir.model.button-res.group" id="fee_invoice_button_group_admin">
            <field name="button" ref="fee_invoice_button"/>
            <field name="group" ref="purchase.group_purchase"/>
        </record>
        <record model="ir.model.access" id="access_fee">
            <field name="model">fee.fee</field>
            <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.model.access" id="access_fee_admin">
            <field name="model">fee.fee</field>
            <field name="group" ref="purchase.group_purchase"/>
            <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>

        <menuitem
            name="Fee Report"
            parent="purchase_trade.menu_global_reporting"
	        action="act_fee_report_form"
	        sequence="20"
	        id="menu_fee_report_form"/>
    </data>
</tryton>