Files
enterprise-addons/marketing_automation_sms/models/mailing_mailing.py
T

15 lines
525 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class MailingMailing(models.Model):
_inherit = 'mailing.mailing'
def _send_sms_get_composer_values(self, res_ids):
composer_values = super()._send_sms_get_composer_values(res_ids)
if self.env.context.get('default_marketing_activity_id'):
composer_values['marketing_activity_id'] = self.env.context['default_marketing_activity_id']
return composer_values