77import os
88
99from odoo import api , fields , models
10- from odoo .modules .module import load_information_from_description_file
10+ from odoo .modules .module import get_manifest
1111
1212# Hard define this value to make this module working with or without
1313# the patch (that backports V10 manifests analysis code.
@@ -209,9 +209,7 @@ def _operation_analysis_rule_by_module_version(
209209 manifest_keys_find = module_version .manifest_key_ids .filtered (
210210 lambda x : x .id in rule .manifest_key_ids .ids
211211 )
212- module_info = load_information_from_description_file (
213- module_version .technical_name , full_path
214- )
212+ module_info = get_manifest (module_version .technical_name , full_path )
215213 spec = rule ._set_spec (rule .paths .splitlines ())
216214 for manifest_key_find in manifest_keys_find :
217215 if manifest_key_find .name in module_info :
@@ -229,9 +227,7 @@ def _analyze_module_name(self, path, module_name):
229227 module_version_obj = self .env ["odoo.module.version" ]
230228 try :
231229 full_module_path = os .path .join (path , module_name )
232- module_info = load_information_from_description_file (
233- module_name , full_module_path
234- )
230+ module_info = get_manifest (module_name , full_module_path )
235231 # Create module version, if the module is installable
236232 # in the serie
237233 if module_info .get ("installable" , False ):
0 commit comments