Odoo18-Base/extra-addons/marketing_automation_sms/models/mailing_mailing.py
hoangvv b8024171a2 - add modules(marketing automation + approvals + webstudio) \n
- create new module hr_promote (depend: hr,approvals) \n
- customize approval_type (WIP)
2025-01-17 07:32:51 +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