From c68b893df78f5aa10aacbacabf9e320b66f3d1a5 Mon Sep 17 00:00:00 2001 From: Miquel Alzanillas Date: Wed, 22 Nov 2023 11:06:05 +0100 Subject: [PATCH] [IMP] account_payment_mode: pre-commit auto fixes --- account_payment_mode/README.rst | 32 ++++++++++--------- .../models/account_payment_method.py | 4 +-- account_payment_mode/pyproject.toml | 3 ++ account_payment_mode/readme/CONFIGURE.md | 2 ++ account_payment_mode/readme/CONFIGURE.rst | 2 -- account_payment_mode/readme/CONTRIBUTORS.md | 4 +++ account_payment_mode/readme/CONTRIBUTORS.rst | 4 --- account_payment_mode/readme/DESCRIPTION.md | 3 ++ account_payment_mode/readme/DESCRIPTION.rst | 2 -- .../readme/{USAGE.rst => USAGE.md} | 3 +- .../static/description/index.html | 14 ++++---- 11 files changed, 40 insertions(+), 33 deletions(-) create mode 100644 account_payment_mode/pyproject.toml create mode 100644 account_payment_mode/readme/CONFIGURE.md delete mode 100644 account_payment_mode/readme/CONFIGURE.rst create mode 100644 account_payment_mode/readme/CONTRIBUTORS.md delete mode 100644 account_payment_mode/readme/CONTRIBUTORS.rst create mode 100644 account_payment_mode/readme/DESCRIPTION.md delete mode 100644 account_payment_mode/readme/DESCRIPTION.rst rename account_payment_mode/readme/{USAGE.rst => USAGE.md} (82%) diff --git a/account_payment_mode/README.rst b/account_payment_mode/README.rst index 97ff46abd..1145c69fc 100644 --- a/account_payment_mode/README.rst +++ b/account_payment_mode/README.rst @@ -17,19 +17,20 @@ Account Payment Mode :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github - :target: https://github.com/OCA/bank-payment/tree/16.0/account_payment_mode + :target: https://github.com/OCA/bank-payment/tree/17.0/account_payment_mode :alt: OCA/bank-payment .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_mode + :target: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_mode :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/bank-payment&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/bank-payment&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module adds a new object *account.payment.mode*, that is used to better -classify and route incoming/outgoing payment orders with the banks. +This module adds a new object *account.payment.mode*, that is used to +better classify and route incoming/outgoing payment orders with the +banks. **Table of contents** @@ -45,7 +46,8 @@ To configure this module, you need to go to the menu Usage ===== -This module doesn't add any feature, but it is used by several other modules. +This module doesn't add any feature, but it is used by several other +modules. Bug Tracker =========== @@ -53,7 +55,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -61,20 +63,20 @@ Credits ======= Authors -~~~~~~~ +------- * Akretion Contributors -~~~~~~~~~~~~ +------------ -* Alexis de Lattre -* Eric Lembregts -* Andrea Stirpe -* Marçal Isern +- Alexis de Lattre +- Eric Lembregts +- Andrea Stirpe +- Marçal Isern Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -86,6 +88,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/bank-payment `_ project on GitHub. +This module is part of the `OCA/bank-payment `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_payment_mode/models/account_payment_method.py b/account_payment_mode/models/account_payment_method.py index 4c5a74531..b09a453df 100644 --- a/account_payment_mode/models/account_payment_method.py +++ b/account_payment_mode/models/account_payment_method.py @@ -32,9 +32,7 @@ class AccountPaymentMethod(models.Model): result.append( ( method.id, - "[{}] {} ({})".format( - method.code, method.name, method.payment_type - ), + f"[{method.code}] {method.name} ({method.payment_type})", ) ) return result diff --git a/account_payment_mode/pyproject.toml b/account_payment_mode/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/account_payment_mode/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_payment_mode/readme/CONFIGURE.md b/account_payment_mode/readme/CONFIGURE.md new file mode 100644 index 000000000..5e00ea070 --- /dev/null +++ b/account_payment_mode/readme/CONFIGURE.md @@ -0,0 +1,2 @@ +To configure this module, you need to go to the menu +*Invoicing/Accounting \> Configuration \> Management \> Payment Modes*. diff --git a/account_payment_mode/readme/CONFIGURE.rst b/account_payment_mode/readme/CONFIGURE.rst deleted file mode 100644 index 70f683833..000000000 --- a/account_payment_mode/readme/CONFIGURE.rst +++ /dev/null @@ -1,2 +0,0 @@ -To configure this module, you need to go to the menu -*Invoicing/Accounting > Configuration > Management > Payment Modes*. diff --git a/account_payment_mode/readme/CONTRIBUTORS.md b/account_payment_mode/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..45d084eae --- /dev/null +++ b/account_payment_mode/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- Alexis de Lattre \<\> +- Eric Lembregts \<\> +- Andrea Stirpe \<\> +- Marçal Isern \<\> diff --git a/account_payment_mode/readme/CONTRIBUTORS.rst b/account_payment_mode/readme/CONTRIBUTORS.rst deleted file mode 100644 index a5f50f58b..000000000 --- a/account_payment_mode/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,4 +0,0 @@ -* Alexis de Lattre -* Eric Lembregts -* Andrea Stirpe -* Marçal Isern diff --git a/account_payment_mode/readme/DESCRIPTION.md b/account_payment_mode/readme/DESCRIPTION.md new file mode 100644 index 000000000..a5d74b230 --- /dev/null +++ b/account_payment_mode/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This module adds a new object *account.payment.mode*, that is used to +better classify and route incoming/outgoing payment orders with the +banks. diff --git a/account_payment_mode/readme/DESCRIPTION.rst b/account_payment_mode/readme/DESCRIPTION.rst deleted file mode 100644 index 5206d980b..000000000 --- a/account_payment_mode/readme/DESCRIPTION.rst +++ /dev/null @@ -1,2 +0,0 @@ -This module adds a new object *account.payment.mode*, that is used to better -classify and route incoming/outgoing payment orders with the banks. diff --git a/account_payment_mode/readme/USAGE.rst b/account_payment_mode/readme/USAGE.md similarity index 82% rename from account_payment_mode/readme/USAGE.rst rename to account_payment_mode/readme/USAGE.md index de3e7fa6b..2e014d1c5 100644 --- a/account_payment_mode/readme/USAGE.rst +++ b/account_payment_mode/readme/USAGE.md @@ -1 +1,2 @@ -This module doesn't add any feature, but it is used by several other modules. +This module doesn't add any feature, but it is used by several other +modules. diff --git a/account_payment_mode/static/description/index.html b/account_payment_mode/static/description/index.html index 9c6aa0c55..32504643f 100644 --- a/account_payment_mode/static/description/index.html +++ b/account_payment_mode/static/description/index.html @@ -369,9 +369,10 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:06c4606949d3a75e51dcc0d0866ee9908f5c1d89c82d17ec823b3df9145b8f4c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Mature License: AGPL-3 OCA/bank-payment Translate me on Weblate Try me on Runboat

-

This module adds a new object account.payment.mode, that is used to better -classify and route incoming/outgoing payment orders with the banks.

+

Mature License: AGPL-3 OCA/bank-payment Translate me on Weblate Try me on Runboat

+

This module adds a new object account.payment.mode, that is used to +better classify and route incoming/outgoing payment orders with the +banks.

Table of contents

    @@ -393,14 +394,15 @@ classify and route incoming/outgoing payment orders with the banks.

Usage

-

This module doesn’t add any feature, but it is used by several other modules.

+

This module doesn’t add any feature, but it is used by several other +modules.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -427,7 +429,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/bank-payment project on GitHub.

+

This module is part of the OCA/bank-payment project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.