1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/marketing_automation_sms/models/mailing_mailing.py
2024-12-10 09:04:09 +07:00

15 lines
539 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class MassMailing(models.Model):
_inherit = 'mailing.mailing'
def _send_sms_get_composer_values(self, res_ids):
composer_values = super(MassMailing, self)._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