From 2b775b0136a4d06c5d55848ff397f4e83abc6975 Mon Sep 17 00:00:00 2001 From: Thibault Francois Date: Mon, 4 Jul 2016 14:17:07 +0200 Subject: [PATCH] [FIX] Make hr_timesheet updatable, remove command 0 in one2many that will violate the unique key constraint and replace them by the creation of ir.actions.act_window.view --- addons/hr_timesheet/hr_timesheet_view.xml | 17 +++++++++--- .../report/hr_timesheet_report_view.xml | 26 +++++++++++++++---- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/addons/hr_timesheet/hr_timesheet_view.xml b/addons/hr_timesheet/hr_timesheet_view.xml index e65249e92b0..ac34291657d 100644 --- a/addons/hr_timesheet/hr_timesheet_view.xml +++ b/addons/hr_timesheet/hr_timesheet_view.xml @@ -66,10 +66,6 @@ Activities account.analytic.line - [('project_id', '!=', False)] {"search_default_today":1} @@ -83,6 +79,19 @@

+ + + tree + + + + + + form + + + + diff --git a/addons/hr_timesheet/report/hr_timesheet_report_view.xml b/addons/hr_timesheet/report/hr_timesheet_report_view.xml index c4cf159f92b..66ed0f56d99 100644 --- a/addons/hr_timesheet/report/hr_timesheet_report_view.xml +++ b/addons/hr_timesheet/report/hr_timesheet_report_view.xml @@ -4,11 +4,6 @@ Activities account.analytic.line - [('project_id', '!=', False)] {"search_default_today":1} @@ -23,6 +18,27 @@ + + + pivot + + + + + + + tree + + + + + + + form + + + +