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

Hello,

I have configure email in odoo 11 and working fine, but now i want to create a function in my code to sent email after request has been submitted to recipient.

Any Help?



Awatar
Odrzuć
Autor

Ok, thanks i will try this code

Autor

Hello Sudhir thanks a lot but how do i sent email from template as well?

Najlepsza odpowiedź

Do you want to send an email from button click? If yes, use following code:

mail_template = self.env.ref('my_module.my_email_template') // Get Email Template by XML ID
mail_template.send_mail(record.id, force_send=True) // Send Email


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
gru 23
9108
1
sty 21
9943
1
paź 20
7731
1
maj 19
3145
0
gru 16
3854