Hi,
"pycompat, date_utils" these liabraries only supports for odoo 12, How I can use these liabraries in odoo 10 and 11, any replacement for this? Please suggest.
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
1
Reply
2340
Views
pycompat is just wrapper so the same function can work in both python 2 and 3 in the same way. but python 10 doesn't officially support python3 so no need to use pycompat.
date_utils is implemented to support more date-related functionality. it has no dependency on odoo it's pure utility function so can copy(odoo/tools/date_utils.py) and use it in your addons/python package
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up