跳至內容
選單
此問題已被標幟
1 回覆
3619 瀏覽次數

Hi I need help. I'm developing a model for the res_partner model in customers. How can I make a button that counts the time after click? After a second click it should post the time needed in a new line on a new navigation point for example= in project task, or a open task.

I need a time counting function in python

Thank you..

頭像
捨棄
最佳答案

Hi,

I think that you don't need a time counter. Just save the datetime of the start and stop action then save the difference in your task work.

You can find this logic in the work order model in MRP App.

regards

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
3月 16
5521
1
12月 19
6809
0
3月 16
5009
1
3月 15
4765
0
3月 15
4074