<?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="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="invoice_chorus_view_form">
            <field name="model">account.invoice.chorus</field>
            <field name="type">form</field>
            <field name="name">invoice_chorus_form</field>
        </record>
        <record model="ir.ui.view" id="invoice_chorus_view_list">
            <field name="model">account.invoice.chorus</field>
            <field name="type">tree</field>
            <field name="name">invoice_chorus_list</field>
        </record>

        <record model="ir.action.act_window" id="act_invoice_chorus_form">
            <field name="name">Chorus</field>
            <field name="res_model">account.invoice.chorus</field>
        </record>
        <record model="ir.action.act_window.view" id="act_invoice_chorus_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="invoice_chorus_view_list"/>
            <field name="act_window" ref="act_invoice_chorus_form"/>
        </record>
        <record model="ir.action.act_window.view" id="act_invoice_chorus_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="invoice_chorus_view_form"/>
            <field name="act_window" ref="act_invoice_chorus_form"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_invoice_chorus_form_domain_draft">
            <field name="name">Draft</field>
            <field name="sequence" eval="10"/>
            <field name="domain" eval="[('state', '=', 'draft')]" pyson="1"/>
            <field name="count" eval="True"/>
            <field name="act_window" ref="act_invoice_chorus_form"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_invoice_chorus_form_domain_sent">
            <field name="name">Sent</field>
            <field name="sequence" eval="20"/>
            <field name="domain" eval="[('state', '=', 'sent')]" pyson="1"/>
            <field name="count" eval="True"/>
            <field name="act_window" ref="act_invoice_chorus_form"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_invoice_chorus_form_domain_exception">
            <field name="name">Exception</field>
            <field name="sequence" eval="30"/>
            <field name="domain" eval="[('state', '=', 'exception')]" pyson="1"/>
            <field name="count" eval="True"/>
            <field name="act_window" ref="act_invoice_chorus_form"/>
        </record>
        <record model="ir.action.act_window.domain" id="act_invoice_chorus_form_domain_all">
            <field name="name">All</field>
            <field name="sequence" eval="9999"/>
            <field name="domain"></field>
            <field name="act_window" ref="act_invoice_chorus_form"/>
        </record>

        <menuitem
            parent="account_invoice.menu_invoice_out_form"
            action="act_invoice_chorus_form"
            sequence="50"
            id="menu_invoice_chorus_form"/>

        <record model="ir.model.access" id="access_invoice_chorus">
            <field name="model">account.invoice.chorus</field>
            <field name="perm_read" eval="False"/>
            <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_account_chorus">
            <field name="model">account.invoice.chorus</field>
            <field name="group" ref="account.group_account"/>
            <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.button" id="invoice_chorus_send_button">
            <field name="model">account.invoice.chorus</field>
            <field name="name">send</field>
            <field name="string">Send</field>
        </record>

        <record model="ir.model.button" id="invoice_chorus_update_button">
            <field name="model">account.invoice.chorus</field>
            <field name="name">update</field>
            <field name="string">Update</field>
        </record>

    </data>
    <data noupdate="1">
        <record model="ir.cron" id="cron_invoice_send">
            <field name="method">account.invoice.chorus|send</field>
            <field name="interval_number" eval="15"/>
            <field name="interval_type">minutes</field>
        </record>

        <record model="ir.cron" id="cron_invoice_update">
            <field name="method">account.invoice.chorus|update</field>
            <field name="interval_number" eval="1"/>
            <field name="interval_type">hours</field>
        </record>
    </data>
</tryton>
