Odoo Help

1

0
3 Answers
0
Jairo Llopis
6/19/15, 6:44 AM

First, import the needed classes:

from datetime import time, timedelta

Then, on your method:

float_field_time = time.min + timedelta(seconds=self.float_field * 60 * 60)
0
Grahame Jordan
7/14/13, 7:58 PM

You can call the util function in the client code float_time_convert()

1 Comment
Jairo Llopis
6/19/15, 3:56 AM

And where's that function?

Ask a Question
Writer
Keep Informed
0 follower(s)
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