<?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="work_view_form">
            <field name="model">project.work</field>
            <field name="inherit" ref="project.work_view_form"/>
            <field name="name">work_form</field>
        </record>

        <record model="ir.model.button" id="work_invoice_button">
            <field name="name">invoice</field>
            <field name="model" search="[('model', '=', 'project.work')]"/>
        </record>
        <record model="ir.model.button-res.group"
            id="work_invoice_button_group_project_invoice">
            <field name="button" ref="work_invoice_button"/>
            <field name="group" ref="group_project_invoice"/>
        </record>

        <record model="ir.action.wizard" id="open_invoice">
            <field name="name">Invoices</field>
            <field name="wiz_name">project.open_invoice</field>
            <field name="model">project.work</field>
        </record>
        <record model="ir.action.keyword" id="open_invoice_keyword">
            <field name="keyword">form_relate</field>
            <field name="model">project.work,-1</field>
            <field name="action" ref="open_invoice"/>
        </record>
        <record model="ir.action-res.group" id="open_invoice-group_invoice">
            <field name="action" ref="open_invoice"/>
            <field name="group" ref="account.group_account"/>
        </record>
    </data>
</tryton>
