diff --git a/base_ical/__manifest__.py b/base_ical/__manifest__.py index cdc04a513..7b7b8148a 100644 --- a/base_ical/__manifest__.py +++ b/base_ical/__manifest__.py @@ -11,7 +11,6 @@ "author": "Hunki Enterprises BV, Odoo Community Association (OCA)", "maintainers": ["hbrunn"], "license": "AGPL-3", - "uninstall_hook": "uninstall_hook", "external_dependencies": { "python": ["vobject"], }, diff --git a/base_ical/models/base_ical.py b/base_ical/models/base_ical.py index 330b13bd4..341f8c40d 100644 --- a/base_ical/models/base_ical.py +++ b/base_ical/models/base_ical.py @@ -146,7 +146,7 @@ def _get_eval_domain_context(self): def _get_events(self): """Return events based on model_id and domain""" self.ensure_one() - return self.env[self.model_id.model].search( + return self.env[self.model_id.sudo().model].search( safe_eval(self.domain, self._get_eval_domain_context()) )