diff options
Diffstat (limited to 'addons/sms/models')
| -rw-r--r-- | addons/sms/models/sms_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sms/models/sms_template.py b/addons/sms/models/sms_template.py index e1ba74d3bb1..cf2120c8a5e 100644 --- a/addons/sms/models/sms_template.py +++ b/addons/sms/models/sms_template.py @@ -20,7 +20,7 @@ class SMSTemplate(models.Model): model_id = fields.Many2one( 'ir.model', string='Applies to', required=True, domain=['&', ('is_mail_thread_sms', '=', True), ('transient', '=', False)], - help="The type of document this template can be used with") + help="The type of document this template can be used with", ondelete='cascade') model = fields.Char('Related Document Model', related='model_id.model', index=True, store=True, readonly=True) body = fields.Char('Body', translate=True, required=True) lang = fields.Char('Language', help="Use this field to either force a specific language (ISO code) or dynamically " |
