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-4556
  • Loading branch information
docker-odoo committed Dec 5, 2023
2 parents 35f20f9 + 14ede38 commit d89f9b4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions odoo/modules/module.py
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 d89f9b4

Please sign in to comment.