Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
3008 Представления

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?



Аватар
Отменить
Автор

Ok, thanks i will try this code

Автор

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

Лучший ответ

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


Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
дек. 23
9125
1
янв. 21
9975
1
окт. 20
7745
1
мая 19
3153
0
дек. 16
3875