diff --git a/account_global_discount/README.rst b/account_global_discount/README.rst index 3d48dba8c0bf..ea648dfabf2e 100644 --- a/account_global_discount/README.rst +++ b/account_global_discount/README.rst @@ -17,13 +17,13 @@ Account 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%2Faccount--invoicing-lightgray.png?logo=github - :target: https://github.com/OCA/account-invoicing/tree/16.0/account_global_discount + :target: https://github.com/OCA/account-invoicing/tree/17.0/account_global_discount :alt: OCA/account-invoicing .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_global_discount + :target: https://translation.odoo-community.org/projects/account-invoicing-17-0/account-invoicing-17-0-account_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/account-invoicing&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/account-invoicing&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -40,46 +40,49 @@ Configuration To configure this module, you need to: -#. Go to *Settings > Parameters > Global Discounts*. -#. Add a new discount percentage. -#. Choose the discount scope (sales or purchases). -#. You can also restrict it to a certain company if needed. +1. Go to *Settings > Parameters > Global Discounts*. +2. Add a new discount percentage. +3. Choose the discount scope (sales or purchases). +4. You can also restrict it to a certain company if needed. You can assign global discounts to partners as well: -#. 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. Usage ===== To use this module, you need to: -#. Go to *Invoicing > Customers > Invoices*. -#. Create a new sales invoice, choose a customer with a defined global - discount and you will see how the value of the 'Invoice Global Discounts' - field is auto-completed with the global discounts defined in the customer - (See configuration section in this readme), although you can choose - then other global discounts defined in configuration. -#. Add several invoice lines. -#. At the bottom of the form you will see how global discounts affect the - total values. -#. Go to the 'Journal Items' tab (if you have permissions for that). - There you will see how the tax lines have the discount percentage applied - and you will also see the lines that reflect the global discount applied. -#. In the 'Other info' tab, you can see in the 'Global Discounts' table, +1. Go to *Invoicing > Customers > Invoices*. +2. Create a new sales invoice, choose a customer with a defined global + discount and you will see how the value of the 'Invoice Global + Discounts' field is auto-completed with the global discounts defined + in the customer (See configuration section in this readme), although + you can choose then other global discounts defined in configuration. +3. Add several invoice lines. +4. At the bottom of the form you will see how global discounts affect + the total values. +5. Go to the 'Journal Items' tab (if you have permissions for that). + There you will see how the tax lines have the discount percentage + applied and you will also see the lines that reflect the global + discount applied. +6. In the 'Other info' tab, you can see in the 'Global Discounts' table, the global discounts applied to each of the invoice lines. Known issues / Roadmap ====================== -* Not all the taxes combination can be compatible with global discounts, as - the generated journal items won't be correct for taxes declarations. An error - is raised in that cases. -* Currently, taxes in invoice lines are mandatory with global discounts. -* No tax tags are populated for the global discount move lines, only `tax_ids`. +- Not all the taxes combination can be compatible with global + discounts, as the generated journal items won't be correct for taxes + declarations. An error is raised in that cases. +- Currently, taxes in invoice lines are mandatory with global + discounts. +- No tax tags are populated for the global discount move lines, only + tax_ids. Bug Tracker =========== @@ -87,7 +90,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. @@ -95,25 +98,26 @@ Credits ======= Authors -~~~~~~~ +------- * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* `Tecnativa `_ +- `Tecnativa `__ - * Pedro M. Baeza - * David Vidal - * Carlos Dauden - * Rafael Blasco - * Ernesto Tejeda - * Víctor Martínez -* Omar Castiñeira + - Pedro M. Baeza + - David Vidal + - Carlos Dauden + - Rafael Blasco + - Ernesto Tejeda + - Víctor Martínez + +- Omar Castiñeira Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -125,6 +129,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/account-invoicing `_ project on GitHub. +This module is part of the `OCA/account-invoicing `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_global_discount/pyproject.toml b/account_global_discount/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/account_global_discount/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_global_discount/readme/CONFIGURE.md b/account_global_discount/readme/CONFIGURE.md new file mode 100644 index 000000000000..fea613f52f18 --- /dev/null +++ b/account_global_discount/readme/CONFIGURE.md @@ -0,0 +1,13 @@ +To configure this module, you need to: + +1. Go to *Settings \> Parameters \> Global Discounts*. +2. Add a new discount percentage. +3. Choose the discount scope (sales or purchases). +4. You can also restrict it to a certain company if needed. + +You can assign global discounts to partners as well: + +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/account_global_discount/readme/CONFIGURE.rst b/account_global_discount/readme/CONFIGURE.rst deleted file mode 100644 index a6d4b5c93e49..000000000000 --- a/account_global_discount/readme/CONFIGURE.rst +++ /dev/null @@ -1,13 +0,0 @@ -To configure this module, you need to: - -#. Go to *Settings > Parameters > Global Discounts*. -#. Add a new discount percentage. -#. Choose the discount scope (sales or purchases). -#. You can also restrict it to a certain company if needed. - -You can assign global discounts to partners as well: - -#. 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/account_global_discount/readme/CONTRIBUTORS.md b/account_global_discount/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..29efa70b8b82 --- /dev/null +++ b/account_global_discount/readme/CONTRIBUTORS.md @@ -0,0 +1,8 @@ +- [Tecnativa](https://www.tecnativa.com) + - Pedro M. Baeza + - David Vidal + - Carlos Dauden + - Rafael Blasco + - Ernesto Tejeda + - Víctor Martínez +- Omar Castiñeira \<\> diff --git a/account_global_discount/readme/CONTRIBUTORS.rst b/account_global_discount/readme/CONTRIBUTORS.rst deleted file mode 100644 index bf340291ae61..000000000000 --- a/account_global_discount/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,9 +0,0 @@ -* `Tecnativa `_ - - * Pedro M. Baeza - * David Vidal - * Carlos Dauden - * Rafael Blasco - * Ernesto Tejeda - * Víctor Martínez -* Omar Castiñeira diff --git a/account_global_discount/readme/DESCRIPTION.rst b/account_global_discount/readme/DESCRIPTION.md similarity index 100% rename from account_global_discount/readme/DESCRIPTION.rst rename to account_global_discount/readme/DESCRIPTION.md diff --git a/account_global_discount/readme/ROADMAP.md b/account_global_discount/readme/ROADMAP.md new file mode 100644 index 000000000000..430b8e36e1c4 --- /dev/null +++ b/account_global_discount/readme/ROADMAP.md @@ -0,0 +1,6 @@ +- Not all the taxes combination can be compatible with global discounts, + as the generated journal items won't be correct for taxes + declarations. An error is raised in that cases. +- Currently, taxes in invoice lines are mandatory with global discounts. +- No tax tags are populated for the global discount move lines, only + tax_ids. diff --git a/account_global_discount/readme/ROADMAP.rst b/account_global_discount/readme/ROADMAP.rst deleted file mode 100644 index cb97fb12adc0..000000000000 --- a/account_global_discount/readme/ROADMAP.rst +++ /dev/null @@ -1,5 +0,0 @@ -* Not all the taxes combination can be compatible with global discounts, as - the generated journal items won't be correct for taxes declarations. An error - is raised in that cases. -* Currently, taxes in invoice lines are mandatory with global discounts. -* No tax tags are populated for the global discount move lines, only `tax_ids`. diff --git a/account_global_discount/readme/USAGE.md b/account_global_discount/readme/USAGE.md new file mode 100644 index 000000000000..68b48a37ae84 --- /dev/null +++ b/account_global_discount/readme/USAGE.md @@ -0,0 +1,17 @@ +To use this module, you need to: + +1. Go to *Invoicing \> Customers \> Invoices*. +2. Create a new sales invoice, choose a customer with a defined global + discount and you will see how the value of the 'Invoice Global + Discounts' field is auto-completed with the global discounts defined + in the customer (See configuration section in this readme), although + you can choose then other global discounts defined in configuration. +3. Add several invoice lines. +4. At the bottom of the form you will see how global discounts affect + the total values. +5. Go to the 'Journal Items' tab (if you have permissions for that). + There you will see how the tax lines have the discount percentage + applied and you will also see the lines that reflect the global + discount applied. +6. In the 'Other info' tab, you can see in the 'Global Discounts' + table, the global discounts applied to each of the invoice lines. diff --git a/account_global_discount/readme/USAGE.rst b/account_global_discount/readme/USAGE.rst deleted file mode 100644 index 078543441070..000000000000 --- a/account_global_discount/readme/USAGE.rst +++ /dev/null @@ -1,16 +0,0 @@ -To use this module, you need to: - -#. Go to *Invoicing > Customers > Invoices*. -#. Create a new sales invoice, choose a customer with a defined global - discount and you will see how the value of the 'Invoice Global Discounts' - field is auto-completed with the global discounts defined in the customer - (See configuration section in this readme), although you can choose - then other global discounts defined in configuration. -#. Add several invoice lines. -#. At the bottom of the form you will see how global discounts affect the - total values. -#. Go to the 'Journal Items' tab (if you have permissions for that). - There you will see how the tax lines have the discount percentage applied - and you will also see the lines that reflect the global discount applied. -#. In the 'Other info' tab, you can see in the 'Global Discounts' table, - the global discounts applied to each of the invoice lines. diff --git a/account_global_discount/static/description/index.html b/account_global_discount/static/description/index.html index 9ba5b76cbe73..43ed5a7a419f 100644 --- a/account_global_discount/static/description/index.html +++ b/account_global_discount/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -368,7 +369,7 @@

Account Global Discount

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:2ca255fdd44114cd7497a3f2adf9e073832d649ae20b802c09d6ac7dc415050e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/account-invoicing Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/account-invoicing Translate me on Weblate Try me on Runboat

Apply global discounts to invoices

Table of contents

@@ -408,16 +409,17 @@

Usage

  1. Go to Invoicing > Customers > Invoices.
  2. Create a new sales invoice, choose a customer with a defined global -discount and you will see how the value of the ‘Invoice Global Discounts’ -field is auto-completed with the global discounts defined in the customer -(See configuration section in this readme), although you can choose -then other global discounts defined in configuration.
  3. +discount and you will see how the value of the ‘Invoice Global +Discounts’ field is auto-completed with the global discounts defined +in the customer (See configuration section in this readme), although +you can choose then other global discounts defined in configuration.
  4. Add several invoice lines.
  5. -
  6. At the bottom of the form you will see how global discounts affect the -total values.
  7. +
  8. At the bottom of the form you will see how global discounts affect +the total values.
  9. Go to the ‘Journal Items’ tab (if you have permissions for that). -There you will see how the tax lines have the discount percentage applied -and you will also see the lines that reflect the global discount applied.
  10. +There you will see how the tax lines have the discount percentage +applied and you will also see the lines that reflect the global +discount applied.
  11. In the ‘Other info’ tab, you can see in the ‘Global Discounts’ table, the global discounts applied to each of the invoice lines.
@@ -425,11 +427,13 @@

Usage

Known issues / Roadmap

    -
  • Not all the taxes combination can be compatible with global discounts, as -the generated journal items won’t be correct for taxes declarations. An error -is raised in that cases.
  • -
  • Currently, taxes in invoice lines are mandatory with global discounts.
  • -
  • No tax tags are populated for the global discount move lines, only tax_ids.
  • +
  • Not all the taxes combination can be compatible with global +discounts, as the generated journal items won’t be correct for taxes +declarations. An error is raised in that cases.
  • +
  • Currently, taxes in invoice lines are mandatory with global +discounts.
  • +
  • No tax tags are populated for the global discount move lines, only +tax_ids.
@@ -437,7 +441,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.

@@ -466,11 +470,13 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +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/account-invoicing project on GitHub.

+

This module is part of the OCA/account-invoicing project on GitHub.

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