From 4f85efef52a944d1036ab7974226db2dae67bcc9 Mon Sep 17 00:00:00 2001 From: Benoit Aimont Date: Tue, 20 Sep 2022 11:02:17 +0200 Subject: [PATCH] [UPD] adapt click-odoo-update for odoo 16 --- click_odoo_contrib/update.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/click_odoo_contrib/update.py b/click_odoo_contrib/update.py index be35bde..b70886b 100644 --- a/click_odoo_contrib/update.py +++ b/click_odoo_contrib/update.py @@ -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