i need to send automtic mail using server action what is the python code use for it ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
Hi
Refer below line may help you
https://www.odoo.com/forum/help-1/question/how-to-send-invoice-mail-automatically-24620
http://stackoverflow.com/questions/23908437/how-to-create-program-for-sending-mail-autometically-from-openerp-using-python
http://maheshwarimayur.blogspot.in/2012/12/send-mail-in-openerp-with-mail-templates.html
Hi
In my case I needed to send an automatic instant email to all users who create a new account. In my Server Action I have my python code:
mail_template_id = 38
email_template = env['mail.template'].browse(mail_template_id)
email_template.send_mail(record.id, force_send = True)
I hope you find it useful.
i checked this links before i ask my question but i still canot do it :(
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
1
أكتوبر 19
|
2626 | ||
|
1
مايو 25
|
556 | ||
|
2
مايو 25
|
442 | ||
|
0
أبريل 25
|
598 | ||
|
1
أبريل 25
|
791 |