コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3248 ビュー

I need to create automated action that will send me an email when the total number of hours spent on tasks will exceed the number of hours planned.

But i don't know how to compare those two variables into a domain, also the total number of hours spent can be used as a trigger but not for the domain.

Do i need to use python or is there a way around it ?

アバター
破棄
最善の回答

Hi,

If you want to use compare two fields in automated action so you need to use python code and send an email from python code, or you can add another field which store the value of the comparation and then use it in the automated action domain.

アバター
破棄
著作者

How can i add another field calculating that ?

Are you using Odoo Enterprise with Studio app or using Odoo Community?

著作者

Odoo enterprise

You can create Boolean computed field in task and set the field store as True (to be able to use in domain) and use depends on fields (total number of hours spent, number of hours planned) and then in compute python code set your python code to compare the two hours and set the Boolean field to true or false.

Follow the below article for how to create computed field using studio
https://odootricks.tips/about/building-blocks/computed-fields/

著作者

It's working ! Thank you so much, you're a life saver

関連投稿 返信 ビュー 活動
1
10月 23
2905
0
2月 25
18
1
10月 23
2675
0
3月 23
1645
1
3月 23
9194