diff --git a/.copier-answers.yml b/.copier-answers.yml index 476efe8..6a4772d 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,23 +1,14 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.11.0 -_src_path: gh:oca/oca-addons-repo-template -ci: GitHub -dependency_installation_mode: PIP -generate_requirements_txt: false -github_check_license: false -github_enable_codecov: false -github_enable_makepot: false -github_enable_stale_action: false -github_enforce_dev_status_compatibility: false -include_wkhtmltopdf: false +_commit: v1.2 +_src_path: https://picasso.noviat.com/ci/addons-repo-template.git +ci_exclude_modules: account_asset +ci_image: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest +customer_slug: Noviat_Generic +odoo_enterprise: 1 odoo_version: 16.0 org_name: Noviat org_slug: Noviat -rebel_module_groups: [] -repo_description: 'EBICS support for Odoo' -repo_name: account_ebics -repo_slug: account_ebics -repo_website: https://www.noviat.com -travis_apt_packages: [] -travis_apt_sources: [] +repo_name: Modules dedicated to manage the EBICS protocol +repo_slug: accounting-ebics +repo_website: https://www.noviat.com/ diff --git a/.gitignore b/.gitignore index 9c283fd..4b87926 100644 --- a/.gitignore +++ b/.gitignore @@ -69,6 +69,3 @@ docs/_build/ # Backup files *~ *.swp - -# OCA rules -!static/lib/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9839796..9d59cd2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,16 +1,13 @@ -# Only run for (updates to) merge requests and the default branch. -workflow: - rules: - - if: $CI_MERGE_REQUEST_IID - - if: $CI_COMMIT_BRANCH == "16.0" - include: - - project: "ci/gitlab-ci-templates" - ref: master + - project: "ci/gitlabci-odoo" + ref: main file: "/odoo-tests.template.yml" variables: ODOO_CI_IMAGE: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest + VERSION: "16.0" + ODOO_BRANCH: "16.0" + ENTERPRISE: "1" ODOO_PRECOMMIT: "1" - ODOO_LINT: "0" - ODOO_TEST: "0" + ODOO_TEST: "1" + EXCLUDE_MODULES: "account_asset" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 233cf6e..e764a7d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,6 @@ exclude: | (?x) # NOT INSTALLABLE ADDONS - ^account_ebics_payment_order/| # END NOT INSTALLABLE ADDONS # Files and folders generated by bots, to avoid loops ^setup/|/static/description/index\.html$| @@ -14,7 +13,7 @@ exclude: | # Repos using Sphinx to generate docs don't need prettying ^docs/_templates/.*\.html$| # You don't usually want a bot to modify your legal texts - (LICENSE.*|COPYING.*)| + (LICENSE.*|COPYING.*) # Exclude the TODO folders /TODO/ default_language_version: @@ -30,15 +29,20 @@ repos: entry: found forbidden files; remove them language: fail files: "\\.rej$" + - id: en-po-files + name: en.po files cannot exist + entry: found a en.po file + language: fail + files: '[a-zA-Z0-9_]*/i18n/en\.po$' - repo: https://github.com/oca/maintainer-tools - rev: a17a3431379fc2affed9b0b99cdfbe232db6db4c + rev: 4cd2b852214dead80822e93e6749b16f2785b2fe hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons - id: oca-fix-manifest-website - args: ["https://www.noviat.com"] + args: ["https://www.noviat.com/"] - repo: https://github.com/myint/autoflake - rev: v1.7.7 + rev: v1.6.1 hooks: - id: autoflake args: @@ -49,23 +53,22 @@ repos: - --remove-duplicate-keys - --remove-unused-variables - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 22.8.0 hooks: - id: black - additional_dependencies: ["click==8.0.4"] - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.4 + rev: v2.7.1 hooks: - id: prettier name: prettier (with plugin-xml) additional_dependencies: - - "prettier@2.4.1" - - "@prettier/plugin-xml@1.1.0" + - "prettier@2.7.1" + - "@prettier/plugin-xml@2.2.0" args: - --plugin=@prettier/plugin-xml files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$ - repo: https://github.com/pre-commit/mirrors-eslint - rev: v8.26.0 + rev: v8.24.0 hooks: - id: eslint verbose: true @@ -95,12 +98,12 @@ repos: - id: mixed-line-ending args: ["--fix=lf"] - repo: https://github.com/asottile/pyupgrade - rev: v3.2.0 + rev: v2.38.2 hooks: - id: pyupgrade args: ["--keep-percent-format"] - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort name: isort except __init__.py @@ -111,12 +114,18 @@ repos: rev: 3.1.8 hooks: - id: setuptools-odoo-make-default + - id: setuptools-odoo-get-requirements + args: + - --output + - requirements.txt + - --header + - "# generated from manifests external_dependencies" - repo: https://github.com/PyCQA/flake8 rev: 3.9.2 hooks: - id: flake8 name: flake8 - additional_dependencies: ["flake8-bugbear==20.1.4"] + additional_dependencies: ["flake8-bugbear==21.9.2"] - repo: https://github.com/OCA/pylint-odoo rev: 7.0.2 hooks: diff --git a/.pylintrc b/.pylintrc index 6e9f8a2..23f1538 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,5 +1,5 @@ + [MASTER] -# Add files or directories matching the regex patterns to the blacklist. ignore-patterns=["^.*/TODO/.*$"] load-plugins=pylint_odoo score=n @@ -48,9 +48,8 @@ enable=anomalous-backslash-in-string, method-inverse, method-required-super, method-search, - missing-import-error, - missing-manifest-dependency, openerp-exception-warning, + pointless-statement, pointless-string-statement, print-used, redundant-keyword-arg, @@ -82,7 +81,7 @@ enable=anomalous-backslash-in-string, invalid-commit, manifest-maintainers-list, missing-newline-extrafiles, - missing-readme, + # missing-readme, missing-return, odoo-addons-relative-import, old-api7-method-defined, @@ -109,7 +108,7 @@ enable=anomalous-backslash-in-string, invalid-commit, missing-manifest-dependency, missing-newline-extrafiles, - # missing-readme, + missing-readme, no-utf8-coding-comment, odoo-addons-relative-import, old-api7-method-defined, diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index 880a88f..ff303a4 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -1,5 +1,4 @@ [MASTER] -# Add files or directories matching the regex patterns to the blacklist. ignore-patterns=["^.*/TODO/.*$"] load-plugins=pylint_odoo score=n @@ -74,7 +73,7 @@ enable=anomalous-backslash-in-string, invalid-commit, manifest-maintainers-list, missing-newline-extrafiles, - missing-readme, + # missing-readme, missing-return, odoo-addons-relative-import, old-api7-method-defined, diff --git a/README.md b/README.md index c9d6014..cdc75cc 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,20 @@ -EBICS support for Odoo -====================== +[![pipeline status](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/badges/16.0/pipeline.svg)](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/-/commits/16.0) +[![coverage report](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/badges/16.0/coverage.svg)](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/-/commits/16.0) + + +# Modules dedicated to manage the EBICS protocol + + + + + +[//]: # (addons) + +This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools. + +[//]: # (end addons) + + + +---- diff --git a/account_ebics/__manifest__.py b/account_ebics/__manifest__.py index 0e15ad3..5e194dd 100644 --- a/account_ebics/__manifest__.py +++ b/account_ebics/__manifest__.py @@ -6,7 +6,7 @@ "version": "16.0.1.4.0", "license": "LGPL-3", "author": "Noviat", - "website": "https://www.noviat.com", + "website": "https://www.noviat.com/", "category": "Accounting & Finance", "depends": ["account"], "data": [ diff --git a/account_ebics_batch/__manifest__.py b/account_ebics_batch/__manifest__.py index 273f9c5..1ea0357 100644 --- a/account_ebics_batch/__manifest__.py +++ b/account_ebics_batch/__manifest__.py @@ -6,7 +6,7 @@ "version": "16.0.1.0.0", "license": "AGPL-3", "author": "Noviat", - "website": "https://www.noviat.com", + "website": "https://www.noviat.com/", "category": "Accounting & Finance", "summary": "EBICS Files automated import and processing", "depends": ["account_ebics"], diff --git a/account_ebics_batch_payment/__manifest__.py b/account_ebics_batch_payment/__manifest__.py index b3ef67d..2bd8500 100644 --- a/account_ebics_batch_payment/__manifest__.py +++ b/account_ebics_batch_payment/__manifest__.py @@ -6,7 +6,7 @@ "version": "16.0.1.0.0", "license": "LGPL-3", "author": "Noviat", - "website": "https://www.noviat.com", + "website": "https://www.noviat.com/", "category": "Accounting & Finance", "depends": ["account_ebics", "account_batch_payment"], "data": ["views/account_batch_payment_views.xml"], diff --git a/account_ebics_oca_statement_import/__manifest__.py b/account_ebics_oca_statement_import/__manifest__.py index ea0ed89..dbcc95f 100644 --- a/account_ebics_oca_statement_import/__manifest__.py +++ b/account_ebics_oca_statement_import/__manifest__.py @@ -6,7 +6,7 @@ "summary": "Use OCA Bank Statement Import with account_ebics", "version": "16.0.1.0.0", "author": "Noviat", - "website": "https://www.noviat.com", + "website": "https://www.noviat.com/", "category": "Hidden", "license": "LGPL-3", "depends": [ diff --git a/account_ebics_oe/__manifest__.py b/account_ebics_oe/__manifest__.py index 135c203..dc04b2a 100644 --- a/account_ebics_oe/__manifest__.py +++ b/account_ebics_oe/__manifest__.py @@ -6,7 +6,7 @@ "summary": "Deploy account_ebics module on Odoo Enterprise", "version": "16.0.1.0.0", "author": "Noviat", - "website": "https://www.noviat.com", + "website": "https://www.noviat.com/", "category": "Hidden", "license": "LGPL-3", "depends": [ diff --git a/account_ebics_payment_order/__manifest__.py b/account_ebics_payment_order/__manifest__.py index 4174e85..c7c14f7 100644 --- a/account_ebics_payment_order/__manifest__.py +++ b/account_ebics_payment_order/__manifest__.py @@ -6,7 +6,7 @@ "version": "16.0.1.0.0", "license": "LGPL-3", "author": "Noviat", - "website": "https://www.noviat.com", + "website": "https://www.noviat.com/", "category": "Accounting & Finance", "depends": ["account_ebics", "account_payment_order"], "data": [