diff --git a/stock_demand_estimate_matrix/README.rst b/stock_demand_estimate_matrix/README.rst index 7f0c05ce1d42..3b87faac933d 100644 --- a/stock_demand_estimate_matrix/README.rst +++ b/stock_demand_estimate_matrix/README.rst @@ -17,13 +17,13 @@ Stock Demand Estimate Matrix :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github - :target: https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_demand_estimate_matrix + :target: https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_demand_estimate_matrix :alt: OCA/stock-logistics-warehouse .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_demand_estimate_matrix + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_demand_estimate_matrix :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/stock-logistics-warehouse&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -31,7 +31,8 @@ Stock Demand Estimate Matrix This module allows to create demand estimates for a given product and location, on configurable time periods. -The module does not provide in itself any specific usage of the estimates. +The module does not provide in itself any specific usage of the +estimates. **Table of contents** @@ -43,18 +44,20 @@ Installation This module relies on: -* The OCA module '2D matrix for x2many fields', and can be downloaded from - Github: https://github.com/OCA/web/tree/13.0/web_widget_x2many_2d_matrix -* The OCA module 'Date Range', and can be downloaded from - Github: https://github.com/OCA/server-ux/tree/13.0/date_range +- The OCA module '2D matrix for x2many fields', and can be downloaded + from Github: + https://github.com/OCA/web/tree/13.0/web_widget_x2many_2d_matrix +- The OCA module 'Date Range', and can be downloaded from Github: + https://github.com/OCA/server-ux/tree/13.0/date_range Usage ===== -Go to *Inventory > Configuration > Date Ranges* and define your estimating periods. +Go to *Inventory > Configuration > Date Ranges* and define your +estimating periods. -Go to *Inventory > Demand Planning > Create Demand Estimates* to create or -update your demand estimates. +Go to *Inventory > Demand Planning > Create Demand Estimates* to create +or update your demand estimates. Go to *Inventory > Demand Planning > Demand Estimates* to review the estimates created. @@ -65,7 +68,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. @@ -73,19 +76,19 @@ Credits ======= Authors -~~~~~~~ +------- * ForgeFlow Contributors -~~~~~~~~~~~~ +------------ -* Jordi Ballester Alomar -* Lois Rilo -* Pimolnat Suntian +- Jordi Ballester Alomar +- Lois Rilo +- Pimolnat Suntian Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -97,6 +100,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/stock-logistics-warehouse `_ project on GitHub. +This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_demand_estimate_matrix/pyproject.toml b/stock_demand_estimate_matrix/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/stock_demand_estimate_matrix/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/stock_demand_estimate_matrix/readme/CONTRIBUTORS.md b/stock_demand_estimate_matrix/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..0953628754d5 --- /dev/null +++ b/stock_demand_estimate_matrix/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Jordi Ballester Alomar \<\> +- Lois Rilo \<\> +- Pimolnat Suntian \<\> diff --git a/stock_demand_estimate_matrix/readme/CONTRIBUTORS.rst b/stock_demand_estimate_matrix/readme/CONTRIBUTORS.rst deleted file mode 100644 index f20a4c7c0917..000000000000 --- a/stock_demand_estimate_matrix/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,3 +0,0 @@ -* Jordi Ballester Alomar -* Lois Rilo -* Pimolnat Suntian diff --git a/stock_demand_estimate_matrix/readme/DESCRIPTION.rst b/stock_demand_estimate_matrix/readme/DESCRIPTION.md similarity index 65% rename from stock_demand_estimate_matrix/readme/DESCRIPTION.rst rename to stock_demand_estimate_matrix/readme/DESCRIPTION.md index 9f8401d71537..0202db8d5790 100644 --- a/stock_demand_estimate_matrix/readme/DESCRIPTION.rst +++ b/stock_demand_estimate_matrix/readme/DESCRIPTION.md @@ -1,4 +1,5 @@ This module allows to create demand estimates for a given product and location, on configurable time periods. -The module does not provide in itself any specific usage of the estimates. +The module does not provide in itself any specific usage of the +estimates. diff --git a/stock_demand_estimate_matrix/readme/INSTALL.md b/stock_demand_estimate_matrix/readme/INSTALL.md new file mode 100644 index 000000000000..b53d4bc86997 --- /dev/null +++ b/stock_demand_estimate_matrix/readme/INSTALL.md @@ -0,0 +1,7 @@ +This module relies on: + +- The OCA module '2D matrix for x2many fields', and can be downloaded + from Github: + +- The OCA module 'Date Range', and can be downloaded from Github: + diff --git a/stock_demand_estimate_matrix/readme/INSTALL.rst b/stock_demand_estimate_matrix/readme/INSTALL.rst deleted file mode 100644 index 7f06842c9a53..000000000000 --- a/stock_demand_estimate_matrix/readme/INSTALL.rst +++ /dev/null @@ -1,6 +0,0 @@ -This module relies on: - -* The OCA module '2D matrix for x2many fields', and can be downloaded from - Github: https://github.com/OCA/web/tree/13.0/web_widget_x2many_2d_matrix -* The OCA module 'Date Range', and can be downloaded from - Github: https://github.com/OCA/server-ux/tree/13.0/date_range diff --git a/stock_demand_estimate_matrix/readme/USAGE.md b/stock_demand_estimate_matrix/readme/USAGE.md new file mode 100644 index 000000000000..d022d4261c84 --- /dev/null +++ b/stock_demand_estimate_matrix/readme/USAGE.md @@ -0,0 +1,8 @@ +Go to *Inventory \> Configuration \> Date Ranges* and define your +estimating periods. + +Go to *Inventory \> Demand Planning \> Create Demand Estimates* to +create or update your demand estimates. + +Go to *Inventory \> Demand Planning \> Demand Estimates* to review the +estimates created. diff --git a/stock_demand_estimate_matrix/readme/USAGE.rst b/stock_demand_estimate_matrix/readme/USAGE.rst deleted file mode 100644 index f59ade24694e..000000000000 --- a/stock_demand_estimate_matrix/readme/USAGE.rst +++ /dev/null @@ -1,7 +0,0 @@ -Go to *Inventory > Configuration > Date Ranges* and define your estimating periods. - -Go to *Inventory > Demand Planning > Create Demand Estimates* to create or -update your demand estimates. - -Go to *Inventory > Demand Planning > Demand Estimates* to review the -estimates created. diff --git a/stock_demand_estimate_matrix/static/description/index.html b/stock_demand_estimate_matrix/static/description/index.html index 81c13bad3ce4..879a8e2075d2 100644 --- a/stock_demand_estimate_matrix/static/description/index.html +++ b/stock_demand_estimate_matrix/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 @@ 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.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,10 +369,11 @@

Stock Demand Estimate Matrix

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:dd6235ad9f824ac586e403e2c2a17b00c6cb981efee47edf1409ed6693a44f61 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Production/Stable License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

+

Production/Stable License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

This module allows to create demand estimates for a given product and location, on configurable time periods.

-

The module does not provide in itself any specific usage of the estimates.

+

The module does not provide in itself any specific usage of the +estimates.

Table of contents

Usage

-

Go to Inventory > Configuration > Date Ranges and define your estimating periods.

-

Go to Inventory > Demand Planning > Create Demand Estimates to create or -update your demand estimates.

+

Go to Inventory > Configuration > Date Ranges and define your +estimating periods.

+

Go to Inventory > Demand Planning > Create Demand Estimates to create +or update your demand estimates.

Go to Inventory > Demand Planning > Demand Estimates to review the estimates created.

@@ -410,7 +413,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.

@@ -432,11 +435,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/stock-logistics-warehouse project on GitHub.

+

This module is part of the OCA/stock-logistics-warehouse project on GitHub.

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

diff --git a/stock_demand_estimate_matrix/wizards/stock_demand_estimate_sheet.py b/stock_demand_estimate_matrix/wizards/stock_demand_estimate_sheet.py index cf96d9833006..cbebd7be371d 100644 --- a/stock_demand_estimate_matrix/wizards/stock_demand_estimate_sheet.py +++ b/stock_demand_estimate_matrix/wizards/stock_demand_estimate_sheet.py @@ -114,9 +114,9 @@ def _get_ranges(self): def _get_default_estimate_line( self, _range, product, uom_id, uom_qty, estimate_id=None ): - name_y = "{} - {}".format(product.name, product.uom_id.name) + name_y = f"{product.name} - {product.uom_id.name}" if product.default_code: - name_y += "[{}] {}".format(product.default_code, name_y) + name_y += f"[{product.default_code}] {name_y}" values = { "value_x": _range.name, "value_y": name_y,