- create new module hr_promote (depend: hr,approvals) \n - customize approval_type (WIP)
15 lines
539 B
Python
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
|