Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2969 Lượt xem

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
})
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 19
2972
0
thg 3 19
3758
1
thg 10 21
10747
0
thg 10 21
2035
5
thg 7 25
2356