summaryrefslogtreecommitdiff
path: root/addons/sms/models/sms_template.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/sms/models/sms_template.py')
-rw-r--r--addons/sms/models/sms_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sms/models/sms_template.py b/addons/sms/models/sms_template.py
index 922a92df93c..5439c9cbb22 100644
--- a/addons/sms/models/sms_template.py
+++ b/addons/sms/models/sms_template.py
@@ -19,7 +19,7 @@ class SMSTemplate(models.Model):
name = fields.Char('Name', translate=True)
model_id = fields.Many2one(
'ir.model', string='Applies to', required=True,
- domain=['&', ('is_mail_thread', '=', True), ('transient', '=', False)],
+ domain=['&', ('is_mail_thread_sms', '=', True), ('transient', '=', False)],
help="The type of document this template can be used with")
model = fields.Char('Related Document Model', related='model_id.model', index=True, store=True, readonly=True)
body = fields.Char('Body', translate=True, required=True)