| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record model="ir.ui.view" id="leave_task_form_view"> |
| 5 |
<field name="name">project.task.leave.form.view</field> |
| 6 |
<field name="model">project.task</field> |
| 7 |
<field name="inherit_id" ref="hr_timesheet.view_task_form2_inherited"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<xpath expr="/form" position="inside"> |
| 10 |
<field name="is_timeoff_task" invisible="1"/> |
| 11 |
</xpath> |
| 12 |
<xpath expr="//field[@name='timesheet_ids']" position="attributes"> |
| 13 |
<attribute name="readonly">not analytic_account_active or is_timeoff_task</attribute> |
| 14 |
</xpath> |
| 15 |
</field> |
| 16 |
</record> |
| 17 |
|
| 18 |
</odoo> |