Browse Source

[imp] mail_digest: enforce template domain to type=qweb

pull/187/head
Simone Orsi 7 years ago
parent
commit
615fe4a416
  1. 3
      mail_digest/models/mail_digest.py

3
mail_digest/models/mail_digest.py

@ -44,7 +44,8 @@ class MailDigest(models.Model):
'ir.ui.view',
'Qweb mail template',
ondelete='set null',
default=lambda self: self._default_template_id()
default=lambda self: self._default_template_id(),
domain=[('type', '=', 'qweb')],
)
def _default_template_id(self):

Loading…
Cancel
Save