Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 20
4904
3
kwi 16
17497
3
sie 15
8131
3
mar 15
4986
1
paź 24
1370