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

I’m trying to make it where when a tasks stage is set to “repaired” the timer stops. I have an automation rule that starts the timer when stage is set to in progress but I can’t seem to make stop work if anyone can help. I’m on odoo online.

Avatar
Abbandona
Risposta migliore

Hi,

Activate Developer Mode

Create a New Automated Action

Model : Project Task

Trigger : On Update

Trigger Fields : stage_id

Filter Domain (optional, but clean):

[('stage_id.name', '=', 'Repaired')]


Action To Do : Execute Python Code

Python Code (best option):

if record.timer_start:

    record.timer_stop()


i hope it is usefull

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 20
4794
3
apr 16
17312
3
ago 15
8009
3
mar 15
4883
1
ott 24
1231