Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2974 Переглядів

I have created a cronjob to download files in my custom model google_drive_scanner to create new applicants from google drive files. I want to send notification to reviewer in hr.job table but when I create it doesn't link to my hr.applicant.

self.env['mail.message'].create({
    'message_type': "notification",
    "subtype": self.env.ref("mail.mt_comment").id,
    'body': body,
    'subject': subject,
    'needaction_partner_ids': action_partner,
    'model': self._name, #hr.applicant model
    'res_id': self.id  #what res_id
})
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
бер. 19
2975
0
бер. 19
3768
1
жовт. 21
10757
0
жовт. 21
2037
5
лип. 25
2357