Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2341 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

Thank you, this worked so well!!!

Post correlati Risposte Visualizzazioni Attività
2
giu 25
967
0
feb 25
1247
1
gen 25
1674
2
dic 24
1413
1
nov 24
155