تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
181 أدوات العرض

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.

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مايو 20
4773
3
أبريل 16
17301
3
أغسطس 15
7980
3
مارس 15
4855
1
أكتوبر 24
1216