<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="hr_timesheet_line_tree" model="ir.ui.view">
        <field name="name">hr.analytic.timesheet.tree</field>
        <field name="model">account.analytic.line</field>
        <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree" />
        <field name="arch" type="xml">
            <xpath expr="//tree" position="attributes">
                <attribute name="editable">top</attribute>
                <attribute name="default_order">date desc</attribute>
            </xpath>
        </field>
    </record>

    <record id="view_task_form2_inherited" model="ir.ui.view">
        <field name="model">project.task</field>
        <field name="inherit_id" ref="hr_timesheet.view_task_form2_inherited" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='timesheet_ids']//tree" position="attributes">
                <attribute name="editable">top</attribute>
                <attribute name="default_order">date desc</attribute>
            </xpath>
        </field>
    </record>
</odoo>
