I am newbie in odoo 8 , I add a date field entry and exit date and how to calculate the date of entry and exit dates
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
3
Replies
3333
Views
Mr.achuthan I am still confused with answer , Mr.achuthan could give a few examples of the answers above
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