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
8 changes: 0 additions & 8 deletions odoo_repository/utils/scanner.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from odoo.tools import config

from ..lib.scanner import RepositoryScanner


Expand Down Expand Up @@ -75,16 +73,10 @@ def _push_scanned_data(self, repo_branch_id, module, data):
res = self.env["odoo.module.branch"].push_scanned_data(
repo_branch_id, module, data
)
# Commit after each module
if not config["test_enable"]:
self.env.cr.commit() # pylint: disable=invalid-commit
return res

def _update_last_scanned_commit(self, repo_branch_id, last_fetched_commit):
repo_branch_model = self.env["odoo.repository.branch"]
repo_branch = repo_branch_model.browse(repo_branch_id)
repo_branch.last_scanned_commit = last_fetched_commit
# Commit after each repository/branch
if not config["test_enable"]:
self.env.cr.commit() # pylint: disable=invalid-commit
return True
Loading