From fab3b4cac2c1be79b0e7eea985378d90e770baf0 Mon Sep 17 00:00:00 2001 From: projectsodoo Date: Fri, 19 Feb 2021 18:51:33 +0530 Subject: [PATCH] View allocation extra field added --- cor_custom/report/project_hours_report.py | 2 +- cor_custom/report/project_hours_report_view.xml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cor_custom/report/project_hours_report.py b/cor_custom/report/project_hours_report.py index b347d84..ca280e1 100755 --- a/cor_custom/report/project_hours_report.py +++ b/cor_custom/report/project_hours_report.py @@ -28,7 +28,7 @@ class BudgetHrsAnalysis(models.Model): for record in self: name = record.project_id and record.project_id.name or '' if record.employee_id.name: - name = record.employee_id.name + '/' + name + name = record.employee_id.name + '/' + name + '/' + record.hours_type res.append((record.id, name)) return res diff --git a/cor_custom/report/project_hours_report_view.xml b/cor_custom/report/project_hours_report_view.xml index ea8d4ba..8aeb24a 100755 --- a/cor_custom/report/project_hours_report_view.xml +++ b/cor_custom/report/project_hours_report_view.xml @@ -75,6 +75,10 @@ mode="month"> + + + +