[IMP] hr_timesheet_work_entry: work entry type in more views

This commit is contained in:
Jared Kipe
2022-01-09 14:22:53 -08:00
parent 4781654059
commit 82444f5603
2 changed files with 19 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
'license': 'AGPL-3',
'category': 'Human Resources',
'depends': [
'project',
'hr_timesheet',
'hr_work_entry',
],

View File

@@ -27,4 +27,22 @@
</field>
</record>
<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="hr_timesheet.view_task_form2_inherited" />
<field name="arch" type="xml">
<xpath expr="//field[@name='timesheet_ids']/tree//field[@name='employee_id']" position="after">
<field name="work_type_id"
domain="[('allow_timesheet', '=', True)]"
context="{'default_allow_timesheet': True}" />
</xpath>
<xpath expr="//field[@name='timesheet_ids']/form//field[@name='task_id']" position="after">
<field name="work_type_id"
domain="[('allow_timesheet', '=', True)]"
context="{'default_allow_timesheet': True}" />
</xpath>
</field>
</record>
</odoo>