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

pull/228/head
Simone Orsi 2018-01-12 15:36:31 +01:00 committed by Holger Brunn
parent 4d21acd232
commit fffc27787e
1 changed files with 2 additions and 1 deletions

View File

@ -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):