Merge PR #774 into 15.0

Signed-off-by pedrobaeza
pull/741/head
OCA-git-bot 2023-07-20 19:16:23 +00:00
commit a287d9e11d
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class BaseCommentTemplate(models.Model):
item.name, dict(self._fields["position"].selection).get(item.position)
)
if self.env.context.get("comment_template_model_display"):
name += " (%s)" % ", ".join(item.model_ids.mapped("name"))
name += " (%s)" % ", ".join(item.sudo().model_ids.mapped("name"))
res.append((item.id, name))
return res