Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions github_connector_odoo/models/github_repository_branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os

from odoo import api, fields, models
from odoo.modules.module import load_information_from_description_file
from odoo.modules.module import get_manifest

# Hard define this value to make this module working with or without
# the patch (that backports V10 manifests analysis code.
Expand Down Expand Up @@ -209,9 +209,7 @@ def _operation_analysis_rule_by_module_version(
manifest_keys_find = module_version.manifest_key_ids.filtered(
lambda x: x.id in rule.manifest_key_ids.ids
)
module_info = load_information_from_description_file(
module_version.technical_name, full_path
)
module_info = get_manifest(module_version.technical_name, full_path)
spec = rule._set_spec(rule.paths.splitlines())
for manifest_key_find in manifest_keys_find:
if manifest_key_find.name in module_info:
Expand All @@ -229,9 +227,7 @@ def _analyze_module_name(self, path, module_name):
module_version_obj = self.env["odoo.module.version"]
try:
full_module_path = os.path.join(path, module_name)
module_info = load_information_from_description_file(
module_name, full_module_path
)
module_info = get_manifest(module_name, full_module_path)
# Create module version, if the module is installable
# in the serie
if module_info.get("installable", False):
Expand Down