Skip to Content
Menu
This question has been flagged
1 Reply
2340 Views

  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.

Avatar
Discard
Best Answer

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


Avatar
Discard