From 037a152db64f6dbdfbd89268f534a4e3bc022b23 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Wed, 17 Aug 2016 16:37:44 +0200 Subject: [PATCH] [FIX] project_issue_sheet: hide timesheets tab on issues w/o project Since it is not possible to create a timesheet entry on a issue without a project_id, the timesheets page in the form view should be hidden if no project is set. This prevents the user from trying to create a timesheet entry on the issue and receive a not so transparent message like: mandatory field is not set: [object with reference: account_id - account.id] --- addons/project_issue_sheet/project_issue_sheet_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project_issue_sheet/project_issue_sheet_view.xml b/addons/project_issue_sheet/project_issue_sheet_view.xml index a06bfe0cce2..677b7fd714c 100644 --- a/addons/project_issue_sheet/project_issue_sheet_view.xml +++ b/addons/project_issue_sheet/project_issue_sheet_view.xml @@ -14,7 +14,7 @@ on_change_project(project_id) - +