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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
248
瀏覽次數
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
5月 20
|
4807 | ||
|
3
4月 16
|
17322 | ||
|
3
8月 15
|
8019 | ||
|
3
3月 15
|
4883 | ||
|
1
10月 24
|
1250 |