<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <record id="view_task_form2_inherit" model="ir.ui.view">
        <field name="name">project.task.form.inherit</field>
        <field name="model">project.task</field>
        <field name="inherit_id" ref="timesheet_description.view_task_form2_inherit" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='timesheet_ids']" position="attributes">
                <attribute name="context">{'default_project_id': project_id, 'default_task_id': active_id}</attribute>
            </xpath>
            <xpath expr="//field[@name='timesheet_ids']/tree" position="attributes">
                <attribute name="editable"/>
            </xpath>
            <xpath expr="//field[@name='timesheet_ids']/form//field[@name='project_id']" position="before">
                <field name="timesheet_invoice_id" invisible="1"/>
            </xpath>
        </field>
    </record>
</odoo>