mirror of
https://github.com/bringout/oca-ocb-mail.git
synced 2026-04-22 17:22:07 +02:00
19.0 vanilla
This commit is contained in:
parent
5df8c07b59
commit
daa394e8b0
2114 changed files with 564841 additions and 299642 deletions
|
|
@ -4,8 +4,8 @@
|
|||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class SMSTemplatePreview(models.TransientModel):
|
||||
_name = "sms.template.preview"
|
||||
class SmsTemplatePreview(models.TransientModel):
|
||||
_name = 'sms.template.preview'
|
||||
_description = "SMS Template Preview"
|
||||
|
||||
@api.model
|
||||
|
|
@ -18,7 +18,7 @@ class SMSTemplatePreview(models.TransientModel):
|
|||
|
||||
@api.model
|
||||
def default_get(self, fields):
|
||||
result = super(SMSTemplatePreview, self).default_get(fields)
|
||||
result = super().default_get(fields)
|
||||
sms_template_id = self.env.context.get('default_sms_template_id')
|
||||
if not sms_template_id or 'resource_ref' not in fields:
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue