From 32e09ecb897090c5d58ff7a534f38093fda697ea Mon Sep 17 00:00:00 2001 From: David Ramia Date: Sun, 26 Nov 2023 20:11:50 +0100 Subject: [PATCH] [IMP] account_payment_sale: pre-commit auto fixes --- account_payment_sale/README.rst | 43 +- account_payment_sale/pyproject.toml | 3 + account_payment_sale/readme/CONTRIBUTORS.md | 8 + account_payment_sale/readme/CONTRIBUTORS.rst | 8 - account_payment_sale/readme/DESCRIPTION.md | 3 + account_payment_sale/readme/DESCRIPTION.rst | 3 - account_payment_sale/readme/USAGE.md | 4 + account_payment_sale/readme/USAGE.rst | 3 - .../static/description/index.html | 877 +++++++++--------- account_payment_sale/tests/test_sale_order.py | 2 +- 10 files changed, 480 insertions(+), 474 deletions(-) create mode 100644 account_payment_sale/pyproject.toml create mode 100644 account_payment_sale/readme/CONTRIBUTORS.md delete mode 100644 account_payment_sale/readme/CONTRIBUTORS.rst create mode 100644 account_payment_sale/readme/DESCRIPTION.md delete mode 100644 account_payment_sale/readme/DESCRIPTION.rst create mode 100644 account_payment_sale/readme/USAGE.md delete mode 100644 account_payment_sale/readme/USAGE.rst diff --git a/account_payment_sale/README.rst b/account_payment_sale/README.rst index 9dc545f23..796ef8116 100644 --- a/account_payment_sale/README.rst +++ b/account_payment_sale/README.rst @@ -17,19 +17,19 @@ Account Payment Sale :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_sale + :target: https://github.com/OCA/bank-payment/tree/17.0/account_payment_sale :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_sale + :target: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_sale :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 modules adds one field on sale orders: *Payment Mode*. -This field is copied from customer to sale order and then from sale order to +This modules adds one field on sale orders: *Payment Mode*. This field +is copied from customer to sale order and then from sale order to customer invoice. **Table of contents** @@ -40,9 +40,10 @@ customer invoice. Usage ===== -You are able to add a payment mode directly on a partner. -This payment mode is automatically associated to the sale order, then copied to the related invoice. -This default value can be changed sale orders or on draft invoices. +You are able to add a payment mode directly on a partner. This payment +mode is automatically associated to the sale order, then copied to the +related invoice. This default value can be changed sale orders or on +draft invoices. Bug Tracker =========== @@ -50,7 +51,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. @@ -58,25 +59,25 @@ Credits ======= Authors -~~~~~~~ +------- * Akretion * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* Pedro M. Baeza -* Alexis de Lattre -* Alexandre Fayolle -* Danimar Ribeiro -* Raphaël Valyi -* Raf Ven -* Manuel Regidor -* Sodexis +- Pedro M. Baeza +- Alexis de Lattre +- Alexandre Fayolle +- Danimar Ribeiro +- Raphaël Valyi +- Raf Ven +- Manuel Regidor +- Sodexis Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -88,6 +89,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_sale/pyproject.toml b/account_payment_sale/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/account_payment_sale/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_payment_sale/readme/CONTRIBUTORS.md b/account_payment_sale/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..74f64555c --- /dev/null +++ b/account_payment_sale/readme/CONTRIBUTORS.md @@ -0,0 +1,8 @@ +- Pedro M. Baeza +- Alexis de Lattre \<\> +- Alexandre Fayolle +- Danimar Ribeiro +- Raphaël Valyi +- Raf Ven \<\> +- Manuel Regidor \<\> +- Sodexis \<\> diff --git a/account_payment_sale/readme/CONTRIBUTORS.rst b/account_payment_sale/readme/CONTRIBUTORS.rst deleted file mode 100644 index 155888dbf..000000000 --- a/account_payment_sale/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,8 +0,0 @@ -* Pedro M. Baeza -* Alexis de Lattre -* Alexandre Fayolle -* Danimar Ribeiro -* Raphaël Valyi -* Raf Ven -* Manuel Regidor -* Sodexis diff --git a/account_payment_sale/readme/DESCRIPTION.md b/account_payment_sale/readme/DESCRIPTION.md new file mode 100644 index 000000000..e8844a578 --- /dev/null +++ b/account_payment_sale/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This modules adds one field on sale orders: *Payment Mode*. This field +is copied from customer to sale order and then from sale order to +customer invoice. diff --git a/account_payment_sale/readme/DESCRIPTION.rst b/account_payment_sale/readme/DESCRIPTION.rst deleted file mode 100644 index 462a4a16b..000000000 --- a/account_payment_sale/readme/DESCRIPTION.rst +++ /dev/null @@ -1,3 +0,0 @@ -This modules adds one field on sale orders: *Payment Mode*. -This field is copied from customer to sale order and then from sale order to -customer invoice. diff --git a/account_payment_sale/readme/USAGE.md b/account_payment_sale/readme/USAGE.md new file mode 100644 index 000000000..0cf7cccb9 --- /dev/null +++ b/account_payment_sale/readme/USAGE.md @@ -0,0 +1,4 @@ +You are able to add a payment mode directly on a partner. This payment +mode is automatically associated to the sale order, then copied to the +related invoice. This default value can be changed sale orders or on +draft invoices. diff --git a/account_payment_sale/readme/USAGE.rst b/account_payment_sale/readme/USAGE.rst deleted file mode 100644 index bc6f451f4..000000000 --- a/account_payment_sale/readme/USAGE.rst +++ /dev/null @@ -1,3 +0,0 @@ -You are able to add a payment mode directly on a partner. -This payment mode is automatically associated to the sale order, then copied to the related invoice. -This default value can be changed sale orders or on draft invoices. diff --git a/account_payment_sale/static/description/index.html b/account_payment_sale/static/description/index.html index 6b32defdc..affbb573a 100644 --- a/account_payment_sale/static/description/index.html +++ b/account_payment_sale/static/description/index.html @@ -1,438 +1,439 @@ - - - - - - -Account Payment Sale - - - -
-

Account Payment Sale

- - -

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

-

This modules adds one field on sale orders: Payment Mode. -This field is copied from customer to sale order and then from sale order to -customer invoice.

-

Table of contents

- -
-

Usage

-

You are able to add a payment mode directly on a partner. -This payment mode is automatically associated to the sale order, then copied to the related invoice. -This default value can be changed sale orders or on draft invoices.

-
-
-

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.

-

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

-
-
-

Credits

-
-

Authors

-
    -
  • Akretion
  • -
  • Tecnativa
  • -
-
-
-

Contributors

- -
-
-

Maintainers

-

This module is maintained by the OCA.

-Odoo Community Association -

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.

-

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

-
-
-
- - + + + + + + +Account Payment Sale + + + +
+

Account Payment Sale

+ + +

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

+

This modules adds one field on sale orders: Payment Mode. This field +is copied from customer to sale order and then from sale order to +customer invoice.

+

Table of contents

+ +
+

Usage

+

You are able to add a payment mode directly on a partner. This payment +mode is automatically associated to the sale order, then copied to the +related invoice. This default value can be changed sale orders or on +draft invoices.

+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
  • Tecnativa
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

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

+
+
+
+ + diff --git a/account_payment_sale/tests/test_sale_order.py b/account_payment_sale/tests/test_sale_order.py index 40a4fc2f0..ca3075935 100644 --- a/account_payment_sale/tests/test_sale_order.py +++ b/account_payment_sale/tests/test_sale_order.py @@ -11,7 +11,7 @@ class TestSaleOrder(CommonTestCase): with Form(self.env["sale.order"]) as sale_form: sale_form.partner_id = self.base_partner sale_form.pricelist_id = self.env.ref("product.list0") - for (_, p) in self.products.items(): + for _, p in self.products.items(): with sale_form.order_line.new() as order_line: order_line.product_id = p order_line.name = p.name