Odoo Help

4

0
3 Відповіді
3
yusuf Індонезія
18.12.14, 02:42

Mr.achuthan I am still confused with answer , Mr.achuthan could give a few examples of the answers above

1
Аватар

Ivan Індонезія

--Ivan--

3450
| 6 3 9
Jakarta, Індонезія
--Ivan--
Ivan Індонезія
18.12.14, 00:11

You use normal python library to do date calculation.  There are many python datetime libraries out there, but I would recommend that you use datetime with some improvement from dateutil if necessary.
 

0
Аватар

Atchuthan - Technical Consultant, Sodexis Inc Індія

--Atchuthan - Technical Consultant, Sodexis Inc--
4412
| 6 6 10
Puducherry, Індія
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc Індія
18.12.14, 00:43

d_frm_obj = datetime.strptime(entry_date, DEFAULT_SERVER_DATETIME_FORMAT)
d_to_obj = datetime.strptime(exit date, DEFAULT_SERVER_DATETIME_FORMAT)
diff = d_to_obj - d_frm_obj
print diff.days  //provides days

https://www.odoo.com/forum/help-1/question/how-to-find-out-number-of-hours-between-two-datetime-object-69367#answer-69386

Задайте запитання
Автор
Продовжити інформувати
1 підписник(и)
Про цю спільноту

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