Browse Source

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

pull/228/head
Simone Orsi 7 years ago
committed by Holger Brunn
parent
commit
fffc27787e
  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