Skip to content

Commit

Permalink
[UPD] adapt click-odoo-update for odoo 16
Browse files Browse the repository at this point in the history
  • Loading branch information
baimont committed Sep 20, 2022
1 parent 7605322 commit 4f85efe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion click_odoo_contrib/update.py
Expand Up @@ -175,7 +175,14 @@ def _get_checksum_dir(cr, module_name):

def _is_installable(module_name):
try:
manifest = odoo.modules.load_information_from_description_file(module_name)
if odoo.tools.parse_version(odoo.release.version) <= odoo.tools.parse_version("15"):
manifest = odoo.modules.load_information_from_description_file(
module_name
)
else:
manifest = odoo.modules.get_manifest(
module_name
)
return manifest["installable"]
except Exception:
# load_information_from_description_file populates default value
Expand Down

0 comments on commit 4f85efe

Please sign in to comment.