tinyerp / odooly

Python library and CLI to interact with Odoo and OpenERP.
https://odooly.rtfd.io/
Other
60 stars 33 forks source link

Support for Odoo 15 #16

Open cdvx opened 2 years ago

cdvx commented 2 years ago

Hello,

I just noticed that oodly breaks with odoo 15

We recently decided to upgrade from odoo 12 to 15 and noticed that the client login fails due to step where the major version is computed.

sr/local/Cellar/python@3.8/3.8.12_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/cdvx/Desktop/he-online-order-app-backend/src/djangodoo/__init__.py", line 28, in <module>
    set_odoo_client()
  File "/Users/cdvx/Desktop/he-online-order-app-backend/src/djangodoo/__init__.py", line 11, in set_odoo_client
    settings.odoo = odooly.Client(
  File "/Users/cdvx/Desktop/he-online-order-app-backend/venv/lib/python3.8/site-packages/odooly.py", line 912, in __init__
    self._set_services(server, transport, verbose)
  File "/Users/cdvx/Desktop/he-online-order-app-backend/venv/lib/python3.8/site-packages/odooly.py", line 945, in _set_services
    self.major_version = re.match(r'\d+\.?\d*', ver).group()
AttributeError: 'NoneType' object has no attribute 'group'

I noticed this in erppeek first then here when I found oodly as a recomendation for odoo14 upgrade in one of the erppeek issues.

Can we get support for odoo 15, it would really be helpful since we widely depend on erppeek /oodly in our application.