diff --git a/base_global_discount/README.rst b/base_global_discount/README.rst index dbeb265b..4db8fdc7 100644 --- a/base_global_discount/README.rst +++ b/base_global_discount/README.rst @@ -17,19 +17,19 @@ Base Global Discount :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github - :target: https://github.com/OCA/server-backend/tree/16.0/base_global_discount + :target: https://github.com/OCA/server-backend/tree/17.0/base_global_discount :alt: OCA/server-backend .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_global_discount + :target: https://translation.odoo-community.org/projects/server-backend-17-0/server-backend-17-0-base_global_discount :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/server-backend&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/server-backend&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -Base module to have global discounts applied to either sales or purchases. It -doesn't do much for itself, so account_global_discount or +Base module to have global discounts applied to either sales or +purchases. It doesn't do much for itself, so account_global_discount or purchase_global_discount should be installed to benefit from it. **Table of contents** @@ -42,21 +42,22 @@ Configuration To use this module, you need to: -#. Go to *Settings > Users*, choose yours and set *Manage Global Discounts*. -#. Go to *Settings > Parameters > Global Discounts* -#. Choose the discount scope (sales or purchases). -#. You can also restrict it to a certain company if needed. +1. Go to *Settings > Users*, choose yours and set *Manage Global + Discounts*. +2. Go to *Settings > Parameters > Global Discounts* +3. Choose the discount scope (sales or purchases). +4. You can also restrict it to a certain company if needed. Usage ===== -You can assign global discounts to partners as well. You'll need the proper -permission (*Manage Global Discounts*): +You can assign global discounts to partners as well. You'll need the +proper permission (*Manage Global Discounts*): -#. Go to a partner that is a company. -#. Go to the *Sales & Purchases* tab. -#. In section sale, you can set sale discounts. -#. In section purchase, you can set purchase discounts. +1. Go to a partner that is a company. +2. Go to the *Sales & Purchases* tab. +3. In section sale, you can set sale discounts. +4. In section purchase, you can set purchase discounts. Bug Tracker =========== @@ -64,7 +65,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. @@ -72,24 +73,25 @@ Credits ======= Authors -~~~~~~~ +------- * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* `Tecnativa `_ +- `Tecnativa `__ - * Pedro M. Baeza - * David Vidal - * Carlos Dauden - * Rafael Blasco - * Ernesto Tejeda -* Omar Castiñeira + - Pedro M. Baeza + - David Vidal + - Carlos Dauden + - Rafael Blasco + - Ernesto Tejeda + +- Omar Castiñeira Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -101,6 +103,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/server-backend `_ project on GitHub. +This module is part of the `OCA/server-backend `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_global_discount/models/global_discount.py b/base_global_discount/models/global_discount.py index e0f53fc5..c50948d3 100644 --- a/base_global_discount/models/global_discount.py +++ b/base_global_discount/models/global_discount.py @@ -25,7 +25,7 @@ class GlobalDiscount(models.Model): def name_get(self): result = [] for one in self: - result.append((one.id, "{} ({:.2f}%)".format(one.name, one.discount))) + result.append((one.id, f"{one.name} ({one.discount:.2f}%)")) return result def _get_global_discount_vals(self, base, **kwargs): diff --git a/base_global_discount/pyproject.toml b/base_global_discount/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/base_global_discount/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/base_global_discount/readme/CONFIGURE.md b/base_global_discount/readme/CONFIGURE.md new file mode 100644 index 00000000..0c43513f --- /dev/null +++ b/base_global_discount/readme/CONFIGURE.md @@ -0,0 +1,7 @@ +To use this module, you need to: + +1. Go to *Settings \> Users*, choose yours and set *Manage Global + Discounts*. +2. Go to *Settings \> Parameters \> Global Discounts* +3. Choose the discount scope (sales or purchases). +4. You can also restrict it to a certain company if needed. diff --git a/base_global_discount/readme/CONFIGURE.rst b/base_global_discount/readme/CONFIGURE.rst deleted file mode 100644 index bb80f62d..00000000 --- a/base_global_discount/readme/CONFIGURE.rst +++ /dev/null @@ -1,6 +0,0 @@ -To use this module, you need to: - -#. Go to *Settings > Users*, choose yours and set *Manage Global Discounts*. -#. Go to *Settings > Parameters > Global Discounts* -#. Choose the discount scope (sales or purchases). -#. You can also restrict it to a certain company if needed. diff --git a/base_global_discount/readme/CONTRIBUTORS.md b/base_global_discount/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..8efc8aed --- /dev/null +++ b/base_global_discount/readme/CONTRIBUTORS.md @@ -0,0 +1,7 @@ +- [Tecnativa](https://www.tecnativa.com) + - Pedro M. Baeza + - David Vidal + - Carlos Dauden + - Rafael Blasco + - Ernesto Tejeda +- Omar Castiñeira \<\> diff --git a/base_global_discount/readme/CONTRIBUTORS.rst b/base_global_discount/readme/CONTRIBUTORS.rst deleted file mode 100644 index c4649cea..00000000 --- a/base_global_discount/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,8 +0,0 @@ -* `Tecnativa `_ - - * Pedro M. Baeza - * David Vidal - * Carlos Dauden - * Rafael Blasco - * Ernesto Tejeda -* Omar Castiñeira diff --git a/base_global_discount/readme/DESCRIPTION.md b/base_global_discount/readme/DESCRIPTION.md new file mode 100644 index 00000000..e755595d --- /dev/null +++ b/base_global_discount/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +Base module to have global discounts applied to either sales or +purchases. It doesn't do much for itself, so account_global_discount or +purchase_global_discount should be installed to benefit from it. diff --git a/base_global_discount/readme/DESCRIPTION.rst b/base_global_discount/readme/DESCRIPTION.rst deleted file mode 100644 index 7006b993..00000000 --- a/base_global_discount/readme/DESCRIPTION.rst +++ /dev/null @@ -1,3 +0,0 @@ -Base module to have global discounts applied to either sales or purchases. It -doesn't do much for itself, so account_global_discount or -purchase_global_discount should be installed to benefit from it. diff --git a/base_global_discount/readme/USAGE.md b/base_global_discount/readme/USAGE.md new file mode 100644 index 00000000..eed5f53a --- /dev/null +++ b/base_global_discount/readme/USAGE.md @@ -0,0 +1,7 @@ +You can assign global discounts to partners as well. You'll need the +proper permission (*Manage Global Discounts*): + +1. Go to a partner that is a company. +2. Go to the *Sales & Purchases* tab. +3. In section sale, you can set sale discounts. +4. In section purchase, you can set purchase discounts. diff --git a/base_global_discount/readme/USAGE.rst b/base_global_discount/readme/USAGE.rst deleted file mode 100644 index 079332b7..00000000 --- a/base_global_discount/readme/USAGE.rst +++ /dev/null @@ -1,7 +0,0 @@ -You can assign global discounts to partners as well. You'll need the proper -permission (*Manage Global Discounts*): - -#. Go to a partner that is a company. -#. Go to the *Sales & Purchases* tab. -#. In section sale, you can set sale discounts. -#. In section purchase, you can set purchase discounts. diff --git a/pandoc-3.3-1-amd64.deb b/pandoc-3.3-1-amd64.deb new file mode 100644 index 00000000..65e9c2d9 Binary files /dev/null and b/pandoc-3.3-1-amd64.deb differ