From c733ddae6859eeedc0c9f6dd593454cbe1da06f2 Mon Sep 17 00:00:00 2001 From: JasminSForgeFlow Date: Tue, 21 May 2024 11:37:56 +0530 Subject: [PATCH] [IMP] mrp_planned_order_matrix: black, isort, prettier --- mrp_planned_order_matrix/README.rst | 44 ++++++++++--------- mrp_planned_order_matrix/pyproject.toml | 3 ++ .../readme/CONTRIBUTORS.md | 4 ++ .../readme/CONTRIBUTORS.rst | 5 --- .../{DESCRIPTION.rst => DESCRIPTION.md} | 0 mrp_planned_order_matrix/readme/INSTALL.md | 7 +++ mrp_planned_order_matrix/readme/INSTALL.rst | 6 --- mrp_planned_order_matrix/readme/USAGE.md | 6 +++ mrp_planned_order_matrix/readme/USAGE.rst | 5 --- .../static/description/index.html | 38 +++++++++------- .../wizards/mrp_planned_order_wizard.py | 4 +- 11 files changed, 65 insertions(+), 57 deletions(-) create mode 100644 mrp_planned_order_matrix/pyproject.toml create mode 100644 mrp_planned_order_matrix/readme/CONTRIBUTORS.md delete mode 100644 mrp_planned_order_matrix/readme/CONTRIBUTORS.rst rename mrp_planned_order_matrix/readme/{DESCRIPTION.rst => DESCRIPTION.md} (100%) create mode 100644 mrp_planned_order_matrix/readme/INSTALL.md delete mode 100644 mrp_planned_order_matrix/readme/INSTALL.rst create mode 100644 mrp_planned_order_matrix/readme/USAGE.md delete mode 100644 mrp_planned_order_matrix/readme/USAGE.rst diff --git a/mrp_planned_order_matrix/README.rst b/mrp_planned_order_matrix/README.rst index ad6708b1a..fb1194a52 100644 --- a/mrp_planned_order_matrix/README.rst +++ b/mrp_planned_order_matrix/README.rst @@ -17,13 +17,13 @@ MRP Planned Order 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%2Fmanufacture-lightgray.png?logo=github - :target: https://github.com/OCA/manufacture/tree/16.0/mrp_planned_order_matrix + :target: https://github.com/OCA/manufacture/tree/17.0/mrp_planned_order_matrix :alt: OCA/manufacture .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_planned_order_matrix + :target: https://translation.odoo-community.org/projects/manufacture-17-0/manufacture-17-0-mrp_planned_order_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/manufacture&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -40,19 +40,21 @@ 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/15.0/web_widget_x2many_2d_matrix -* The OCA module 'Date Range', and can be downloaded from - Github: https://github.com/OCA/server-ux/tree/15.0/date_range +- The OCA module '2D matrix for x2many fields', and can be downloaded + from Github: + https://github.com/OCA/web/tree/15.0/web_widget_x2many_2d_matrix +- The OCA module 'Date Range', and can be downloaded from Github: + https://github.com/OCA/server-ux/tree/15.0/date_range Usage ===== -* Go to *Inventory / Configuration / Date Ranges* and define your estimating periods. -* Go to *Manufacturing / Planning / Create Fixed Planned Orders* to create or - update your fixed planned orders. -* Go to *Manufacturing / Planning / Planned Orders* to review the planned - orders in the system. +- Go to *Inventory / Configuration / Date Ranges* and define your + estimating periods. +- Go to *Manufacturing / Planning / Create Fixed Planned Orders* to + create or update your fixed planned orders. +- Go to *Manufacturing / Planning / Planned Orders* to review the + planned orders in the system. Bug Tracker =========== @@ -60,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. @@ -68,21 +70,21 @@ Credits ======= Authors -~~~~~~~ +------- * ForgeFlow Contributors -~~~~~~~~~~~~ +------------ -* ForgeFlow, S.L. (https://www.forgeflow.com) +- ForgeFlow, S.L. (https://www.forgeflow.com) - * Jordi Ballester Alomar - * Lois Rilo - * Hector Villarreal + - Jordi Ballester Alomar + - Lois Rilo + - Hector Villarreal Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -94,6 +96,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/manufacture `_ project on GitHub. +This module is part of the `OCA/manufacture `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mrp_planned_order_matrix/pyproject.toml b/mrp_planned_order_matrix/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/mrp_planned_order_matrix/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/mrp_planned_order_matrix/readme/CONTRIBUTORS.md b/mrp_planned_order_matrix/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..5a82e6e8b --- /dev/null +++ b/mrp_planned_order_matrix/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- ForgeFlow, S.L. () + - Jordi Ballester Alomar \<\> + - Lois Rilo \<\> + - Hector Villarreal \<\> diff --git a/mrp_planned_order_matrix/readme/CONTRIBUTORS.rst b/mrp_planned_order_matrix/readme/CONTRIBUTORS.rst deleted file mode 100644 index 179a18bde..000000000 --- a/mrp_planned_order_matrix/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,5 +0,0 @@ -* ForgeFlow, S.L. (https://www.forgeflow.com) - - * Jordi Ballester Alomar - * Lois Rilo - * Hector Villarreal diff --git a/mrp_planned_order_matrix/readme/DESCRIPTION.rst b/mrp_planned_order_matrix/readme/DESCRIPTION.md similarity index 100% rename from mrp_planned_order_matrix/readme/DESCRIPTION.rst rename to mrp_planned_order_matrix/readme/DESCRIPTION.md diff --git a/mrp_planned_order_matrix/readme/INSTALL.md b/mrp_planned_order_matrix/readme/INSTALL.md new file mode 100644 index 000000000..c000faa18 --- /dev/null +++ b/mrp_planned_order_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/mrp_planned_order_matrix/readme/INSTALL.rst b/mrp_planned_order_matrix/readme/INSTALL.rst deleted file mode 100644 index 1528b9c63..000000000 --- a/mrp_planned_order_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/15.0/web_widget_x2many_2d_matrix -* The OCA module 'Date Range', and can be downloaded from - Github: https://github.com/OCA/server-ux/tree/15.0/date_range diff --git a/mrp_planned_order_matrix/readme/USAGE.md b/mrp_planned_order_matrix/readme/USAGE.md new file mode 100644 index 000000000..ccbbdeff6 --- /dev/null +++ b/mrp_planned_order_matrix/readme/USAGE.md @@ -0,0 +1,6 @@ +- Go to *Inventory / Configuration / Date Ranges* and define your + estimating periods. +- Go to *Manufacturing / Planning / Create Fixed Planned Orders* to + create or update your fixed planned orders. +- Go to *Manufacturing / Planning / Planned Orders* to review the + planned orders in the system. diff --git a/mrp_planned_order_matrix/readme/USAGE.rst b/mrp_planned_order_matrix/readme/USAGE.rst deleted file mode 100644 index 9ffb49938..000000000 --- a/mrp_planned_order_matrix/readme/USAGE.rst +++ /dev/null @@ -1,5 +0,0 @@ -* Go to *Inventory / Configuration / Date Ranges* and define your estimating periods. -* Go to *Manufacturing / Planning / Create Fixed Planned Orders* to create or - update your fixed planned orders. -* Go to *Manufacturing / Planning / Planned Orders* to review the planned - orders in the system. diff --git a/mrp_planned_order_matrix/static/description/index.html b/mrp_planned_order_matrix/static/description/index.html index 057f04ff1..9f54573a8 100644 --- a/mrp_planned_order_matrix/static/description/index.html +++ b/mrp_planned_order_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 @@ 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:3ca7a03b19be36dcaeaf196fcd1d98c2c2cf35b7ceb9ecb285ca847fe787fa30 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module allows to create fixed planned orders using a grid view.

Table of contents

@@ -389,20 +389,22 @@ ul.auto-toc {

Installation

This module relies on:

Usage

    -
  • Go to Inventory / Configuration / Date Ranges and define your estimating periods.
  • -
  • Go to Manufacturing / Planning / Create Fixed Planned Orders to create or -update your fixed planned orders.
  • -
  • Go to Manufacturing / Planning / Planned Orders to review the planned -orders in the system.
  • +
  • Go to Inventory / Configuration / Date Ranges and define your +estimating periods.
  • +
  • Go to Manufacturing / Planning / Create Fixed Planned Orders to +create or update your fixed planned orders.
  • +
  • Go to Manufacturing / Planning / Planned Orders to review the +planned orders in the system.
@@ -410,7 +412,7 @@ orders in the system.

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.

@@ -435,11 +437,13 @@ 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.

-

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

+

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

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

diff --git a/mrp_planned_order_matrix/wizards/mrp_planned_order_wizard.py b/mrp_planned_order_matrix/wizards/mrp_planned_order_wizard.py index 196b2da59..804849642 100644 --- a/mrp_planned_order_matrix/wizards/mrp_planned_order_wizard.py +++ b/mrp_planned_order_matrix/wizards/mrp_planned_order_wizard.py @@ -137,9 +137,7 @@ class MprPlannedOrderSheet(models.TransientModel): return ranges def _get_default_sheet_line(self, d_range, product_mrp, uom_qty, item_ids): - name_y = "{} - {}".format( - product_mrp.display_name, product_mrp.product_id.uom_id.name - ) + name_y = f"{product_mrp.display_name} - {product_mrp.product_id.uom_id.name}" values = { "value_x": d_range.name, "value_y": name_y,