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

I’m trying to set up an Automated Action in Odoo Enterprise to send a warning email to clients when a specific date field inside the sale.order.line model is delayed or has passed.

Requirements:

  • The action should trigger based on a "Sample Cutoff Date" inside sale.order.line.
  • It should only apply to confirmed Sale Orders (sale.order where state = 'sale').
  • The condition should check whether the Sample Cutoff Date has been exceeded.
  • If the date is delayed/passed, the system should automatically send a warning email to the client.

Issue Faced:

  • Since sale.order.line does not inherit mail.thread, an error occurs when trying to send an email via the automated action:

    "This action can only be done in mail thread models."

  • I need a proper way to trigger this action and send the email without issues.

Questions:

  • How can I correctly implement this automated action?
  • Should I use a Scheduled Action instead?
  • Is there a workaround to send emails from sale.order.line while ensuring the action triggers correctly?

Any help or guidance would be greatly appreciated! 🙏🔥 Hope ill get the response, help me here


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Automation rules แก้ไขแล้ว
3
ก.ย. 24
2980
2
มิ.ย. 23
2500
1
ก.ค. 25
650
4
มิ.ย. 25
1738
5
พ.ค. 25
18071