Skip to content

Commit

Permalink
Merge pull request #18 from sbidoul/fix-addons-path-discovery-old-odo…
Browse files Browse the repository at this point in the history
…o-sbi

Fix addons path discovery with older Odoo versions
  • Loading branch information
sbidoul authored Nov 11, 2021
2 parents abad436 + a61a9ac commit 1c06af0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10.0-beta - 3.10", "pypy3"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"]
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
Expand Down
1 change: 1 addition & 0 deletions news/18.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix core Odoo addons path discovery for Odoo < 13.0.
7 changes: 6 additions & 1 deletion src/manifestoo/addons_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@
odoo.modules.initialize_sys_path()
if odoo.release.version_info >= (13, ):
path = odoo.addons.__path__
else:
path = odoo.modules.module.ad_paths
with open(sys.argv[1], "wb") as f:
f.write(repr(odoo.addons.__path__).encode("utf-8"))
f.write(repr(path).encode("utf-8"))
"""


Expand Down

0 comments on commit 1c06af0

Please sign in to comment.