From 0a853cb3bb0271f8b1ee4331526ab9f9f5189c55 Mon Sep 17 00:00:00 2001 From: oca-git-bot Date: Fri, 27 Oct 2023 22:41:59 +0200 Subject: [PATCH 1/7] [IMP] update dotfiles --- .copier-answers.yml | 6 ++---- .eslintrc.yml | 1 + .github/workflows/pre-commit.yml | 16 ++++++++++++++++ .github/workflows/test.yml | 6 +++--- .pre-commit-config.yaml | 18 ++++++++++++++++-- .pylintrc | 12 ++++++------ .pylintrc-mandatory | 12 ++++++------ 7 files changed, 50 insertions(+), 21 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index 9da5f7f9226..64a2142a825 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,8 +1,7 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.14.2 +_commit: v1.17.2 _src_path: gh:oca/oca-addons-repo-template ci: GitHub -dependency_installation_mode: PIP generate_requirements_txt: true github_check_license: true github_ci_extra_env: {} @@ -11,6 +10,7 @@ github_enable_makepot: true github_enable_stale_action: true github_enforce_dev_status_compatibility: true include_wkhtmltopdf: false +odoo_test_flavor: Both odoo_version: 16.0 org_name: Odoo Community Association (OCA) org_slug: OCA @@ -19,6 +19,4 @@ repo_description: Odoo modules to support management systems repo_name: Management System repo_slug: management-system repo_website: https://github.com/OCA/management-system -travis_apt_packages: [] -travis_apt_sources: [] diff --git a/.eslintrc.yml b/.eslintrc.yml index 9429bc688aa..fed88d70d23 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -22,6 +22,7 @@ globals: odoo: readonly openerp: readonly owl: readonly + luxon: readonly # Styling is handled by Prettier, so we only need to enable AST rules; # see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 61ec0d0b465..2ef1c31e0e7 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -13,8 +13,15 @@ jobs: pre-commit: runs-on: ubuntu-22.04 steps: +<<<<<<< before updating - uses: actions/checkout@v2 - uses: actions/setup-python@v4 +======= + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: "3.11" +>>>>>>> after updating - name: Get python version run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV - uses: actions/cache@v1 @@ -25,6 +32,15 @@ jobs: run: pip install pre-commit - name: Run pre-commit run: pre-commit run --all-files --show-diff-on-failure --color=always + env: + # Consider valid a PR that changes README fragments but doesn't + # change the README.rst file itself. It's not really a problem + # because the bot will update it anyway after merge. This way, we + # lower the barrier for functional contributors that want to fix the + # readme fragments, while still letting developers get README + # auto-generated (which also helps functionals when using runboat). + # DOCS https://pre-commit.com/#temporarily-disabling-hooks + SKIP: oca-gen-addon-readme - name: Check that all files generated by pre-commit are in git run: | newfiles="$(git ls-files --others --exclude-from=.gitignore)" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f1b2b9fd6cc..e1af7438faf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest name: Detect unreleased dependencies steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - run: | for reqfile in requirements.txt test-requirements.txt ; do if [ -f ${reqfile} ] ; then @@ -36,10 +36,10 @@ jobs: matrix: include: - container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest - makepot: "true" name: test with Odoo - container: ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest name: test with OCB + makepot: "true" services: postgres: image: postgres:12.0 @@ -50,7 +50,7 @@ jobs: ports: - 5432:5432 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: persist-credentials: false - name: Install addons and dependencies diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7450adba2bd..c5cd2edcaf0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,6 +12,8 @@ exclude: | /static/(src/)?lib/| # Repos using Sphinx to generate docs don't need prettying ^docs/_templates/.*\.html$| + # Don't bother non-technical authors with formatting issues in docs + readme/.*\.(rst|md)$| # You don't usually want a bot to modify your legal texts (LICENSE.*|COPYING.*) default_language_version: @@ -33,12 +35,24 @@ repos: language: fail files: '[a-zA-Z0-9_]*/i18n/en\.po$' - repo: https://github.com/oca/maintainer-tools - rev: 4cd2b852214dead80822e93e6749b16f2785b2fe + rev: 969238e47c07d0c40573acff81d170f63245d738 hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons - id: oca-fix-manifest-website args: ["https://github.com/OCA/management-system"] + - id: oca-gen-addon-readme + args: + - --addons-dir=. + - --branch=16.0 + - --org-name=OCA + - --repo-name=management-system + - --if-source-changed + - repo: https://github.com/OCA/odoo-pre-commit-hooks + rev: v0.0.25 + hooks: + - id: oca-checks-odoo-module + - id: oca-checks-po - repo: https://github.com/myint/autoflake rev: v1.6.1 hooks: @@ -125,7 +139,7 @@ repos: name: flake8 additional_dependencies: ["flake8-bugbear==21.9.2"] - repo: https://github.com/OCA/pylint-odoo - rev: 7.0.2 + rev: v8.0.19 hooks: - id: pylint_odoo name: pylint with optional checks diff --git a/.pylintrc b/.pylintrc index cad9c2f1b2b..554913276b4 100644 --- a/.pylintrc +++ b/.pylintrc @@ -5,12 +5,12 @@ load-plugins=pylint_odoo score=n [ODOOLINT] -readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" -manifest_required_authors=Odoo Community Association (OCA) -manifest_required_keys=license -manifest_deprecated_keys=description,active -license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 -valid_odoo_versions=16.0 +readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" +manifest-required-authors=Odoo Community Association (OCA) +manifest-required-keys=license +manifest-deprecated-keys=description,active +license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +valid-odoo-versions=16.0 [MESSAGES CONTROL] disable=all diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index fa4b81c41e6..7a0cd4efefe 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -4,12 +4,12 @@ load-plugins=pylint_odoo score=n [ODOOLINT] -readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" -manifest_required_authors=Odoo Community Association (OCA) -manifest_required_keys=license -manifest_deprecated_keys=description,active -license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 -valid_odoo_versions=16.0 +readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" +manifest-required-authors=Odoo Community Association (OCA) +manifest-required-keys=license +manifest-deprecated-keys=description,active +license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +valid-odoo-versions=16.0 [MESSAGES CONTROL] disable=all From fff987da816772c7f694f9029f4fe0d94a7c0d8f Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 27 Oct 2023 22:52:46 +0000 Subject: [PATCH 2/7] [UPD] Update mgmtsystem_action.pot --- mgmtsystem_action/i18n/mgmtsystem_action.pot | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mgmtsystem_action/i18n/mgmtsystem_action.pot b/mgmtsystem_action/i18n/mgmtsystem_action.pot index 430749fdacd..1b7c63e7e7c 100644 --- a/mgmtsystem_action/i18n/mgmtsystem_action.pot +++ b/mgmtsystem_action/i18n/mgmtsystem_action.pot @@ -376,7 +376,6 @@ msgstr "" #. module: mgmtsystem_action #: model:ir.model.fields,help:mgmtsystem_action.field_mgmtsystem_action__message_has_error -#: model:ir.model.fields,help:mgmtsystem_action.field_mgmtsystem_action__message_has_sms_error msgid "If checked, some messages have a delivery error." msgstr "" @@ -591,11 +590,6 @@ msgstr "" msgid "Responsible User" msgstr "" -#. module: mgmtsystem_action -#: model:ir.model.fields,field_description:mgmtsystem_action.field_mgmtsystem_action__message_has_sms_error -msgid "SMS Delivery error" -msgstr "" - #. module: mgmtsystem_action #: model:ir.model.fields,field_description:mgmtsystem_action.field_mgmtsystem_action__sequence #: model:ir.model.fields,field_description:mgmtsystem_action.field_mgmtsystem_action_stage__sequence From 8a00ade7995870fb0ab3eaaadc3371fb8e9c4d47 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 27 Oct 2023 22:52:47 +0000 Subject: [PATCH 3/7] [UPD] Update mgmtsystem_audit.pot --- mgmtsystem_audit/i18n/mgmtsystem_audit.pot | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mgmtsystem_audit/i18n/mgmtsystem_audit.pot b/mgmtsystem_audit/i18n/mgmtsystem_audit.pot index 431f6e3194b..dfa0af6db8e 100644 --- a/mgmtsystem_audit/i18n/mgmtsystem_audit.pot +++ b/mgmtsystem_audit/i18n/mgmtsystem_audit.pot @@ -346,7 +346,6 @@ msgstr "" #. module: mgmtsystem_audit #: model:ir.model.fields,help:mgmtsystem_audit.field_mgmtsystem_audit__message_has_error -#: model:ir.model.fields,help:mgmtsystem_audit.field_mgmtsystem_audit__message_has_sms_error msgid "If checked, some messages have a delivery error." msgstr "" @@ -548,11 +547,6 @@ msgstr "" msgid "Responsible User" msgstr "" -#. module: mgmtsystem_audit -#: model:ir.model.fields,field_description:mgmtsystem_audit.field_mgmtsystem_audit__message_has_sms_error -msgid "SMS Delivery error" -msgstr "" - #. module: mgmtsystem_audit #: model:mail.template,name:mgmtsystem_audit.template_email_send_verification_list msgid "Send Verification List" From 27747071481e9f962d1160a5f8bb9aec3cd178d5 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 27 Oct 2023 22:52:48 +0000 Subject: [PATCH 4/7] [UPD] Update mgmtsystem_claim.pot --- mgmtsystem_claim/i18n/mgmtsystem_claim.pot | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mgmtsystem_claim/i18n/mgmtsystem_claim.pot b/mgmtsystem_claim/i18n/mgmtsystem_claim.pot index 448a16092e8..94dda23e8c7 100644 --- a/mgmtsystem_claim/i18n/mgmtsystem_claim.pot +++ b/mgmtsystem_claim/i18n/mgmtsystem_claim.pot @@ -334,7 +334,6 @@ msgstr "" #. module: mgmtsystem_claim #: model:ir.model.fields,help:mgmtsystem_claim.field_mgmtsystem_claim__message_has_error -#: model:ir.model.fields,help:mgmtsystem_claim.field_mgmtsystem_claim__message_has_sms_error msgid "If checked, some messages have a delivery error." msgstr "" @@ -571,11 +570,6 @@ msgstr "" msgid "Root Causes" msgstr "" -#. module: mgmtsystem_claim -#: model:ir.model.fields,field_description:mgmtsystem_claim.field_mgmtsystem_claim__message_has_sms_error -msgid "SMS Delivery error" -msgstr "" - #. module: mgmtsystem_claim #: model:ir.model.fields,field_description:mgmtsystem_claim.field_mgmtsystem_claim__team_id msgid "Sales Team" From 92ac92881a38870e4a344073f843d482098ce3b9 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 27 Oct 2023 22:52:49 +0000 Subject: [PATCH 5/7] [UPD] Update mgmtsystem_hazard.pot --- mgmtsystem_hazard/i18n/mgmtsystem_hazard.pot | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mgmtsystem_hazard/i18n/mgmtsystem_hazard.pot b/mgmtsystem_hazard/i18n/mgmtsystem_hazard.pot index f4eef30ec99..66026f517c4 100644 --- a/mgmtsystem_hazard/i18n/mgmtsystem_hazard.pot +++ b/mgmtsystem_hazard/i18n/mgmtsystem_hazard.pot @@ -255,7 +255,6 @@ msgstr "" #. module: mgmtsystem_hazard #: model:ir.model.fields,help:mgmtsystem_hazard.field_mgmtsystem_hazard__message_has_error -#: model:ir.model.fields,help:mgmtsystem_hazard.field_mgmtsystem_hazard__message_has_sms_error msgid "If checked, some messages have a delivery error." msgstr "" @@ -482,11 +481,6 @@ msgstr "" msgid "Review Date" msgstr "" -#. module: mgmtsystem_hazard -#: model:ir.model.fields,field_description:mgmtsystem_hazard.field_mgmtsystem_hazard__message_has_sms_error -msgid "SMS Delivery error" -msgstr "" - #. module: mgmtsystem_hazard #: model:ir.actions.act_window,name:mgmtsystem_hazard.open_mgmtsystem_hazard_severity_list #: model:ir.ui.menu,name:mgmtsystem_hazard.menu_open_hazard_severity From 4bf0c0cc0238c2ce1a3a17b2ad06865eb63e670f Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 27 Oct 2023 22:52:52 +0000 Subject: [PATCH 6/7] [UPD] Update mgmtsystem_nonconformity.pot --- mgmtsystem_nonconformity/i18n/mgmtsystem_nonconformity.pot | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mgmtsystem_nonconformity/i18n/mgmtsystem_nonconformity.pot b/mgmtsystem_nonconformity/i18n/mgmtsystem_nonconformity.pot index 96647a07eb9..0d58b3ec018 100644 --- a/mgmtsystem_nonconformity/i18n/mgmtsystem_nonconformity.pot +++ b/mgmtsystem_nonconformity/i18n/mgmtsystem_nonconformity.pot @@ -436,7 +436,6 @@ msgstr "" #. module: mgmtsystem_nonconformity #: model:ir.model.fields,help:mgmtsystem_nonconformity.field_mgmtsystem_nonconformity__message_has_error -#: model:ir.model.fields,help:mgmtsystem_nonconformity.field_mgmtsystem_nonconformity__message_has_sms_error msgid "If checked, some messages have a delivery error." msgstr "" @@ -799,11 +798,6 @@ msgstr "" msgid "Responsible User" msgstr "" -#. module: mgmtsystem_nonconformity -#: model:ir.model.fields,field_description:mgmtsystem_nonconformity.field_mgmtsystem_nonconformity__message_has_sms_error -msgid "SMS Delivery error" -msgstr "" - #. module: mgmtsystem_nonconformity #: model:ir.model.fields,field_description:mgmtsystem_nonconformity.field_mgmtsystem_nonconformity_cause__sequence #: model:ir.model.fields,field_description:mgmtsystem_nonconformity.field_mgmtsystem_nonconformity_origin__sequence From 8280d35ff1af74a5921d32120a348575f1e9eb3c Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 27 Oct 2023 22:52:56 +0000 Subject: [PATCH 7/7] [UPD] Update mgmtsystem_review.pot --- mgmtsystem_review/i18n/mgmtsystem_review.pot | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mgmtsystem_review/i18n/mgmtsystem_review.pot b/mgmtsystem_review/i18n/mgmtsystem_review.pot index 3abdc43acf1..9dbdbe3e6f1 100644 --- a/mgmtsystem_review/i18n/mgmtsystem_review.pot +++ b/mgmtsystem_review/i18n/mgmtsystem_review.pot @@ -219,7 +219,6 @@ msgstr "" #. module: mgmtsystem_review #: model:ir.model.fields,help:mgmtsystem_review.field_mgmtsystem_review__message_has_error -#: model:ir.model.fields,help:mgmtsystem_review.field_mgmtsystem_review__message_has_sms_error msgid "If checked, some messages have a delivery error." msgstr "" @@ -419,11 +418,6 @@ msgstr "" msgid "Reviews" msgstr "" -#. module: mgmtsystem_review -#: model:ir.model.fields,field_description:mgmtsystem_review.field_mgmtsystem_review__message_has_sms_error -msgid "SMS Delivery error" -msgstr "" - #. module: mgmtsystem_review #: model:ir.model.fields,field_description:mgmtsystem_review.field_mgmtsystem_review__state msgid "State"