Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2580 มุมมอง

Our odoo was configured to send email when a leave(time off) is approved. It was done using Automated actions.
From past 2,3 days it's not working. Below is the error getting from Odoo logs.

odoo.addons.mail.models.mail_mail: Mail with ID 9772 and Message-Id '' successfully sent
odoo.models.unlink: User #1 deleted mail.mail records with IDs: [9772]
odoo.addons.mail.models.mail_mail: Sent batch 1 emails via mail server ID #False

Any idea why odoo is deleting those records.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Charles,

When you send mail in your send_mail method or any mail related method need parameter like force_send=True

and second condition is Your odoo Email template have auto delete false.

อวตาร
ละทิ้ง
ผู้เขียน

Thank you Nikhil,
I checked auto delete option, it's not selected.
where can i edit send_mail method

You create automated action so its direct create Odoo frontend
inside -> Technical -> Automated Actions

ผู้เขียน

this github link not working, can you check please

ผู้เขียน คำตอบที่ดีที่สุด

Thank you, i can't find force send option here.

อวตาร
ละทิ้ง

i think you automated action trigger during based on state update and model is Time Off(hr.leave)

ผู้เขียน

wondering why it's not working now from 1 week. Should I change the trigger to anything else

can you check your outgoing server connection is success.
settings -> Technical -> Outgoing mail server -> Test.

ผู้เขียน

yes, mail server test is working. Emails when a leave request created working fine.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
4932
3
เม.ย. 24
2413
1
ก.ย. 23
2247
5
ก.ค. 20
6227
0
มี.ค. 17
3417