Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2407 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

Thank you, this worked so well!!!

Related Posts Odpovědi Zobrazení Aktivita
2
srp 25
412
2
srp 25
1411
0
úno 25
1528
1
srp 25
2136
2
pro 24
1775