From 16afa63544f6136721dbcd1998365539395f95f4 Mon Sep 17 00:00:00 2001 From: kobros-tech Date: Fri, 9 Aug 2024 12:09:19 +0300 Subject: [PATCH] [MIG] product_pricelist_fixed_currency_rate: Migration to 17.0 --- .../README.rst | 39 +++++++------ .../__manifest__.py | 4 +- .../pyproject.toml | 3 + .../readme/CONTRIBUTORS.md | 2 + .../readme/CONTRIBUTORS.rst | 1 - .../readme/DESCRIPTION.md | 3 + .../readme/DESCRIPTION.rst | 2 - .../readme/USAGE.md | 9 +++ .../readme/USAGE.rst | 9 --- .../static/description/index.html | 56 ++++++++++--------- .../views/pricelist_views.xml | 18 ++---- 11 files changed, 77 insertions(+), 69 deletions(-) create mode 100644 product_pricelist_fixed_currency_rate/pyproject.toml create mode 100644 product_pricelist_fixed_currency_rate/readme/CONTRIBUTORS.md delete mode 100644 product_pricelist_fixed_currency_rate/readme/CONTRIBUTORS.rst create mode 100644 product_pricelist_fixed_currency_rate/readme/DESCRIPTION.md delete mode 100644 product_pricelist_fixed_currency_rate/readme/DESCRIPTION.rst create mode 100644 product_pricelist_fixed_currency_rate/readme/USAGE.md delete mode 100644 product_pricelist_fixed_currency_rate/readme/USAGE.rst diff --git a/product_pricelist_fixed_currency_rate/README.rst b/product_pricelist_fixed_currency_rate/README.rst index be8b65f7cb0c..f45644bf75a2 100644 --- a/product_pricelist_fixed_currency_rate/README.rst +++ b/product_pricelist_fixed_currency_rate/README.rst @@ -17,19 +17,20 @@ Product Pricelist Fixed Currency Rate :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github - :target: https://github.com/OCA/product-attribute/tree/16.0/product_pricelist_fixed_currency_rate + :target: https://github.com/OCA/product-attribute/tree/17.0/product_pricelist_fixed_currency_rate :alt: OCA/product-attribute .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_fixed_currency_rate + :target: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_pricelist_fixed_currency_rate :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/product-attribute&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module extends the product pricelists feature to allow to set a fixed -currency rate to convert from a pricelist with a different currency. +This module extends the product pricelists feature to allow to set a +fixed currency rate to convert from a pricelist with a different +currency. **Table of contents** @@ -41,10 +42,10 @@ Usage When using advanced price rules: -#. Go to a pricelist and create a pricelist with a given currency. -#. Create a new pricelist rule with computation formula. -#. Make it based on other pricelist that uses a different currency. -#. *Fixed Currency Rate* will show up, set a value. +1. Go to a pricelist and create a pricelist with a given currency. +2. Create a new pricelist rule with computation formula. +3. Make it based on other pricelist that uses a different currency. +4. *Fixed Currency Rate* will show up, set a value. This will force the currency conversion to always use the specified *Fixed Currency Rate* rate when using this pricelist. @@ -55,7 +56,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. @@ -63,17 +64,18 @@ Credits ======= Authors -~~~~~~~ +------- * ForgeFlow Contributors -~~~~~~~~~~~~ +------------ -* Lois Rilo +- Lois Rilo +- Mohamed Alkobrosli Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -88,11 +90,14 @@ promote its widespread use. .. |maintainer-LoisRForgeFlow| image:: https://github.com/LoisRForgeFlow.png?size=40px :target: https://github.com/LoisRForgeFlow :alt: LoisRForgeFlow +.. |maintainer-kobros-tech| image:: https://github.com/kobros-tech.png?size=40px + :target: https://github.com/kobros-tech + :alt: kobros-tech -Current `maintainer `__: +Current `maintainers `__: -|maintainer-LoisRForgeFlow| +|maintainer-LoisRForgeFlow| |maintainer-kobros-tech| -This module is part of the `OCA/product-attribute `_ project on GitHub. +This module is part of the `OCA/product-attribute `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_pricelist_fixed_currency_rate/__manifest__.py b/product_pricelist_fixed_currency_rate/__manifest__.py index df62416eb59d..84d4e04e5b3a 100644 --- a/product_pricelist_fixed_currency_rate/__manifest__.py +++ b/product_pricelist_fixed_currency_rate/__manifest__.py @@ -4,11 +4,11 @@ { "name": "Product Pricelist Fixed Currency Rate", "summary": "Set a fixed currency rate between pricelists", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "category": "Product", "website": "https://github.com/OCA/product-attribute", "author": "ForgeFlow, Odoo Community Association (OCA)", - "maintainers": ["LoisRForgeFlow"], + "maintainers": ["LoisRForgeFlow", "kobros-tech"], "license": "AGPL-3", "application": False, "installable": True, diff --git a/product_pricelist_fixed_currency_rate/pyproject.toml b/product_pricelist_fixed_currency_rate/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/product_pricelist_fixed_currency_rate/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/product_pricelist_fixed_currency_rate/readme/CONTRIBUTORS.md b/product_pricelist_fixed_currency_rate/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..c90fd656ca23 --- /dev/null +++ b/product_pricelist_fixed_currency_rate/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +- Lois Rilo \<\> +- Mohamed Alkobrosli \<\> diff --git a/product_pricelist_fixed_currency_rate/readme/CONTRIBUTORS.rst b/product_pricelist_fixed_currency_rate/readme/CONTRIBUTORS.rst deleted file mode 100644 index 77dfbe89e971..000000000000 --- a/product_pricelist_fixed_currency_rate/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1 +0,0 @@ -* Lois Rilo diff --git a/product_pricelist_fixed_currency_rate/readme/DESCRIPTION.md b/product_pricelist_fixed_currency_rate/readme/DESCRIPTION.md new file mode 100644 index 000000000000..2cd73ba04a14 --- /dev/null +++ b/product_pricelist_fixed_currency_rate/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This module extends the product pricelists feature to allow to set a +fixed currency rate to convert from a pricelist with a different +currency. diff --git a/product_pricelist_fixed_currency_rate/readme/DESCRIPTION.rst b/product_pricelist_fixed_currency_rate/readme/DESCRIPTION.rst deleted file mode 100644 index af7a89184dc2..000000000000 --- a/product_pricelist_fixed_currency_rate/readme/DESCRIPTION.rst +++ /dev/null @@ -1,2 +0,0 @@ -This module extends the product pricelists feature to allow to set a fixed -currency rate to convert from a pricelist with a different currency. diff --git a/product_pricelist_fixed_currency_rate/readme/USAGE.md b/product_pricelist_fixed_currency_rate/readme/USAGE.md new file mode 100644 index 000000000000..3c2df0ebb1ef --- /dev/null +++ b/product_pricelist_fixed_currency_rate/readme/USAGE.md @@ -0,0 +1,9 @@ +When using advanced price rules: + +1. Go to a pricelist and create a pricelist with a given currency. +2. Create a new pricelist rule with computation formula. +3. Make it based on other pricelist that uses a different currency. +4. *Fixed Currency Rate* will show up, set a value. + +This will force the currency conversion to always use the specified +*Fixed Currency Rate* rate when using this pricelist. diff --git a/product_pricelist_fixed_currency_rate/readme/USAGE.rst b/product_pricelist_fixed_currency_rate/readme/USAGE.rst deleted file mode 100644 index 81e62c663d37..000000000000 --- a/product_pricelist_fixed_currency_rate/readme/USAGE.rst +++ /dev/null @@ -1,9 +0,0 @@ -When using advanced price rules: - -#. Go to a pricelist and create a pricelist with a given currency. -#. Create a new pricelist rule with computation formula. -#. Make it based on other pricelist that uses a different currency. -#. *Fixed Currency Rate* will show up, set a value. - -This will force the currency conversion to always use the specified -*Fixed Currency Rate* rate when using this pricelist. diff --git a/product_pricelist_fixed_currency_rate/static/description/index.html b/product_pricelist_fixed_currency_rate/static/description/index.html index 0d57db12f906..04da486b0ee8 100644 --- a/product_pricelist_fixed_currency_rate/static/description/index.html +++ b/product_pricelist_fixed_currency_rate/static/description/index.html @@ -1,20 +1,20 @@ - - + Product Pricelist Fixed Currency Rate