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

I want to check for new contacts to send an automatic e-mail. So on a daily basis, I would do an automatic process comparing the create date of a new contact. If the create date is higher than yesterday, I would send a mail.


How do I compare the Create date to the date of yesterday (today, minus one day)

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

Hi,

You need to create a scheduled action and mail template for this.The model of both are shown in the images below:

You can create the template from settings -> technical -> email templates and scheduled action from settings -> technical -> scheduled action.
The id passed in the line:    mail_template = env'mail. template']. sudo. browse(80)Is the id of the email template.


Hope it helps

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

Thank you, I'll try this. I didn't know it would require programming ;-)

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