From d63f700c969d4113cb84a4ece868ad43526e4b27 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Fri, 27 Jun 2025 08:34:06 +0200 Subject: [PATCH] Update from template --- .copier-answers.yml | 4 ++-- .pre-commit-config.yaml | 16 ++++++---------- .../pyproject.toml | 3 +++ account_credit_control_deferred/pyproject.toml | 3 +++ account_journal_inter_company/pyproject.toml | 3 +++ cb_agreement_legal/pyproject.toml | 3 +++ cb_helpdesk/pyproject.toml | 3 +++ cb_knowledge/pyproject.toml | 3 +++ cb_mgmtsystem_issue/pyproject.toml | 3 +++ cb_mgmtsystem_issue_product/pyproject.toml | 3 +++ cb_mgmtsystem_issue_purchase/pyproject.toml | 3 +++ cb_purchase_views/pyproject.toml | 3 +++ cb_sale_report_invoice/pyproject.toml | 3 +++ cb_stock_location_warning/pyproject.toml | 3 +++ document_quick_access_label/pyproject.toml | 3 +++ document_quick_access_report_qr/pyproject.toml | 3 +++ edi_account_mail/pyproject.toml | 3 +++ edi_account_mail_encrypted/pyproject.toml | 3 +++ edi_account_storage/pyproject.toml | 3 +++ mgmtsystem_indicators_report/pyproject.toml | 3 +++ pos_close_approval/pyproject.toml | 3 +++ pos_manual_order/pyproject.toml | 3 +++ pos_safe_box/pyproject.toml | 3 +++ product_comercial/pyproject.toml | 3 +++ product_nomenclature/pyproject.toml | 3 +++ purchase_third_party/pyproject.toml | 3 +++ queue_nsca_client/pyproject.toml | 3 +++ remote_report_to_printer_label/pyproject.toml | 3 +++ requirements.txt | 2 +- safe_box/pyproject.toml | 3 +++ sale_commission_cancel/pyproject.toml | 3 +++ sale_third_party/pyproject.toml | 3 +++ sequence_parser/pyproject.toml | 3 +++ sequence_safe/pyproject.toml | 3 +++ stock_picking_report/pyproject.toml | 3 +++ stock_request_template/pyproject.toml | 3 +++ test-requirements.txt | 2 +- web_history_back/pyproject.toml | 3 +++ web_register_login/pyproject.toml | 3 +++ web_single_app_logo/pyproject.toml | 3 +++ 40 files changed, 118 insertions(+), 14 deletions(-) create mode 100644 account_asset_management_depreciation_percentage/pyproject.toml create mode 100644 account_credit_control_deferred/pyproject.toml create mode 100644 account_journal_inter_company/pyproject.toml create mode 100644 cb_agreement_legal/pyproject.toml create mode 100644 cb_helpdesk/pyproject.toml create mode 100644 cb_knowledge/pyproject.toml create mode 100644 cb_mgmtsystem_issue/pyproject.toml create mode 100644 cb_mgmtsystem_issue_product/pyproject.toml create mode 100644 cb_mgmtsystem_issue_purchase/pyproject.toml create mode 100644 cb_purchase_views/pyproject.toml create mode 100644 cb_sale_report_invoice/pyproject.toml create mode 100644 cb_stock_location_warning/pyproject.toml create mode 100644 document_quick_access_label/pyproject.toml create mode 100644 document_quick_access_report_qr/pyproject.toml create mode 100644 edi_account_mail/pyproject.toml create mode 100644 edi_account_mail_encrypted/pyproject.toml create mode 100644 edi_account_storage/pyproject.toml create mode 100644 mgmtsystem_indicators_report/pyproject.toml create mode 100644 pos_close_approval/pyproject.toml create mode 100644 pos_manual_order/pyproject.toml create mode 100644 pos_safe_box/pyproject.toml create mode 100644 product_comercial/pyproject.toml create mode 100644 product_nomenclature/pyproject.toml create mode 100644 purchase_third_party/pyproject.toml create mode 100644 queue_nsca_client/pyproject.toml create mode 100644 remote_report_to_printer_label/pyproject.toml create mode 100644 safe_box/pyproject.toml create mode 100644 sale_commission_cancel/pyproject.toml create mode 100644 sale_third_party/pyproject.toml create mode 100644 sequence_parser/pyproject.toml create mode 100644 sequence_safe/pyproject.toml create mode 100644 stock_picking_report/pyproject.toml create mode 100644 stock_request_template/pyproject.toml create mode 100644 web_history_back/pyproject.toml create mode 100644 web_register_login/pyproject.toml create mode 100644 web_single_app_logo/pyproject.toml diff --git a/.copier-answers.yml b/.copier-answers.yml index a34e7f2a8..dd1c6dc2b 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Do NOT update manually; changes here will be overwritten by Copier -_commit: v1.29 +_commit: v1.32 _src_path: https://github.com/OCA/oca-addons-repo-template.git ci: GitHub convert_readme_fragments_to_markdown: false @@ -21,6 +21,6 @@ repo_description: '' repo_name: '' repo_slug: cb-addons repo_website: https://github.com/tegin/cb-addons -use_pyproject_toml: false +use_pyproject_toml: true use_ruff: false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f97cacaf..b13437f7d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,6 +38,10 @@ repos: entry: found a en.po file language: fail files: '[a-zA-Z0-9_]*/i18n/en\.po$' + - repo: https://github.com/sbidoul/whool + rev: v1.2 + hooks: + - id: whool-init - repo: https://github.com/oca/maintainer-tools rev: d5fab7ee87fceee858a3d01048c78a548974d935 hooks: @@ -53,6 +57,7 @@ repos: - --repo-name=cb-addons - --if-source-changed - --keep-source-digest + - id: oca-gen-external-dependencies - repo: https://github.com/OCA/odoo-pre-commit-hooks rev: v0.0.25 hooks: @@ -104,6 +109,7 @@ repos: additional_dependencies: - "eslint@8.24.0" - "eslint-plugin-jsdoc@" + - "globals@" - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 hooks: @@ -139,16 +145,6 @@ repos: args: - --settings=. exclude: /__init__\.py$ - - repo: https://github.com/acsone/setuptools-odoo - 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: 5.0.0 hooks: diff --git a/account_asset_management_depreciation_percentage/pyproject.toml b/account_asset_management_depreciation_percentage/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/account_asset_management_depreciation_percentage/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_credit_control_deferred/pyproject.toml b/account_credit_control_deferred/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/account_credit_control_deferred/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_journal_inter_company/pyproject.toml b/account_journal_inter_company/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/account_journal_inter_company/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/cb_agreement_legal/pyproject.toml b/cb_agreement_legal/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/cb_agreement_legal/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/cb_helpdesk/pyproject.toml b/cb_helpdesk/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/cb_helpdesk/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/cb_knowledge/pyproject.toml b/cb_knowledge/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/cb_knowledge/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/cb_mgmtsystem_issue/pyproject.toml b/cb_mgmtsystem_issue/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/cb_mgmtsystem_issue/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/cb_mgmtsystem_issue_product/pyproject.toml b/cb_mgmtsystem_issue_product/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/cb_mgmtsystem_issue_product/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/cb_mgmtsystem_issue_purchase/pyproject.toml b/cb_mgmtsystem_issue_purchase/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/cb_mgmtsystem_issue_purchase/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/cb_purchase_views/pyproject.toml b/cb_purchase_views/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/cb_purchase_views/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/cb_sale_report_invoice/pyproject.toml b/cb_sale_report_invoice/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/cb_sale_report_invoice/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/cb_stock_location_warning/pyproject.toml b/cb_stock_location_warning/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/cb_stock_location_warning/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/document_quick_access_label/pyproject.toml b/document_quick_access_label/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/document_quick_access_label/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/document_quick_access_report_qr/pyproject.toml b/document_quick_access_report_qr/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/document_quick_access_report_qr/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/edi_account_mail/pyproject.toml b/edi_account_mail/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/edi_account_mail/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/edi_account_mail_encrypted/pyproject.toml b/edi_account_mail_encrypted/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/edi_account_mail_encrypted/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/edi_account_storage/pyproject.toml b/edi_account_storage/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/edi_account_storage/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/mgmtsystem_indicators_report/pyproject.toml b/mgmtsystem_indicators_report/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/mgmtsystem_indicators_report/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/pos_close_approval/pyproject.toml b/pos_close_approval/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/pos_close_approval/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/pos_manual_order/pyproject.toml b/pos_manual_order/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/pos_manual_order/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/pos_safe_box/pyproject.toml b/pos_safe_box/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/pos_safe_box/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/product_comercial/pyproject.toml b/product_comercial/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/product_comercial/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/product_nomenclature/pyproject.toml b/product_nomenclature/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/product_nomenclature/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/purchase_third_party/pyproject.toml b/purchase_third_party/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/purchase_third_party/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/queue_nsca_client/pyproject.toml b/queue_nsca_client/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/queue_nsca_client/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/remote_report_to_printer_label/pyproject.toml b/remote_report_to_printer_label/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/remote_report_to_printer_label/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/requirements.txt b/requirements.txt index 032d0bd54..dc8c00fd9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ # generated from manifests external_dependencies -openpyxl PyPDF2 +openpyxl diff --git a/safe_box/pyproject.toml b/safe_box/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/safe_box/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/sale_commission_cancel/pyproject.toml b/sale_commission_cancel/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/sale_commission_cancel/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/sale_third_party/pyproject.toml b/sale_third_party/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/sale_third_party/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/sequence_parser/pyproject.toml b/sequence_parser/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/sequence_parser/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/sequence_safe/pyproject.toml b/sequence_safe/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/sequence_safe/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/stock_picking_report/pyproject.toml b/stock_picking_report/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/stock_picking_report/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/stock_request_template/pyproject.toml b/stock_request_template/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/stock_request_template/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/test-requirements.txt b/test-requirements.txt index e3dc39287..ee6bb7bfb 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,2 +1,2 @@ odoo_test_helper -odoo-addon-archive-management@git+https://github.com/tegin/archive-management.git@16.0#subdirectory=setup/archive_management +odoo-addon-archive_management@git+https://github.com/tegin/archive-management.git@16.0#subdirectory=archive_management diff --git a/web_history_back/pyproject.toml b/web_history_back/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/web_history_back/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_register_login/pyproject.toml b/web_register_login/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/web_register_login/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_single_app_logo/pyproject.toml b/web_single_app_logo/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/web_single_app_logo/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi"