I am using Odoo 10. I have created Automated Action on purchase order update. And there is a condition field in action, so I gave the condition like this object.state=="to approve" . Everything works perfectly only that the mail triggers twice. That is I am getting two same emails whenever the above mentioned codition is satisfied. How can I avoid double emails to occur? I read many comments and solutions but didnt see a clear answer or solution for this. If anyone have solved this please share. Thanks in advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
can you show us your code? so we can help you
ok, can you see a field named "Number of Call" value should be -1
or you can do it same with coding like this
<?xml version="1.0" encoding="utf-8"?> <odoo> <record id="ir_cron_your_idname" model="ir.cron"> <field name="name">any name</field> <field name="interval_number">1</field> <field name="interval_type">days</field> <field name="numbercall">-1</field> <field name="doall" eval="False"/> <field name="model_id" ref="model_your_model"/> <field name="code">model.your_method()</field> <field name="state">code</field> </record> </odoo>
Dear Mohit it is a automated action under technical settings. There is no code for it. If you go for technical settings you can create automated action there. While making the new automated action you will find a field called "condition". In that text box I put my condition object.state=="to approve" and it works perfectly except the mail goes twice.
ok, I thought you did it programmatically
I updated my answers, try if it is helpful.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
1
أكتوبر 20
|
8193 | ||
|
1
يونيو 15
|
5750 | ||
Set-up Outgoing Mail Server Odoo
تم الحل
|
|
4
يونيو 24
|
2940 | |
|
0
يوليو 22
|
2274 | ||
|
0
أغسطس 21
|
2641 |