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
13 changes: 12 additions & 1 deletion github_connector_odoo/models/github_repository_branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,22 @@
odoo.addons.__path__.remove(path)
# Create module version, if the module is installable
# in the serie
if module_info.get("installable", False):
if module_info.get("installable", True):
module_info["technical_name"] = module_name
module_version_obj.create_or_update_from_manifest(
module_info, self, full_module_path
)
else:
# Otherwise remove module version if exist
module_version = self.search(

Check warning on line 243 in github_connector_odoo/models/github_repository_branch.py

View check run for this annotation

Codecov / codecov/patch

github_connector_odoo/models/github_repository_branch.py#L243

Added line #L243 was not covered by tests
[
("technical_name", "=", module_name),
("repository_branch_id", "=", self.id),
]
)
if module_version:
module_version._process_clean_module_version()

Check warning on line 250 in github_connector_odoo/models/github_repository_branch.py

View check run for this annotation

Codecov / codecov/patch

github_connector_odoo/models/github_repository_branch.py#L250

Added line #L250 was not covered by tests

except Exception as e:
_logger.error(
"Cannot process module with name %s, error " "is: %s", module_name, e
Expand Down