diff options
| author | Xavier BOL (xbo) <xbo@odoo.com> | 2020-12-10 16:32:32 +0100 |
|---|---|---|
| committer | Xavier BOL (xbo) <xbo@odoo.com> | 2020-12-21 15:35:20 +0100 |
| commit | daa1036eb6b54588224bc5d6fe9be6974cde1ea8 (patch) | |
| tree | 12408aa8936504a5cb443e9a649215c99569568e | |
| parent | c4331560668f1eb56852a712e502ece78701d3fe (diff) | |
[FIX] sale_timesheet: change condition to display SOL
Since the SO in task is always invisible, we cannot set this field. Then
the SOL will never display in the view because we need the SO will be
set to display it.
This commit changes the condition to remove the SO will be set to display
the SOL.
task-2409761
| -rw-r--r-- | addons/sale_timesheet/views/project_task_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale_timesheet/views/project_task_views.xml b/addons/sale_timesheet/views/project_task_views.xml index ea7de9097aa..dcc01ec6aab 100644 --- a/addons/sale_timesheet/views/project_task_views.xml +++ b/addons/sale_timesheet/views/project_task_views.xml @@ -152,7 +152,7 @@ <xpath expr="//field[@name='sale_line_id']" position="attributes"> <attribute name="context">{'with_remaining_hours': True}</attribute> <attribute name="attrs"> - {'invisible': ['|', '|', '|', ('allow_billable', '=', False), ('sale_order_id', '=', False), '&', ('bill_type', '=', 'customer_project'), ('pricing_type', '=', 'employee_rate'), ('partner_id', '=', False)]} + {'invisible': ['|', '|', ('allow_billable', '=', False), '&', ('bill_type', '=', 'customer_project'), ('pricing_type', '=', 'employee_rate'), ('partner_id', '=', False)]} </attribute> </xpath> <xpath expr="//field[@name='remaining_hours']" position="after"> |
