I created an email template and automated action to send alert whenever an leave/timeoff is approved. I can see the mails in odoo emails section. There's a send now button. How can it be send automatically whenever leave approved.
لقد تم الإبلاغ عن هذا السؤال
3
الردود
3848
أدوات العرض
There is force_send=True option to send emails immediately (when you send email from code). But I don't see this option available in Automated Action - send email.
Try to choose Action To Do - Exectute Python Code:
email_template = env['mail.template'].browse(your_email_template_id)
email_template.send_mail(record.id, force_send=True)
no code, only odoo GUI config.
This forum is not letting to post screenshots too. Is there anyway i can share screenshots.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
1
أبريل 23
|
4233 | ||
|
|
0
أغسطس 23
|
2592 | ||
|
|
1
أكتوبر 15
|
8993 | ||
|
|
4
أبريل 26
|
9505 | ||
|
|
1
أبريل 26
|
4621 |
can you share the code?