Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3003 มุมมอง

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
2986
0
มี.ค. 19
3809
1
ต.ค. 21
10775
0
ต.ค. 21
2078
5
ก.ค. 25
2379