跳至內容
選單
此問題已被標幟
1 回覆
2342 瀏覽次數

Hi there, I can do very basic python coding, trying to create a trigger to do the following:


When a RFQ under Purchase model gets confirmed to a Purchase Order. The next_activity field value = "Waiting on ETA".


I don't have a clue how to start it in Automation editor. If anyone could point me to the right direction, thank you in advance.

頭像
捨棄
最佳答案

No need of Python code.

Create an automated action (In debug mode, menu: Settings / Technical / Automation / Automated actions) 

Model: Purchase Order.

Action to do: Create activity

Trigger: On Update.

Trigger field: Status

Before update domain: 

["|",["state","=","draft"],["state","=","sent"]]

Apply on domain: 

["|",["state","=","purchase"],["state","=","done"]]

On the tab "activity" define it as you need. 

頭像
捨棄
作者

Thank you, this worked so well!!!

相關帖文 回覆 瀏覽次數 活動
2
6月 25
968
0
2月 25
1249
1
1月 25
1676
2
12月 24
1414
1
11月 24
155