<?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.icon" id="invoice_icon">
            <field name="name">tryton-invoice</field>
            <field name="path">icons/tryton-invoice.svg</field>
        </record>

        <record model="ir.ui.view" id="configuration_view_form">
            <field name="model">account.configuration</field>
            <field name="inherit" ref="account.configuration_view_form"/>
            <field name="name">configuration_form</field>
        </record>

        <record model="ir.ui.view" id="fiscalyear_view_form">
            <field name="model">account.fiscalyear</field>
            <field name="inherit" ref="account.fiscalyear_view_form"/>
            <field name="name">fiscalyear_form</field>
        </record>

        <record model="ir.ui.view" id="move_line_view_form">
            <field name="model">account.move.line</field>
            <field name="inherit" ref="account.move_line_view_form"/>
            <field name="name">move_line_form</field>
        </record>

        <record model="ir.ui.view" id="move_line_view_form_move">
            <field name="model">account.move.line</field>
            <field name="inherit" ref="account.move_line_view_form_move"/>
            <field name="name">move_line_form</field>
        </record>

        <record model="ir.ui.view" id="move_line_view_list">
            <field name="model">account.move.line</field>
            <field name="inherit" ref="account.move_line_view_tree"/>
            <field name="name">move_line_list</field>
        </record>

        <record model="ir.ui.view" id="move_line_view_list_move">
            <field name="model">account.move.line</field>
            <field name="inherit" ref="account.move_line_view_tree_move"/>
            <field name="name">move_line_list</field>
        </record>

        <record model="ir.ui.view" id="move_line_view_list_payment">
            <field name="model">account.move.line</field>
            <field name="type">tree</field>
            <field name="priority" eval="20"/>
            <field name="name">move_line_list_payment</field>
        </record>

        <record model="ir.ui.view" id="move_line_view_list_to_pay">
            <field name="model">account.move.line</field>
            <field name="type">tree</field>
            <field name="priority" eval="20"/>
            <field name="name">move_line_list_to_pay</field>
        </record>

        <record model="ir.ui.view" id="invoice_sequence_view_form">
            <field name="model">account.fiscalyear.invoice_sequence</field>
            <field name="type">form</field>
            <field name="name">invoice_sequence_form</field>
        </record>

        <record model="ir.ui.view" id="invoice_sequence_view_list">
            <field name="model">account.fiscalyear.invoice_sequence</field>
            <field name="type">tree</field>
            <field name="name">invoice_sequence_list</field>
        </record>

        <record model="ir.ui.view" id="invoice_sequence_view_list_sequence">
            <field name="model">account.fiscalyear.invoice_sequence</field>
            <field name="type">tree</field>
            <field name="priority" eval="20"/>
            <field name="name">invoice_sequence_list_sequence</field>
        </record>

        <record model="ir.model.access" id="access_invoice_sequence">
            <field name="model">account.fiscalyear.invoice_sequence</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_invoice_sequence_admin">
            <field name="model">account.fiscalyear.invoice_sequence</field>
            <field name="group" ref="account.group_account_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.rule.group" id="rule_group_invoice_sequence_companies">
            <field name="name">User in companies</field>
            <field name="model">account.fiscalyear.invoice_sequence</field>
            <field name="global_p" eval="True"/>
        </record>
        <record model="ir.rule" id="rule_invoice_sequence_companies">
            <field name="domain"
                eval="[('company', 'in', Eval('companies', []))]"
                pyson="1"/>
            <field name="rule_group" ref="rule_group_invoice_sequence_companies"/>
        </record>

    </data>
</tryton>
