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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
3
回复
3686
查看
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