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

Hi,

I'm trying to automate a process in the Field Service module for Odoo Online.

How can I create an automation rule that changes a task's stage to our custom stage 'In Progress' when a user clicks the 'Start' button on a task?

 

I have already attempted to use the 'On UI change' trigger for this automation, but it does not seem to activate when the button is clicked.

 

Could you please provide guidance on the necessary configuration steps for this automation?

Avatar
Abbandona

Hello Christoph, Im working with Said on this automation. Is timer_timer table accesible on Odoo online  with Execute Code actions ?

It's a table, so, yes.

Risposta migliore

Newly started and paused timers are timer.timer records (stored in the timer_timer table):

Note: Once stopped, this becomes a record at account.analytic.line - and the timer.timer record will be deleted!


That being said, your automation rule could check for creation of timer.timer records meeting your criteria of being linked to a project.task res_model. From there you would need to find the Stages applicable to the project.project of that project.task and assign it the one you would like it to have.

Avatar
Abbandona