Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2458 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Autor

Thank you, this worked so well!!!

Publicações relacionadas Respostas Visualizações Atividade
2
ago. 25
457
2
ago. 25
1448
0
fev. 25
1557
1
ago. 25
2183
2
dez. 24
1816