diff --git a/project_forecast/models/project_forecast.py b/project_forecast/models/project_forecast.py
index 93d93d9..6c61e71 100755
--- a/project_forecast/models/project_forecast.py
+++ b/project_forecast/models/project_forecast.py
@@ -23,6 +23,13 @@ class PlanningShift(models.Model):
('project_required_if_task', "CHECK( (task_id IS NOT NULL AND project_id IS NOT NULL) OR (task_id IS NULL) )", "If the planning is linked to a task, the project must be set too."),
]
+ @api.model
+ def read_group(self, domain, fields, groupby, offset=0, limit=None, orderby=False, lazy=True):
+ if 'budgeted_hours' in fields:
+ fields.remove('budgeted_hours')
+ return super(PlanningShift, self).read_group(domain, fields, groupby, offset, limit, orderby, lazy)
+
+
@api.depends('project_id', 'employee_id')
def _compute_budgeted_hours(self):
for slot in self:
diff --git a/project_forecast/views/planning_views.xml b/project_forecast/views/planning_views.xml
index 199e15c..9b7fce4 100755
--- a/project_forecast/views/planning_views.xml
+++ b/project_forecast/views/planning_views.xml
@@ -8,8 +8,9 @@
-
-
+
+
+