تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
2999 أدوات العرض

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


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 23
9115
1
يناير 21
9944
1
أكتوبر 20
7735
1
مايو 19
3146
0
ديسمبر 16
3858