Skip to content

Commit

Permalink
fixup! [ADD] base_ical
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Jul 31, 2023
1 parent b03bb9f commit 9048ecf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion base_ical/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
Expand Down
2 changes: 1 addition & 1 deletion base_ical/models/base_ical.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
)

Expand Down

0 comments on commit 9048ecf

Please sign in to comment.