summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier BOL (xbo) <xbo@odoo.com>2020-12-10 16:32:32 +0100
committerXavier BOL (xbo) <xbo@odoo.com>2020-12-21 15:35:20 +0100
commitdaa1036eb6b54588224bc5d6fe9be6974cde1ea8 (patch)
tree12408aa8936504a5cb443e9a649215c99569568e
parentc4331560668f1eb56852a712e502ece78701d3fe (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.xml2
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), '&amp;', ('bill_type', '=', 'customer_project'), ('pricing_type', '=', 'employee_rate'), ('partner_id', '=', False)]}
+ {'invisible': ['|', '|', ('allow_billable', '=', False), '&amp;', ('bill_type', '=', 'customer_project'), ('pricing_type', '=', 'employee_rate'), ('partner_id', '=', False)]}
</attribute>
</xpath>
<xpath expr="//field[@name='remaining_hours']" position="after">