19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:39 +01:00
parent 5df8c07b59
commit daa394e8b0
2114 changed files with 564841 additions and 299642 deletions

View file

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