[IMP] timesheet_description: remove un-needed context, and set attributes on timesheet name

This commit is contained in:
Jared Kipe
2021-08-31 10:47:51 -07:00
parent e9e1943805
commit 680cea4983

View File

@@ -5,12 +5,14 @@
<field name="model">project.task</field> <field name="model">project.task</field>
<field name="inherit_id" ref="hr_timesheet.view_task_form2_inherited" /> <field name="inherit_id" ref="hr_timesheet.view_task_form2_inherited" />
<field name="arch" type="xml"> <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"> <xpath expr="//field[@name='timesheet_ids']/tree" position="attributes">
<attribute name="editable"/> <attribute name="editable"/>
</xpath> </xpath>
<xpath expr="//field[@name='timesheet_ids']/form//field[@name='name']" position="attributes">
<attribute name="widget">text</attribute>
<attribute name="placeholder">Describe your activity (you can use markdown)</attribute>
<attribute name="colspan">4</attribute>
</xpath>
</field> </field>
</record> </record>