From 9048ecfaf51073aefd5f52f4e04d850ae3252d69 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 31 Jul 2023 13:13:25 +0200 Subject: [PATCH] fixup! [ADD] base_ical --- base_ical/__manifest__.py | 1 - base_ical/models/base_ical.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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()) )