diff --git a/mail_digest/models/mail_digest.py b/mail_digest/models/mail_digest.py index f48ebd49..66474396 100644 --- a/mail_digest/models/mail_digest.py +++ b/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):