Odoo Help


3 الإجابات
yusuf إندونيسيا
18‏/12‏/2014 2:42 ص

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

الصورة الرمزية

Ivan إندونيسيا


| 6 3 9
Jakarta, إندونيسيا
Ivan إندونيسيا
18‏/12‏/2014 12: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.

الصورة الرمزية

Atchuthan - Technical Consultant, Sodexis Inc الهند

--Atchuthan - Technical Consultant, Sodexis Inc--
| 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‏/2014 12: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


اطرح سؤالاً
Keep Informed
1 متابعين
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.

Odoo Training Center

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

Test it now