Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
567 Lượt xem

Hi all. Have a hard time with setting an Automation Rule in Odoo 17. So I have a model Equipment with Notification Date Field and Notification Email CheckBox Field. I need to automatically send email when Notification Date is Today and Notification Email CheckBox is True. Using Automation Rules. Everything is set as suppose. I can see one record matching the rule, there is email for the customer that matching the rule, but email never sent.. I think I'm probably setting field To(Emails) and To(Partners) in the Email Template wrong. I have my email address in To(Emails) and

 {{ res.partner.email }} in To(Partner) Field. Any advise on how to set these email addresses is greatly appreciated as always.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Dyrbavka,

You can try it like this:


To(Emails): {{ object.partner_id.email_formatted }}

To(Partners): {{ object.partner_id.id }}

Hope it helps

Ảnh đại diện
Huỷ bỏ