Skip to content

Commit 7140714

Browse files
committed
Merge PR #121 into 16.0
Signed-off-by pedrobaeza
2 parents 2c547e5 + 6e4ebc4 commit 7140714

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

github_connector_odoo/models/github_repository_branch.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import os
88

99
from 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

Comments
 (0)