[FIX] mail_activity_board: read access to ir.model for non admin

users when accessing records that inherit mail.activity mixing
This commit is contained in:
AaronHForgeFlow 2022-08-01 09:52:36 +02:00 committed by augusto-weiss
parent 28baba1132
commit 73865070ac

View File

@ -33,7 +33,7 @@ class MailActivity(models.Model):
@api.model
def _selection_related_model_instance(self):
models = self.env["ir.model"].search([("is_mail_activity", "=", True)])
models = self.env["ir.model"].sudo().search([("is_mail_activity", "=", True)])
return [(model.model, model.name) for model in models]
def open_origin(self):