From eef14dd5cbf4df74922a4bef9a6b778b095f8e81 Mon Sep 17 00:00:00 2001 From: Tanguy Charlier Date: Tue, 9 Aug 2016 16:52:59 +0200 Subject: [PATCH] [FIX] hr_timesheet: Hide timesheets on tasks w/o project Since it is not possible to create a timesheet entry on a task without a project_id, the timesheets page on the task form view will be hidden on such tasks. This prevents the user from trying to create a timesheet entry on such a task and receive a not so transparent message like: mandatory field is not set: [object with reference: account_id - account.id] --- addons/hr_timesheet/project_timesheet_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet/project_timesheet_view.xml b/addons/hr_timesheet/project_timesheet_view.xml index 300b61ae44c..dfad54910b7 100644 --- a/addons/hr_timesheet/project_timesheet_view.xml +++ b/addons/hr_timesheet/project_timesheet_view.xml @@ -75,7 +75,7 @@ - +