Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.36
_commit: v1.39
_src_path: gh:oca/oca-addons-repo-template
ci: GitHub
convert_readme_fragments_to_markdown: false
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
with:
python-version: "3.11"
cache: 'pip'
cache-dependency-path: '.pre-commit-config.yaml'
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ repos:
- --settings=.
exclude: /__init__\.py$
- repo: https://github.com/acsone/setuptools-odoo
rev: 3.1.8
rev: 3.3.2
hooks:
- id: setuptools-odoo-make-default
- id: setuptools-odoo-get-requirements
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

[![Support the OCA](https://odoo-community.org/readme-banner-image)](https://odoo-community.org/get-involved?utm_source=repo-readme)

# module-composition-analysis
Expand Down
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