diff --git a/.copier-answers.yml b/.copier-answers.yml index 54333b0..eff54c8 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,17 +1,14 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.5.2 -_src_path: gh:oca/oca-addons-repo-template -ci: GitHub -dependency_installation_mode: PIP -generate_requirements_txt: true -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.8-odoo15.0:latest +customer_slug: Noviat_Generic +odoo_enterprise: 1 odoo_version: 15.0 -org_name: Odoo Community Association (OCA) -org_slug: OCA -rebel_module_groups: [] -repo_description: 'TODO: add repo description.' -repo_name: account_ebics -repo_slug: account_ebics -repo_website: https://www.noviat.com -travis_apt_packages: [] -travis_apt_sources: [] +org_name: Noviat +org_slug: Noviat +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 818770f..4b87926 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,6 @@ build/ develop-eggs/ dist/ eggs/ -lib/ lib64/ parts/ sdist/ @@ -70,6 +69,3 @@ docs/_build/ # Backup files *~ *.swp - -# OCA rules -!static/lib/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..eb5725a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,13 @@ +include: + - project: "ci/gitlabci-odoo" + ref: main + file: "/odoo-tests.template.yml" + +variables: + ODOO_CI_IMAGE: ghcr.io/oca/oca-ci/py3.8-odoo15.0:latest + VERSION: "15.0" + ODOO_BRANCH: "15.0" + ENTERPRISE: "1" + ODOO_PRECOMMIT: "1" + ODOO_TEST: "1" + EXCLUDE_MODULES: "account_asset" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4867f13..7e16ebd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,9 +14,11 @@ exclude: | ^docs/_templates/.*\.html$| # You don't usually want a bot to modify your legal texts (LICENSE.*|COPYING.*) + # Exclude the TODO folders + /TODO/ default_language_version: python: python3 - node: "14.18.0" + node: "16.10.0" repos: - repo: local hooks: @@ -27,13 +29,18 @@ 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: dfba427ba03900b69e0a7f2c65890dc48921d36a 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.4 hooks: @@ -96,7 +103,7 @@ repos: - id: pyupgrade args: ["--keep-percent-format"] - repo: https://github.com/PyCQA/isort - rev: 5.9.3 + rev: 5.12.0 hooks: - id: isort name: isort except __init__.py @@ -104,7 +111,7 @@ repos: - --settings=. exclude: /__init__\.py$ - repo: https://github.com/acsone/setuptools-odoo - rev: 3.0.3 + rev: 3.1.8 hooks: - id: setuptools-odoo-make-default - id: setuptools-odoo-get-requirements @@ -119,19 +126,15 @@ repos: - id: flake8 name: flake8 additional_dependencies: ["flake8-bugbear==21.9.2"] - - repo: https://github.com/PyCQA/pylint - rev: v2.11.1 + - repo: https://github.com/OCA/pylint-odoo + rev: 7.0.2 hooks: - - id: pylint + - id: pylint_odoo name: pylint with optional checks args: - --rcfile=.pylintrc - --exit-zero verbose: true - additional_dependencies: &pylint_deps - - pylint-odoo==5.0.5 - - id: pylint - name: pylint with mandatory checks + - id: pylint_odoo args: - --rcfile=.pylintrc-mandatory - additional_dependencies: *pylint_deps diff --git a/.pylintrc b/.pylintrc index 4baf092..edee5dd 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,9 +1,11 @@ + [MASTER] +ignore-patterns=["^.*/TODO/.*$"] load-plugins=pylint_odoo score=n [ODOOLINT] -readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" +# readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" manifest_required_authors=Noviat manifest_required_keys=license manifest_deprecated_keys=description,active @@ -79,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, diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index 1775a4d..d588b52 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -1,9 +1,10 @@ [MASTER] +ignore-patterns=["^.*/TODO/.*$"] load-plugins=pylint_odoo score=n [ODOOLINT] -readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" +# readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" manifest_required_authors=Noviat manifest_required_keys=license manifest_deprecated_keys=description,active @@ -72,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 5c877ce..b43023f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,20 @@ -![Licence](https://img.shields.io/badge/licence-AGPL--3-blue.svg) +[![pipeline status](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/badges/15.0/pipeline.svg)](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/-/commits/15.0) +[![coverage report](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/badges/15.0/coverage.svg)](https://picasso.noviat.com/Noviat/Noviat_Generic/accounting-ebics/-/commits/15.0) -EBICS support for Odoo -====================== + +# 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 d6d18ab..deecbf2 100644 --- a/account_ebics/__manifest__.py +++ b/account_ebics/__manifest__.py @@ -6,7 +6,7 @@ "version": "15.0.1.1.3", "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 050c85a..130ca34 100644 --- a/account_ebics_batch/__manifest__.py +++ b/account_ebics_batch/__manifest__.py @@ -6,7 +6,7 @@ "version": "15.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 6c13227..cdb6e9e 100644 --- a/account_ebics_batch_payment/__manifest__.py +++ b/account_ebics_batch_payment/__manifest__.py @@ -6,7 +6,7 @@ "version": "15.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 a792d7c..67701e5 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": "15.0.1.0.1", "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 fe2f9bf..9a4ca00 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": "15.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_statement_import/__manifest__.py b/account_ebics_oe_statement_import/__manifest__.py index 12c2eda..4030df1 100644 --- a/account_ebics_oe_statement_import/__manifest__.py +++ b/account_ebics_oe_statement_import/__manifest__.py @@ -6,7 +6,7 @@ "summary": "Use Odoo Enterprise Bank Statement Import with account_ebics", "version": "15.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 521ab1c..30c08a7 100644 --- a/account_ebics_payment_order/__manifest__.py +++ b/account_ebics_payment_order/__manifest__.py @@ -6,7 +6,7 @@ "version": "15.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": [ diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..bdbd82c --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1 @@ +cryptography<37