commit
0a8015d777
|
@ -39,7 +39,6 @@ class CommentTemplate(models.AbstractModel):
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
for template in templates:
|
for template in templates:
|
||||||
if not template.domain or self in self.search(
|
domain = safe_eval(template.domain)
|
||||||
safe_eval(template.domain)
|
if not domain or record.filtered_domain(domain):
|
||||||
):
|
|
||||||
record.comment_template_ids = [(4, template.id)]
|
record.comment_template_ids = [(4, template.id)]
|
||||||
|
|
Loading…
Reference in New Issue