Merge PR #509 into 14.0

Signed-off-by pedrobaeza
pull/516/head
OCA-git-bot 2021-05-25 08:38:42 +00:00
commit 3042dbea5b
1 changed files with 2 additions and 3 deletions

View File

@ -39,7 +39,6 @@ class CommentTemplate(models.AbstractModel):
]
)
for template in templates:
if not template.domain or self in self.search(
safe_eval(template.domain)
):
domain = safe_eval(template.domain)
if not domain or record.filtered_domain(domain):
record.comment_template_ids = [(4, template.id)]