Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
3003 Visualizzazioni

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?



Avatar
Abbandona
Autore

Ok, thanks i will try this code

Autore

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

Risposta migliore

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


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 23
9117
1
gen 21
9951
1
ott 20
7737
1
mag 19
3147
0
dic 16
3861