Merge branch 'imp/14.0/timesheet_description__view_attributes' into '14.0'

imp/14.0/timesheet_description__view_attributes into 14.0

See merge request hibou-io/hibou-odoo/suite!977
This commit is contained in:
Jared Kipe
2021-08-31 17:50:34 +00:00

View File

@@ -5,12 +5,14 @@
<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']" 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='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>
</record>