mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[IMP] hr_timesheet_work_entry: work entry type in more views
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
'license': 'AGPL-3',
|
||||
'category': 'Human Resources',
|
||||
'depends': [
|
||||
'project',
|
||||
'hr_timesheet',
|
||||
'hr_work_entry',
|
||||
],
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user