mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[IMP] sale_timesheet_work_entry_rate: show allowed work types only
This commit is contained in:
@@ -7,10 +7,14 @@
|
|||||||
<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']/tree/field[@name='name']" position="before">
|
<xpath expr="//field[@name='timesheet_ids']/tree/field[@name='name']" position="before">
|
||||||
<field name="work_type_id"/>
|
<field name="work_type_id"
|
||||||
|
domain="[('allow_timesheet', '=', True)]"
|
||||||
|
context="{'default_allow_timesheet': True}" />
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//field[@name='timesheet_ids']/form//field[@name='name']" position="before">
|
<xpath expr="//field[@name='timesheet_ids']/form//field[@name='name']" position="before">
|
||||||
<field name="work_type_id"/>
|
<field name="work_type_id"
|
||||||
|
domain="[('allow_timesheet', '=', True)]"
|
||||||
|
context="{'default_allow_timesheet': True}" />
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user