跳至內容
選單
此問題已被標幟
2796 瀏覽次數

Hello everyone,

I am currently working on automating some processes for candidate management.

I am running locally Odoo 14 with Recruitment all installed. Also, Gmail is configured as my external mail server.


I was able to retrieve the list of the candidates("hr.applicant" model) and also retrieve the email chain from them.

However, I am not able to send them an email.

I tried the following code, but it adds it as a note only.

models.execute_kw(db, uid, password,
'mail.mail', 'create',
[{
'add_sign': True,
'attachment_ids': [],
'author_id': 3,
'body': '<p>Hello John, this is a custom email 3</p>',
'create_uid': [2, 'Administrator'],
'display_name': 'John',
'message_type': 'email',
'model': 'hr.applicant',
'no_auto_thread': False,
#'notified_partner_ids': [8],
'parent_id': 24,
'partner_ids': [8],
'record_name': 'John',
}])


also tried "mail.compose.message" model, but I did not see neither the note in the web interface, neither the email on my test applicant.


Am I doing something wrong?


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
7月 25
2973
1
10月 24
2162
1
4月 24
2224
0
2月 24
1551
0
9月 23
1723