From 03d6936f5acc4b9e4c4045a5ef9b2ee7e5139142 Mon Sep 17 00:00:00 2001 From: JasminSForgeFlow Date: Tue, 12 Mar 2024 11:58:23 +0530 Subject: [PATCH] [IMP] mrp_multi_level: black, isort, prettier --- mrp_multi_level/README.rst | 221 +++++++++--------- mrp_multi_level/models/product_mrp_area.py | 2 +- mrp_multi_level/pyproject.toml | 3 + mrp_multi_level/readme/CONFIGURE.md | 9 + mrp_multi_level/readme/CONFIGURE.rst | 11 - mrp_multi_level/readme/CONTRIBUTORS.md | 7 + mrp_multi_level/readme/CONTRIBUTORS.rst | 7 - mrp_multi_level/readme/DESCRIPTION.md | 19 ++ mrp_multi_level/readme/DESCRIPTION.rst | 17 -- mrp_multi_level/readme/HISTORY.md | 101 ++++++++ mrp_multi_level/readme/HISTORY.rst | 117 ---------- mrp_multi_level/readme/USAGE.md | 12 + mrp_multi_level/readme/USAGE.rst | 12 - mrp_multi_level/static/description/index.html | 156 ++++++------- mrp_multi_level/wizards/mrp_multi_level.py | 8 +- 15 files changed, 338 insertions(+), 364 deletions(-) create mode 100644 mrp_multi_level/pyproject.toml create mode 100644 mrp_multi_level/readme/CONFIGURE.md delete mode 100644 mrp_multi_level/readme/CONFIGURE.rst create mode 100644 mrp_multi_level/readme/CONTRIBUTORS.md delete mode 100644 mrp_multi_level/readme/CONTRIBUTORS.rst create mode 100644 mrp_multi_level/readme/DESCRIPTION.md delete mode 100644 mrp_multi_level/readme/DESCRIPTION.rst create mode 100644 mrp_multi_level/readme/HISTORY.md delete mode 100644 mrp_multi_level/readme/HISTORY.rst create mode 100644 mrp_multi_level/readme/USAGE.md delete mode 100644 mrp_multi_level/readme/USAGE.rst diff --git a/mrp_multi_level/README.rst b/mrp_multi_level/README.rst index 00ebc7c8e..93435be62 100644 --- a/mrp_multi_level/README.rst +++ b/mrp_multi_level/README.rst @@ -17,20 +17,20 @@ MRP Multi Level :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-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_multi_level + :target: https://github.com/OCA/manufacture/tree/17.0/mrp_multi_level :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_multi_level + :target: https://translation.odoo-community.org/projects/manufacture-17-0/manufacture-17-0-mrp_multi_level :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| -This module allows you to calculate, based in known inventory, demand, and -supply, and based on parameters set at product variant level, the new -procurements for each product. +This module allows you to calculate, based in known inventory, demand, +and supply, and based on parameters set at product variant level, the +new procurements for each product. To do this, the calculation starts at top level of the bill of material and explodes this down to the lowest level. @@ -38,13 +38,16 @@ and explodes this down to the lowest level. Key Features ------------ -* MRP parameters set by product variant MRP area pairs. -* Cron job to calculate the MRP demand. -* Manually calculate the MRP demand. -* Confirm the calculated MRP demand and create PO's, or MO's. -* Able to see the products for which action is needed throught Planned Orders. -* Integration with `Stock Demand Estimates `_ system. - Note: You need to install `mrp_multi_level_estimate module `_. +- MRP parameters set by product variant MRP area pairs. +- Cron job to calculate the MRP demand. +- Manually calculate the MRP demand. +- Confirm the calculated MRP demand and create PO's, or MO's. +- Able to see the products for which action is needed throught Planned + Orders. +- Integration with `Stock Demand + Estimates `__ + system. Note: You need to install `mrp_multi_level_estimate + module `__. **Table of contents** @@ -55,153 +58,159 @@ Configuration ============= MRP Areas -~~~~~~~~~ +--------- -* Go to *Manufacturing > Configuration > MRP Areas* and define or edit - any existing area. You can specify the working hours for every area. +- Go to *Manufacturing > Configuration > MRP Areas* and define or edit + any existing area. You can specify the working hours for every area. Product MRP Area Parameters -~~~~~~~~~~~~~~~~~~~~~~~~~~~ +--------------------------- -* Go to *Manufacturing > Master Data > Product MRP Area Parameters* and set - the MRP parameters for a given product and area. +- Go to *Manufacturing > Master Data > Product MRP Area Parameters* and + set the MRP parameters for a given product and area. Usage ===== To manually run the MRP scheduler: -#. Go to *Manufacturing > Operations > Run MRP Multi Level*. -#. On the wizard click *Run MRP*. +1. Go to *Manufacturing > Operations > Run MRP Multi Level*. +2. On the wizard click *Run MRP*. To launch replenishment orders (moves, purchases, production orders...): -#. Go to *Manufacturing > Operations > MRP Inventory*. -#. Filter with *To procure*. -#. Select multiple records and click on *Action > Procure* or click the right - hand side gears in any record. -#. On the wizard, check everything is ok and click *Execute*. +1. Go to *Manufacturing > Operations > MRP Inventory*. +2. Filter with *To procure*. +3. Select multiple records and click on *Action > Procure* or click the + right hand side gears in any record. +4. On the wizard, check everything is ok and click *Execute*. Changelog ========= 13.0.1.5.0 (2020-04-09) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- **Features** -- Show *Run MRP Multi Level* menu only to a specific new security group *Run MRP Manually*. (`#492 `_) - +- Show *Run MRP Multi Level* menu only to a specific new security group + *Run MRP Manually*. + (`#492 `__) 13.0.1.4.0 (2020-03-26) -~~~~~~~~~~~~~~~~~~~~~~~ - * Add menu entry for planned orders - * Add button to navigate from planned orders to linked manufacturing orders - * Add action to convert planned orders to fixed - * When changing the due date in a planned order the release date is recomputed +----------------------- + + - Add menu entry for planned orders + - Add button to navigate from planned orders to linked manufacturing + orders + - Add action to convert planned orders to fixed + - When changing the due date in a planned order the release date is + recomputed 13.0.1.3.0 (2020-03-02) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* [IMP] Minor changes" - (`#470 `_). +- [IMP] Minor changes" + (`#470 `__). - * Planned Order release and due date become required. - * Add button to Product MRP Area to update MOQ from Supplier Info. - * Link Manufacturing Orders with Planned Orders. - * Allow Mrp Inventory Procure Wizard to be used from other models. - * Make MRP Inventory creation more extensible. - * Main Supplier computation (v13 requires explicit False definitions) + - Planned Order release and due date become required. + - Add button to Product MRP Area to update MOQ from Supplier Info. + - Link Manufacturing Orders with Planned Orders. + - Allow Mrp Inventory Procure Wizard to be used from other models. + - Make MRP Inventory creation more extensible. + - Main Supplier computation (v13 requires explicit False + definitions) 13.0.1.2.0 (2020-02-20) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* [IMP] Minor changes - (`#468 `_). +- [IMP] Minor changes + (`#468 `__). - * Planned Orders become fixed on manual creation by default - * Released Quantity becomes readonly - * Add product reference if Planned Order name is not defined on bom explosion + - Planned Orders become fixed on manual creation by default + - Released Quantity becomes readonly + - Add product reference if Planned Order name is not defined on bom + explosion 13.0.1.1.0 (2020-02-21) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* [FIX] Minor changes - (`#469 `_). +- [FIX] Minor changes + (`#469 `__). - * Fix Main supplier computation in multi company - * Drop Triplicated field in search view + - Fix Main supplier computation in multi company + - Drop Triplicated field in search view +- [IMP] Minor changes + (`#463 `__). -* [IMP] Minor changes - (`#463 `_). - - * Show supply method on MRP Inventory - * Allow no-MRP users to look into Products + - Show supply method on MRP Inventory + - Allow no-MRP users to look into Products 13.0.1.0.0 (2019-12-18) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* [MIG] Migration to v13. +- [MIG] Migration to v13. 12.0.1.0.0 (2019-08-05) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* [MIG] Migration to v12: +- [MIG] Migration to v12: - * Estimates as a forecasting mechanism is moved to a new module - (mrp_multi_level_estimate). + - Estimates as a forecasting mechanism is moved to a new module + (mrp_multi_level_estimate). 11.0.3.0.0 (2019-05-22) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* [REW/IMP] Rework to include Planned Orders. - (`#365 `_). -* [IMP] Able to procure from a different location than the area's location. +- [REW/IMP] Rework to include Planned Orders. + (`#365 `__). +- [IMP] Able to procure from a different location than the area's + location. 11.0.2.2.0 (2019-05-02) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* [IMP] Able to run MRP only for selected areas. - (`#360 `_). +- [IMP] Able to run MRP only for selected areas. + (`#360 `__). 11.0.2.1.0 (2019-04-02) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* [IMP] Implement *Nbr. Days* functionality to be able to group demand when - generating supply proposals. - (`#345 `_). +- [IMP] Implement *Nbr. Days* functionality to be able to group demand + when generating supply proposals. + (`#345 `__). 11.0.2.0.0 (2018-11-20) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* [REW] Refactor MRP Area. - (`#322 `_): +- [REW] Refactor MRP Area. + (`#322 `__): - * MRP product concept dropped in favor of *Product MRP Area Parameters*. - This allow to set different MRP parameters for the same product in - different areas. - * Menu items reordering. + - MRP product concept dropped in favor of *Product MRP Area + Parameters*. This allow to set different MRP parameters for the + same product in different areas. + - Menu items reordering. 11.0.1.1.0 (2018-08-30) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* [FIX] Consider *Qty Multiple* on product to propose the quantity to procure. - (`#297 `_) +- [FIX] Consider *Qty Multiple* on product to propose the quantity to + procure. (`#297 `__) 11.0.1.0.1 (2018-08-03) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* [FIX] User and system locales doesn't break MRP calculation. - (`#290 `_) -* [FIX] Working Hours are now defined only at Warehouse level and displayed - as a related on MRP Areas. - (`#290 `__) +- [FIX] User and system locales doesn't break MRP calculation. + (`#290 `__) +- [FIX] Working Hours are now defined only at Warehouse level and + displayed as a related on MRP Areas. + (`#290 `__) 11.0.1.0.0 (2018-07-09) -~~~~~~~~~~~~~~~~~~~~~~~ +----------------------- -* Start of the history. +- Start of the history. Bug Tracker =========== @@ -209,7 +218,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. @@ -217,24 +226,24 @@ Credits ======= Authors -~~~~~~~ +------- * Ucamco * ForgeFlow Contributors -~~~~~~~~~~~~ +------------ -* Wim Audenaert -* Jordi Ballester -* Lois Rilo -* Héctor Villarreal -* Christopher Ormaza -* Joan Sisquella -* Alexandre Fayolle +- Wim Audenaert +- Jordi Ballester +- Lois Rilo +- Héctor Villarreal +- Christopher Ormaza +- Joan Sisquella +- Alexandre Fayolle Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -260,6 +269,6 @@ Current `maintainers `__: |maintainer-JordiBForgeFlow| |maintainer-LoisRForgeFlow| |maintainer-ChrisOForgeFlow| -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_multi_level/models/product_mrp_area.py b/mrp_multi_level/models/product_mrp_area.py index e6114d394..0e85bf17a 100644 --- a/mrp_multi_level/models/product_mrp_area.py +++ b/mrp_multi_level/models/product_mrp_area.py @@ -131,7 +131,7 @@ class ProductMRPArea(models.Model): return [ ( area.id, - "[{}] {}".format(area.mrp_area_id.name, area.product_id.display_name), + f"[{area.mrp_area_id.name}] {area.product_id.display_name}", ) for area in self ] diff --git a/mrp_multi_level/pyproject.toml b/mrp_multi_level/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/mrp_multi_level/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/mrp_multi_level/readme/CONFIGURE.md b/mrp_multi_level/readme/CONFIGURE.md new file mode 100644 index 000000000..1fb947058 --- /dev/null +++ b/mrp_multi_level/readme/CONFIGURE.md @@ -0,0 +1,9 @@ +## MRP Areas + +- Go to *Manufacturing \> Configuration \> MRP Areas* and define or edit + any existing area. You can specify the working hours for every area. + +## Product MRP Area Parameters + +- Go to *Manufacturing \> Master Data \> Product MRP Area Parameters* + and set the MRP parameters for a given product and area. diff --git a/mrp_multi_level/readme/CONFIGURE.rst b/mrp_multi_level/readme/CONFIGURE.rst deleted file mode 100644 index 3825da541..000000000 --- a/mrp_multi_level/readme/CONFIGURE.rst +++ /dev/null @@ -1,11 +0,0 @@ -MRP Areas -~~~~~~~~~ - -* Go to *Manufacturing > Configuration > MRP Areas* and define or edit - any existing area. You can specify the working hours for every area. - -Product MRP Area Parameters -~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -* Go to *Manufacturing > Master Data > Product MRP Area Parameters* and set - the MRP parameters for a given product and area. diff --git a/mrp_multi_level/readme/CONTRIBUTORS.md b/mrp_multi_level/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..56d1ef122 --- /dev/null +++ b/mrp_multi_level/readme/CONTRIBUTORS.md @@ -0,0 +1,7 @@ +- Wim Audenaert \<\> +- Jordi Ballester \<\> +- Lois Rilo \<\> +- Héctor Villarreal \<\> +- Christopher Ormaza \<\> +- Joan Sisquella \<\> +- Alexandre Fayolle \<\> diff --git a/mrp_multi_level/readme/CONTRIBUTORS.rst b/mrp_multi_level/readme/CONTRIBUTORS.rst deleted file mode 100644 index 76b6b5572..000000000 --- a/mrp_multi_level/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,7 +0,0 @@ -* Wim Audenaert -* Jordi Ballester -* Lois Rilo -* Héctor Villarreal -* Christopher Ormaza -* Joan Sisquella -* Alexandre Fayolle diff --git a/mrp_multi_level/readme/DESCRIPTION.md b/mrp_multi_level/readme/DESCRIPTION.md new file mode 100644 index 000000000..7daa1c71d --- /dev/null +++ b/mrp_multi_level/readme/DESCRIPTION.md @@ -0,0 +1,19 @@ +This module allows you to calculate, based in known inventory, demand, +and supply, and based on parameters set at product variant level, the +new procurements for each product. + +To do this, the calculation starts at top level of the bill of material +and explodes this down to the lowest level. + +## Key Features + +- MRP parameters set by product variant MRP area pairs. +- Cron job to calculate the MRP demand. +- Manually calculate the MRP demand. +- Confirm the calculated MRP demand and create PO's, or MO's. +- Able to see the products for which action is needed throught Planned + Orders. +- Integration with [Stock Demand + Estimates](https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_demand_estimate) + system. Note: You need to install [mrp_multi_level_estimate + module](https://github.com/OCA/manufacture/tree/12.0/mrp_multi_level_estimate). diff --git a/mrp_multi_level/readme/DESCRIPTION.rst b/mrp_multi_level/readme/DESCRIPTION.rst deleted file mode 100644 index 07e004779..000000000 --- a/mrp_multi_level/readme/DESCRIPTION.rst +++ /dev/null @@ -1,17 +0,0 @@ -This module allows you to calculate, based in known inventory, demand, and -supply, and based on parameters set at product variant level, the new -procurements for each product. - -To do this, the calculation starts at top level of the bill of material -and explodes this down to the lowest level. - -Key Features ------------- - -* MRP parameters set by product variant MRP area pairs. -* Cron job to calculate the MRP demand. -* Manually calculate the MRP demand. -* Confirm the calculated MRP demand and create PO's, or MO's. -* Able to see the products for which action is needed throught Planned Orders. -* Integration with `Stock Demand Estimates `_ system. - Note: You need to install `mrp_multi_level_estimate module `_. diff --git a/mrp_multi_level/readme/HISTORY.md b/mrp_multi_level/readme/HISTORY.md new file mode 100644 index 000000000..e132a3ab2 --- /dev/null +++ b/mrp_multi_level/readme/HISTORY.md @@ -0,0 +1,101 @@ +## 13.0.1.5.0 (2020-04-09) + +**Features** + +- Show *Run MRP Multi Level* menu only to a specific new security group + *Run MRP Manually*. + ([\#492](https://github.com/OCA/manufacture/issues/492)) + +## 13.0.1.4.0 (2020-03-26) + +> - Add menu entry for planned orders +> - Add button to navigate from planned orders to linked manufacturing +> orders +> - Add action to convert planned orders to fixed +> - When changing the due date in a planned order the release date is +> recomputed + +## 13.0.1.3.0 (2020-03-02) + +- \[IMP\] Minor changes" + ([\#470](https://github.com/OCA/manufacture/pull/470)). + - Planned Order release and due date become required. + - Add button to Product MRP Area to update MOQ from Supplier Info. + - Link Manufacturing Orders with Planned Orders. + - Allow Mrp Inventory Procure Wizard to be used from other models. + - Make MRP Inventory creation more extensible. + - Main Supplier computation (v13 requires explicit False definitions) + +## 13.0.1.2.0 (2020-02-20) + +- \[IMP\] Minor changes + ([\#468](https://github.com/OCA/manufacture/pull/468)). + - Planned Orders become fixed on manual creation by default + - Released Quantity becomes readonly + - Add product reference if Planned Order name is not defined on bom + explosion + +## 13.0.1.1.0 (2020-02-21) + +- \[FIX\] Minor changes + ([\#469](https://github.com/OCA/manufacture/pull/469)). + - Fix Main supplier computation in multi company + - Drop Triplicated field in search view +- \[IMP\] Minor changes + ([\#463](https://github.com/OCA/manufacture/pull/463)). + - Show supply method on MRP Inventory + - Allow no-MRP users to look into Products + +## 13.0.1.0.0 (2019-12-18) + +- \[MIG\] Migration to v13. + +## 12.0.1.0.0 (2019-08-05) + +- \[MIG\] Migration to v12: + - Estimates as a forecasting mechanism is moved to a new module + (mrp_multi_level_estimate). + +## 11.0.3.0.0 (2019-05-22) + +- \[REW/IMP\] Rework to include Planned Orders. + ([\#365](https://github.com/OCA/manufacture/pull/365)). +- \[IMP\] Able to procure from a different location than the area's + location. + +## 11.0.2.2.0 (2019-05-02) + +- \[IMP\] Able to run MRP only for selected areas. + ([\#360](https://github.com/OCA/manufacture/pull/360)). + +## 11.0.2.1.0 (2019-04-02) + +- \[IMP\] Implement *Nbr. Days* functionality to be able to group demand + when generating supply proposals. + ([\#345](https://github.com/OCA/manufacture/pull/345)). + +## 11.0.2.0.0 (2018-11-20) + +- \[REW\] Refactor MRP Area. + ([\#322](https://github.com/OCA/manufacture/pull/322)): + - MRP product concept dropped in favor of *Product MRP Area + Parameters*. This allow to set different MRP parameters for the same + product in different areas. + - Menu items reordering. + +## 11.0.1.1.0 (2018-08-30) + +- \[FIX\] Consider *Qty Multiple* on product to propose the quantity to + procure. ([\#297](https://github.com/OCA/manufacture/pull/297)) + +## 11.0.1.0.1 (2018-08-03) + +- \[FIX\] User and system locales doesn't break MRP calculation. + ([\#290](https://github.com/OCA/manufacture/pull/290)) +- \[FIX\] Working Hours are now defined only at Warehouse level and + displayed as a related on MRP Areas. + ([\#290](https://github.com/OCA/manufacture/pull/290)) + +## 11.0.1.0.0 (2018-07-09) + +- Start of the history. diff --git a/mrp_multi_level/readme/HISTORY.rst b/mrp_multi_level/readme/HISTORY.rst deleted file mode 100644 index bd9c106a2..000000000 --- a/mrp_multi_level/readme/HISTORY.rst +++ /dev/null @@ -1,117 +0,0 @@ -13.0.1.5.0 (2020-04-09) -~~~~~~~~~~~~~~~~~~~~~~~ - -**Features** - -- Show *Run MRP Multi Level* menu only to a specific new security group *Run MRP Manually*. (`#492 `_) - - -13.0.1.4.0 (2020-03-26) -~~~~~~~~~~~~~~~~~~~~~~~ - * Add menu entry for planned orders - * Add button to navigate from planned orders to linked manufacturing orders - * Add action to convert planned orders to fixed - * When changing the due date in a planned order the release date is recomputed - -13.0.1.3.0 (2020-03-02) -~~~~~~~~~~~~~~~~~~~~~~~ - -* [IMP] Minor changes" - (`#470 `_). - - * Planned Order release and due date become required. - * Add button to Product MRP Area to update MOQ from Supplier Info. - * Link Manufacturing Orders with Planned Orders. - * Allow Mrp Inventory Procure Wizard to be used from other models. - * Make MRP Inventory creation more extensible. - * Main Supplier computation (v13 requires explicit False definitions) - -13.0.1.2.0 (2020-02-20) -~~~~~~~~~~~~~~~~~~~~~~~ - -* [IMP] Minor changes - (`#468 `_). - - * Planned Orders become fixed on manual creation by default - * Released Quantity becomes readonly - * Add product reference if Planned Order name is not defined on bom explosion - -13.0.1.1.0 (2020-02-21) -~~~~~~~~~~~~~~~~~~~~~~~ - -* [FIX] Minor changes - (`#469 `_). - - * Fix Main supplier computation in multi company - * Drop Triplicated field in search view - - -* [IMP] Minor changes - (`#463 `_). - - * Show supply method on MRP Inventory - * Allow no-MRP users to look into Products - -13.0.1.0.0 (2019-12-18) -~~~~~~~~~~~~~~~~~~~~~~~ - -* [MIG] Migration to v13. - -12.0.1.0.0 (2019-08-05) -~~~~~~~~~~~~~~~~~~~~~~~ - -* [MIG] Migration to v12: - - * Estimates as a forecasting mechanism is moved to a new module - (mrp_multi_level_estimate). - -11.0.3.0.0 (2019-05-22) -~~~~~~~~~~~~~~~~~~~~~~~ - -* [REW/IMP] Rework to include Planned Orders. - (`#365 `_). -* [IMP] Able to procure from a different location than the area's location. - -11.0.2.2.0 (2019-05-02) -~~~~~~~~~~~~~~~~~~~~~~~ - -* [IMP] Able to run MRP only for selected areas. - (`#360 `_). - -11.0.2.1.0 (2019-04-02) -~~~~~~~~~~~~~~~~~~~~~~~ - -* [IMP] Implement *Nbr. Days* functionality to be able to group demand when - generating supply proposals. - (`#345 `_). - -11.0.2.0.0 (2018-11-20) -~~~~~~~~~~~~~~~~~~~~~~~ - -* [REW] Refactor MRP Area. - (`#322 `_): - - * MRP product concept dropped in favor of *Product MRP Area Parameters*. - This allow to set different MRP parameters for the same product in - different areas. - * Menu items reordering. - -11.0.1.1.0 (2018-08-30) -~~~~~~~~~~~~~~~~~~~~~~~ - -* [FIX] Consider *Qty Multiple* on product to propose the quantity to procure. - (`#297 `_) - -11.0.1.0.1 (2018-08-03) -~~~~~~~~~~~~~~~~~~~~~~~ - -* [FIX] User and system locales doesn't break MRP calculation. - (`#290 `_) -* [FIX] Working Hours are now defined only at Warehouse level and displayed - as a related on MRP Areas. - (`#290 `__) - -11.0.1.0.0 (2018-07-09) -~~~~~~~~~~~~~~~~~~~~~~~ - -* Start of the history. diff --git a/mrp_multi_level/readme/USAGE.md b/mrp_multi_level/readme/USAGE.md new file mode 100644 index 000000000..284650ad8 --- /dev/null +++ b/mrp_multi_level/readme/USAGE.md @@ -0,0 +1,12 @@ +To manually run the MRP scheduler: + +1. Go to *Manufacturing \> Operations \> Run MRP Multi Level*. +2. On the wizard click *Run MRP*. + +To launch replenishment orders (moves, purchases, production orders...): + +1. Go to *Manufacturing \> Operations \> MRP Inventory*. +2. Filter with *To procure*. +3. Select multiple records and click on *Action \> Procure* or click + the right hand side gears in any record. +4. On the wizard, check everything is ok and click *Execute*. diff --git a/mrp_multi_level/readme/USAGE.rst b/mrp_multi_level/readme/USAGE.rst deleted file mode 100644 index 6e28dce46..000000000 --- a/mrp_multi_level/readme/USAGE.rst +++ /dev/null @@ -1,12 +0,0 @@ -To manually run the MRP scheduler: - -#. Go to *Manufacturing > Operations > Run MRP Multi Level*. -#. On the wizard click *Run MRP*. - -To launch replenishment orders (moves, purchases, production orders...): - -#. Go to *Manufacturing > Operations > MRP Inventory*. -#. Filter with *To procure*. -#. Select multiple records and click on *Action > Procure* or click the right - hand side gears in any record. -#. On the wizard, check everything is ok and click *Execute*. diff --git a/mrp_multi_level/static/description/index.html b/mrp_multi_level/static/description/index.html index af08f60bd..133beb8f0 100644 --- a/mrp_multi_level/static/description/index.html +++ b/mrp_multi_level/static/description/index.html @@ -1,3 +1,4 @@ + @@ -368,10 +369,10 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:fca6d950241a9b0c6ab31917b79e645627894c15da0bf4e08aeb2d80ef9ec2a5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

-

This module allows you to calculate, based in known inventory, demand, and -supply, and based on parameters set at product variant level, the new -procurements for each product.

+

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

+

This module allows you to calculate, based in known inventory, demand, +and supply, and based on parameters set at product variant level, the +new procurements for each product.

To do this, the calculation starts at top level of the bill of material and explodes this down to the lowest level.

@@ -381,64 +382,38 @@ and explodes this down to the lowest level.

  • Cron job to calculate the MRP demand.
  • Manually calculate the MRP demand.
  • Confirm the calculated MRP demand and create PO’s, or MO’s.
  • -
  • Able to see the products for which action is needed throught Planned Orders.
  • -
  • Integration with Stock Demand Estimates system. -Note: You need to install mrp_multi_level_estimate module.
  • +
  • Able to see the products for which action is needed throught Planned +Orders.
  • +
  • Integration with Stock Demand +Estimates +system. Note: You need to install mrp_multi_level_estimate +module.
  • Table of contents

    +
    -

    MRP Areas

    +

    MRP Areas

    • Go to Manufacturing > Configuration > MRP Areas and define or edit any existing area. You can specify the working hours for every area.
    -

    Product MRP Area Parameters

    +

    Product MRP Area Parameters

      -
    • Go to Manufacturing > Master Data > Product MRP Area Parameters and set -the MRP parameters for a given product and area.
    • +
    • Go to Manufacturing > Master Data > Product MRP Area Parameters and +set the MRP parameters for a given product and area.
    -
    -
    -

    Usage

    +

    Usage

    To manually run the MRP scheduler:

    1. Go to Manufacturing > Operations > Run MRP Multi Level.
    2. @@ -448,33 +423,39 @@ the MRP parameters for a given product and area.
      1. Go to Manufacturing > Operations > MRP Inventory.
      2. Filter with To procure.
      3. -
      4. Select multiple records and click on Action > Procure or click the right -hand side gears in any record.
      5. +
      6. Select multiple records and click on Action > Procure or click the +right hand side gears in any record.
      7. On the wizard, check everything is ok and click Execute.
    -

    Changelog

    +

    Changelog

    +
    +
    -

    13.0.1.5.0 (2020-04-09)

    +

    13.0.1.5.0 (2020-04-09)

    Features

      -
    • Show Run MRP Multi Level menu only to a specific new security group Run MRP Manually. (#492)
    • +
    • Show Run MRP Multi Level menu only to a specific new security group +Run MRP Manually. +(#492)
    -

    13.0.1.4.0 (2020-03-26)

    +

    13.0.1.4.0 (2020-03-26)

    • Add menu entry for planned orders
    • -
    • Add button to navigate from planned orders to linked manufacturing orders
    • +
    • Add button to navigate from planned orders to linked manufacturing +orders
    • Add action to convert planned orders to fixed
    • -
    • When changing the due date in a planned order the release date is recomputed
    • +
    • When changing the due date in a planned order the release date is +recomputed
    -

    13.0.1.3.0 (2020-03-02)

    +

    13.0.1.3.0 (2020-03-02)

    • [IMP] Minor changes” (#470).
        @@ -483,25 +464,27 @@ hand side gears in any record.
      • Link Manufacturing Orders with Planned Orders.
      • Allow Mrp Inventory Procure Wizard to be used from other models.
      • Make MRP Inventory creation more extensible.
      • -
      • Main Supplier computation (v13 requires explicit False definitions)
      • +
      • Main Supplier computation (v13 requires explicit False +definitions)
    -

    13.0.1.2.0 (2020-02-20)

    +

    13.0.1.2.0 (2020-02-20)

    • [IMP] Minor changes (#468).
      • Planned Orders become fixed on manual creation by default
      • Released Quantity becomes readonly
      • -
      • Add product reference if Planned Order name is not defined on bom explosion
      • +
      • Add product reference if Planned Order name is not defined on bom +explosion
    -

    13.0.1.1.0 (2020-02-21)

    +

    13.0.1.1.0 (2020-02-21)

    • [FIX] Minor changes (#469).
        @@ -518,13 +501,13 @@ hand side gears in any record.
    -

    13.0.1.0.0 (2019-12-18)

    +

    13.0.1.0.0 (2019-12-18)

    • [MIG] Migration to v13.
    -

    12.0.1.0.0 (2019-08-05)

    +

    12.0.1.0.0 (2019-08-05)

    • [MIG] Migration to v12:
      • Estimates as a forecasting mechanism is moved to a new module @@ -534,84 +517,85 @@ hand side gears in any record.
    -

    11.0.3.0.0 (2019-05-22)

    +

    11.0.3.0.0 (2019-05-22)

    • [REW/IMP] Rework to include Planned Orders. (#365).
    • -
    • [IMP] Able to procure from a different location than the area’s location.
    • +
    • [IMP] Able to procure from a different location than the area’s +location.
    -

    11.0.2.2.0 (2019-05-02)

    +

    11.0.2.2.0 (2019-05-02)

    • [IMP] Able to run MRP only for selected areas. (#360).
    -

    11.0.2.1.0 (2019-04-02)

    +

    11.0.2.1.0 (2019-04-02)

      -
    • [IMP] Implement Nbr. Days functionality to be able to group demand when -generating supply proposals. +
    • [IMP] Implement Nbr. Days functionality to be able to group demand +when generating supply proposals. (#345).
    -

    11.0.2.0.0 (2018-11-20)

    +

    11.0.2.0.0 (2018-11-20)

    • [REW] Refactor MRP Area. (#322):
        -
      • MRP product concept dropped in favor of Product MRP Area Parameters. -This allow to set different MRP parameters for the same product in -different areas.
      • +
      • MRP product concept dropped in favor of Product MRP Area +Parameters. This allow to set different MRP parameters for the +same product in different areas.
      • Menu items reordering.
    -

    11.0.1.1.0 (2018-08-30)

    +

    11.0.1.1.0 (2018-08-30)

      -
    • [FIX] Consider Qty Multiple on product to propose the quantity to procure. -(#297)
    • +
    • [FIX] Consider Qty Multiple on product to propose the quantity to +procure. (#297)
    -

    11.0.1.0.1 (2018-08-03)

    +

    11.0.1.0.1 (2018-08-03)

    • [FIX] User and system locales doesn’t break MRP calculation. (#290)
    • -
    • [FIX] Working Hours are now defined only at Warehouse level and displayed -as a related on MRP Areas. +
    • [FIX] Working Hours are now defined only at Warehouse level and +displayed as a related on MRP Areas. (#290)
    -

    11.0.1.0.0 (2018-07-09)

    +

    11.0.1.0.0 (2018-07-09)

    • Start of the history.
    -
    -
    -

    Bug Tracker

    +

    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.

    -

    Credits

    +

    Credits

    +
    +
    -

    Authors

    +

    Authors

    • Ucamco
    • ForgeFlow
    -

    Contributors

    +

    Contributors

    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    Odoo Community Association

    OCA, or the Odoo Community Association, is a nonprofit organization whose @@ -631,11 +615,9 @@ mission is to support the collaborative development of Odoo features and promote its widespread use.

    Current maintainers:

    JordiBForgeFlow LoisRForgeFlow ChrisOForgeFlow

    -

    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_multi_level/wizards/mrp_multi_level.py b/mrp_multi_level/wizards/mrp_multi_level.py index 674ef5c2a..8f217009c 100644 --- a/mrp_multi_level/wizards/mrp_multi_level.py +++ b/mrp_multi_level/wizards/mrp_multi_level.py @@ -352,9 +352,7 @@ class MultiLevelMrp(models.TransientModel): products = bom_lines.mapped("product_id") products.write({"llc": llc}) counter = self.env["product.product"].search_count([("llc", "=", llc)]) - log_msg = "Low level code {} finished - Nbr. products: {}".format( - llc, counter - ) + log_msg = f"Low level code {llc} finished - Nbr. products: {counter}" logger.info(log_msg) if llc > llc_recursion_limit: logger.error("Recursion limit reached during LLC calculation.") @@ -514,9 +512,7 @@ class MultiLevelMrp(models.TransientModel): if self._exclude_from_mrp(product_mrp_area.product_id, mrp_area): continue init_counter += 1 - log_msg = "MRP Init: {} - {} ".format( - init_counter, product_mrp_area.display_name - ) + log_msg = f"MRP Init: {init_counter} - {product_mrp_area.display_name} " logger.info(log_msg) self._init_mrp_move(product_mrp_area) logger.info("End MRP initialisation")