Skip to Content
Menu
This question has been flagged
1 Atsakyti
208 Rodiniai

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?

Portretas
Atmesti

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.

Best Answer

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.

Portretas
Atmesti