Skip to content
Snippets Groups Projects
Commit d8c4690c authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

[FIX] Issue with calendar meetings

parent b8a854e6
No related branches found
No related tags found
No related merge requests found
...@@ -267,3 +267,11 @@ class CalendarEvent(models.Model): ...@@ -267,3 +267,11 @@ class CalendarEvent(models.Model):
del r[k] del r[k]
return result return result
@api.model
def read_group(self, domain, fields, groupby, offset=0, limit=None, orderby=False, lazy=True):
if 'date' in groupby:
raise UserError(_('Group by date is not supported, use the calendar view instead.'))
if self._context.get("mymeetings"):
domain.append(('partner_ids', 'in', self.env.user.partner_id.ids))
return super(CalendarEvent, self.with_context(virtual_id=False)).read_group(domain, fields, groupby, offset=offset, limit=limit, orderby=orderby, lazy=lazy)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment