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

Hi guys!


I want to set an automated action, when an orders status is "sent" and the website is "rozbor WEB" then send an e-mail to our sales member.

I set this below:

Automated action

Model: Sales order

Condition: On Update

Watched fields: nothing is set

Before Update Domain: nothing is set

Apply on : Website = "Rozbor WEB" ; Status="sent"

Action: Send Email

Template: (I make my own template)
Applies to: Sales Order
Subject: New order ${object.name or 'n/a' }
Body: 
Hello!


New order (${object.name or 'n/a' }) was created on website rozborvody.sk.


Please start work with this order.


Thank you! :)


Email Configuration:
From: ${user.email_formatted | safe}To (Partners): (Partner ID)


Advanced Settings: Only Auto Delete is set


When i set this action, then odoo send 4x this e-mail.

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

Hello,

problem is solved.

I set this below:

Watched fields: "state"

Before Update Domain: Website = "Rozbor WEB"; Status= "draft"

In the template I set Email configuration -> From : odoobot@example.com

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

Hello David,

Try to set the before domain as the same as Apply on;

Before Update Domain: Website = "Rozbor WEB" ; Status="sent"


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
4853
3
thg 3 24
4679
0
thg 10 24
6568
0
thg 6 22
179
3
thg 4 24
2059