Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2398 Ansichten

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.

Avatar
Verwerfen
Beste Antwort

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. 

Avatar
Verwerfen
Autor

Thank you, this worked so well!!!

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Aug. 25
402
2
Aug. 25
1407
0
Feb. 25
1520
1
Aug. 25
2132
2
Dez. 24
1769