Debian Codegraph @

addons/hr_recruitment_sms/models/hr_applicant.py

raw
1 # Part of Odoo. See LICENSE file for full copyright and licensing details.
2
3 from odoo import models, _
4
5
6 class HrApplicant(models.Model):
7 _inherit = 'hr.applicant'
8
9 def action_send_sms(self):
10 res = self.env['ir.actions.act_window']._for_xml_id('sms.sms_composer_action_form')
11 res['context'] = {
12 'default_composition_mode': 'mass',
13 'default_mass_keep_log': True,
14 'default_res_ids': self.ids,
15 }
16 return res