Skip to content

Commit

Permalink
Merge commit 'refs/pull/141129/head' of https://github.com/odoo/odoo
Browse files Browse the repository at this point in the history
…into 17.0-5466
  • Loading branch information
docker-odoo committed Feb 3, 2024
2 parents b1686f0 + ff2aaf0 commit 68ca3d0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions odoo/modules/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,11 @@ def load_manifest(module, mod_path=None):
elif manifest['auto_install']:
manifest['auto_install'] = set(manifest['depends'])

try:
manifest['version'] = adapt_version(manifest['version'])
except ValueError as e:
raise ValueError(f"Module {module}: invalid manifest") from e
if manifest.get('installable', True):
try:
manifest['version'] = adapt_version(manifest['version'])
except ValueError as e:
raise ValueError(f"Module {module}: invalid manifest") from e
manifest['addons_path'] = normpath(opj(mod_path, os.pardir))

return manifest
Expand Down

0 comments on commit 68ca3d0

Please sign in to comment.