<?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="timesheet_line_view_form">
            <field name="model">timesheet.line</field>
            <field name="inherit" ref="timesheet.line_view_form"/>
            <field name="name">timesheet_line_form</field>
        </record>
        <record model="ir.action.act_window" id="act_timesheet_line_form_invoice">
            <field name="name">Timesheet Lines</field>
            <field name="res_model">timesheet.line</field>
            <field name="domain"
                eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('invoice_line.invoice', '=', Eval('active_id')), ('invoice_line.invoice', 'in', Eval('active_ids')))]"
                pyson="1"/>
        </record>
        <record model="ir.action.keyword"
            id="act_timesheet_line_form_invoice_keyword1">
            <field name="keyword">form_relate</field>
            <field name="model">account.invoice,-1</field>
            <field name="action" ref="act_timesheet_line_form_invoice"/>
        </record>
        <record model="ir.action-res.group"
            id="act_timesheet_line_form_invoice-group_timesheet_admin">
            <field name="action" ref="act_timesheet_line_form_invoice"/>
            <field name="group" ref="timesheet.group_timesheet_admin"/>
        </record>
    </data>
</tryton>
