Odoo Help

0

In customer make a button for project_work_task or time counting

By
wizardz
on 5/17/16, 2:10 PM 523 views

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..

1

Bejaoui Souheil

--Bejaoui Souheil--
1051
| 2 1 5
Rennes, France
--Bejaoui Souheil--

Odoo developer,  functional and technical consultant

souheil_bejaoui@hotmail.fr

Bejaoui Souheil
On 8/11/16, 5:33 AM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 5/17/16, 2:10 PM
Seen: 523 times
Last updated: 8/11/16, 5:33 AM