From cfade861be0605a9e0628340bcf3e04f5f6d4c49 Mon Sep 17 00:00:00 2001 From: "Victor Piryns (pivi)" Date: Mon, 3 Apr 2023 08:40:27 +0000 Subject: [PATCH] [FIX] sale_timesheet: hide SO in project's settings if not billable Current behaviour: You can see the `Sales Order Item` field in the project's `Settings` sheet page when the project is not `Billable`. Expected behaviour: If the project is not `Billable`, we hide the field `Sales Order Item`. Steps to reproduce: - Install `sale_timesheet`. - Project > kebab-menu on project > Settings - Click on the Settings tab of the project's form view - Observe there is a `Sales Order Item` field, even if the project is not Billable. Reason for the problem: Before, `Sales Order Item` was in the Invoicing tab, which is visible only when the project is billable and a partner is set. Due to a recent refactoring (b77f60b155bf97a115aa209847dc791677b2e924), the field was moved to the `Settings`, but the visibility condition that was on the invoicing tab was not. Fix: Add the missing visibility condition on the field `sale_line_id`. Affected versions: - saas-16.1 - saas-16.2 - master opw-3250937 closes odoo/odoo#117546 X-original-commit: ea97fb5be0ae3d40940f7befac6a2bc19c89b084 Signed-off-by: Xavier Bol (xbo) --- addons/sale_timesheet/views/project_task_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sale_timesheet/views/project_task_views.xml b/addons/sale_timesheet/views/project_task_views.xml index 7ca5840394f..d115ca09079 100644 --- a/addons/sale_timesheet/views/project_task_views.xml +++ b/addons/sale_timesheet/views/project_task_views.xml @@ -7,8 +7,8 @@ - - + +