Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2771 Widoki

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?


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lip 25
2957
1
paź 24
2145
1
kwi 24
2205
0
lut 24
1545
0
wrz 23
1683