From f3fa77f4fbd9fc115f69222680ed7c33a56c0fdb Mon Sep 17 00:00:00 2001 From: Juanjo Date: Thu, 25 Jul 2024 15:41:41 +0200 Subject: [PATCH] [IMP] contract_price_revision: pre-commit auto fixes --- contract_price_revision/README.rst | 55 +++++++++---------- contract_price_revision/pyproject.toml | 3 + .../readme/CONTRIBUTORS.md | 4 ++ .../readme/CONTRIBUTORS.rst | 5 -- .../{DESCRIPTION.rst => DESCRIPTION.md} | 0 contract_price_revision/readme/USAGE.md | 18 ++++++ contract_price_revision/readme/USAGE.rst | 18 ------ .../static/description/index.html | 44 ++++++++------- 8 files changed, 75 insertions(+), 72 deletions(-) create mode 100644 contract_price_revision/pyproject.toml create mode 100644 contract_price_revision/readme/CONTRIBUTORS.md delete mode 100644 contract_price_revision/readme/CONTRIBUTORS.rst rename contract_price_revision/readme/{DESCRIPTION.rst => DESCRIPTION.md} (100%) create mode 100644 contract_price_revision/readme/USAGE.md delete mode 100644 contract_price_revision/readme/USAGE.rst diff --git a/contract_price_revision/README.rst b/contract_price_revision/README.rst index d79af9cf8..36373a287 100644 --- a/contract_price_revision/README.rst +++ b/contract_price_revision/README.rst @@ -17,13 +17,13 @@ Contract Price Revision :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github - :target: https://github.com/OCA/contract/tree/15.0/contract_price_revision + :target: https://github.com/OCA/contract/tree/17.0/contract_price_revision :alt: OCA/contract .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract_price_revision + :target: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract_price_revision :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/contract&target_branch=15.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/contract&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -40,22 +40,21 @@ Usage To use this module: -#. Go to **Invoicing > Customers > Customer Contracts** if you are a billing - user. -#. Select as many contracts as you want to update line prices. -#. Click on Action button and execute the wizard **Create revision of contract - lines**. -#. Enter date start from which the new price will be valid and enter date - end and percentage to increase old contract lines. -#. By clicking on Apply button, a new contract line will be created with - a price increased accordingly to the percent entered. Old contract lines - will have as ending date the day before the entered date. -#. When create invoices related to contracts selected, prices will be update - with the prices that are not out of date. - -#. When managing contract with recurrence on line level, you maybe want not - to revise price for some lines. - Check 'Never Revise Price' on line level to avoid price revisions. +1. Go to **Invoicing > Customers > Customer Contracts** if you are a + billing user. +2. Select as many contracts as you want to update line prices. +3. Click on Action button and execute the wizard **Create revision of + contract lines**. +4. Enter date start from which the new price will be valid and enter + date end and percentage to increase old contract lines. +5. By clicking on Apply button, a new contract line will be created with + a price increased accordingly to the percent entered. Old contract + lines will have as ending date the day before the entered date. +6. When create invoices related to contracts selected, prices will be + update with the prices that are not out of date. +7. When managing contract with recurrence on line level, you maybe want + not to revise price for some lines. Check 'Never Revise Price' on + line level to avoid price revisions. Bug Tracker =========== @@ -63,7 +62,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. @@ -71,22 +70,22 @@ Credits ======= Authors -~~~~~~~ +------- * ACSONE SA/NV * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* `Tecnativa `_: +- `Tecnativa `__: - * Vicent Cubells - * Carlos Dauden - * Carolina Fernandez + - Vicent Cubells + - Carlos Dauden + - Carolina Fernandez Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -106,6 +105,6 @@ Current `maintainer `__: |maintainer-carlosdauden| -This module is part of the `OCA/contract `_ project on GitHub. +This module is part of the `OCA/contract `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/contract_price_revision/pyproject.toml b/contract_price_revision/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/contract_price_revision/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/contract_price_revision/readme/CONTRIBUTORS.md b/contract_price_revision/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..f3cfddabb --- /dev/null +++ b/contract_price_revision/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- [Tecnativa](https://www.tecnativa.com): + - Vicent Cubells + - Carlos Dauden + - Carolina Fernandez diff --git a/contract_price_revision/readme/CONTRIBUTORS.rst b/contract_price_revision/readme/CONTRIBUTORS.rst deleted file mode 100644 index 8308dec89..000000000 --- a/contract_price_revision/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,5 +0,0 @@ -* `Tecnativa `_: - - * Vicent Cubells - * Carlos Dauden - * Carolina Fernandez diff --git a/contract_price_revision/readme/DESCRIPTION.rst b/contract_price_revision/readme/DESCRIPTION.md similarity index 100% rename from contract_price_revision/readme/DESCRIPTION.rst rename to contract_price_revision/readme/DESCRIPTION.md diff --git a/contract_price_revision/readme/USAGE.md b/contract_price_revision/readme/USAGE.md new file mode 100644 index 000000000..72d3cfcde --- /dev/null +++ b/contract_price_revision/readme/USAGE.md @@ -0,0 +1,18 @@ +To use this module: + +1. Go to **Invoicing \> Customers \> Customer Contracts** if you are a + billing user. +2. Select as many contracts as you want to update line prices. +3. Click on Action button and execute the wizard **Create revision of + contract lines**. +4. Enter date start from which the new price will be valid and enter + date end and percentage to increase old contract lines. +5. By clicking on Apply button, a new contract line will be created + with a price increased accordingly to the percent entered. Old + contract lines will have as ending date the day before the entered + date. +6. When create invoices related to contracts selected, prices will be + update with the prices that are not out of date. +7. When managing contract with recurrence on line level, you maybe want + not to revise price for some lines. Check 'Never Revise Price' on + line level to avoid price revisions. diff --git a/contract_price_revision/readme/USAGE.rst b/contract_price_revision/readme/USAGE.rst deleted file mode 100644 index 544bbeeef..000000000 --- a/contract_price_revision/readme/USAGE.rst +++ /dev/null @@ -1,18 +0,0 @@ -To use this module: - -#. Go to **Invoicing > Customers > Customer Contracts** if you are a billing - user. -#. Select as many contracts as you want to update line prices. -#. Click on Action button and execute the wizard **Create revision of contract - lines**. -#. Enter date start from which the new price will be valid and enter date - end and percentage to increase old contract lines. -#. By clicking on Apply button, a new contract line will be created with - a price increased accordingly to the percent entered. Old contract lines - will have as ending date the day before the entered date. -#. When create invoices related to contracts selected, prices will be update - with the prices that are not out of date. - -#. When managing contract with recurrence on line level, you maybe want not - to revise price for some lines. - Check 'Never Revise Price' on line level to avoid price revisions. diff --git a/contract_price_revision/static/description/index.html b/contract_price_revision/static/description/index.html index e84c03f29..2bd91eb17 100644 --- a/contract_price_revision/static/description/index.html +++ b/contract_price_revision/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,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. @@ -275,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code { 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 } @@ -301,7 +301,7 @@ span.option { span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,7 +369,7 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:de222a92e86474bc20e85dbdae73adfb5e21bd3f96b065006dcb12b04f58b2ff !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Production/Stable License: AGPL-3 OCA/contract Translate me on Weblate Try me on Runboat

+

Production/Stable License: AGPL-3 OCA/contract Translate me on Weblate Try me on Runboat

This module allows to create revisions of contract line prices.

Table of contents

@@ -388,21 +388,21 @@ ul.auto-toc {

Usage

To use this module:

    -
  1. Go to Invoicing > Customers > Customer Contracts if you are a billing -user.
  2. +
  3. Go to Invoicing > Customers > Customer Contracts if you are a +billing user.
  4. Select as many contracts as you want to update line prices.
  5. -
  6. Click on Action button and execute the wizard Create revision of contract -lines.
  7. -
  8. Enter date start from which the new price will be valid and enter date -end and percentage to increase old contract lines.
  9. +
  10. Click on Action button and execute the wizard Create revision of +contract lines.
  11. +
  12. Enter date start from which the new price will be valid and enter +date end and percentage to increase old contract lines.
  13. By clicking on Apply button, a new contract line will be created with -a price increased accordingly to the percent entered. Old contract lines -will have as ending date the day before the entered date.
  14. -
  15. When create invoices related to contracts selected, prices will be update -with the prices that are not out of date.
  16. -
  17. When managing contract with recurrence on line level, you maybe want not -to revise price for some lines. -Check ‘Never Revise Price’ on line level to avoid price revisions.
  18. +a price increased accordingly to the percent entered. Old contract +lines will have as ending date the day before the entered date. +
  19. When create invoices related to contracts selected, prices will be +update with the prices that are not out of date.
  20. +
  21. When managing contract with recurrence on line level, you maybe want +not to revise price for some lines. Check ‘Never Revise Price’ on +line level to avoid price revisions.
@@ -410,7 +410,7 @@ Check ‘Never Revise Price’ on line level to avoid price revisions.

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.

@@ -436,13 +436,15 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

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.

Current maintainer:

carlosdauden

-

This module is part of the OCA/contract project on GitHub.

+

This module is part of the OCA/contract project on GitHub.

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