[IMP] mrp_multi_level: black, isort, prettier

This commit is contained in:
JasminSForgeFlow
2024-03-12 11:58:23 +05:30
parent 5da03693a2
commit 677bde6b00
15 changed files with 338 additions and 364 deletions

View File

@@ -17,20 +17,20 @@ MRP Multi Level
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3 :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github .. |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 :alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |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 :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png .. |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 :alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
This module allows you to calculate, based in known inventory, demand, and This module allows you to calculate, based in known inventory, demand,
supply, and based on parameters set at product variant level, the new and supply, and based on parameters set at product variant level, the
procurements for each product. new procurements for each product.
To do this, the calculation starts at top level of the bill of material To do this, the calculation starts at top level of the bill of material
and explodes this down to the lowest level. and explodes this down to the lowest level.
@@ -38,13 +38,16 @@ and explodes this down to the lowest level.
Key Features Key Features
------------ ------------
* MRP parameters set by product variant MRP area pairs. - MRP parameters set by product variant MRP area pairs.
* Cron job to calculate the MRP demand. - Cron job to calculate the MRP demand.
* Manually calculate the MRP demand. - Manually calculate the MRP demand.
* Confirm the calculated MRP demand and create PO's, or MO's. - 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. - Able to see the products for which action is needed throught Planned
* Integration with `Stock Demand Estimates <https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_demand_estimate>`_ system. Orders.
Note: You need to install `mrp_multi_level_estimate module <https://github.com/OCA/manufacture/tree/12.0/mrp_multi_level_estimate>`_. - 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>`__.
**Table of contents** **Table of contents**
@@ -55,153 +58,159 @@ Configuration
============= =============
MRP Areas MRP Areas
~~~~~~~~~ ---------
* Go to *Manufacturing > Configuration > MRP Areas* and define or edit - Go to *Manufacturing > Configuration > MRP Areas* and define or edit
any existing area. You can specify the working hours for every area. 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 - Go to *Manufacturing > Master Data > Product MRP Area Parameters* and
the MRP parameters for a given product and area. set the MRP parameters for a given product and area.
Usage Usage
===== =====
To manually run the MRP scheduler: To manually run the MRP scheduler:
#. Go to *Manufacturing > Operations > Run MRP Multi Level*. 1. Go to *Manufacturing > Operations > Run MRP Multi Level*.
#. On the wizard click *Run MRP*. 2. On the wizard click *Run MRP*.
To launch replenishment orders (moves, purchases, production orders...): To launch replenishment orders (moves, purchases, production orders...):
#. Go to *Manufacturing > Operations > MRP Inventory*. 1. Go to *Manufacturing > Operations > MRP Inventory*.
#. Filter with *To procure*. 2. Filter with *To procure*.
#. Select multiple records and click on *Action > Procure* or click the right 3. Select multiple records and click on *Action > Procure* or click the
hand side gears in any record. right hand side gears in any record.
#. On the wizard, check everything is ok and click *Execute*. 4. 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** **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>`_) - 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) 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 menu entry for planned orders
* Add action to convert planned orders to fixed - Add button to navigate from planned orders to linked manufacturing
* When changing the due date in a planned order the release date is recomputed 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) 13.0.1.3.0 (2020-03-02)
~~~~~~~~~~~~~~~~~~~~~~~ -----------------------
* [IMP] Minor changes" - [IMP] Minor changes"
(`#470 <https://github.com/OCA/manufacture/pull/470>`_). (`#470 <https://github.com/OCA/manufacture/pull/470>`__).
* Planned Order release and due date become required. - Planned Order release and due date become required.
* Add button to Product MRP Area to update MOQ from Supplier Info. - Add button to Product MRP Area to update MOQ from Supplier Info.
* Link Manufacturing Orders with Planned Orders. - Link Manufacturing Orders with Planned Orders.
* Allow Mrp Inventory Procure Wizard to be used from other models. - Allow Mrp Inventory Procure Wizard to be used from other models.
* Make MRP Inventory creation more extensible. - 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 - [IMP] Minor changes
(`#468 <https://github.com/OCA/manufacture/pull/468>`_). (`#468 <https://github.com/OCA/manufacture/pull/468>`__).
* Planned Orders become fixed on manual creation by default - Planned Orders become fixed on manual creation by default
* Released Quantity becomes readonly - 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 - [FIX] Minor changes
(`#469 <https://github.com/OCA/manufacture/pull/469>`_). (`#469 <https://github.com/OCA/manufacture/pull/469>`__).
* Fix Main supplier computation in multi company - Fix Main supplier computation in multi company
* Drop Triplicated field in search view - Drop Triplicated field in search view
- [IMP] Minor changes
(`#463 <https://github.com/OCA/manufacture/pull/463>`__).
* [IMP] Minor changes - Show supply method on MRP Inventory
(`#463 <https://github.com/OCA/manufacture/pull/463>`_). - 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) 13.0.1.0.0 (2019-12-18)
~~~~~~~~~~~~~~~~~~~~~~~ -----------------------
* [MIG] Migration to v13. - [MIG] Migration to v13.
12.0.1.0.0 (2019-08-05) 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 - Estimates as a forecasting mechanism is moved to a new module
(mrp_multi_level_estimate). (mrp_multi_level_estimate).
11.0.3.0.0 (2019-05-22) 11.0.3.0.0 (2019-05-22)
~~~~~~~~~~~~~~~~~~~~~~~ -----------------------
* [REW/IMP] Rework to include Planned Orders. - [REW/IMP] Rework to include Planned Orders.
(`#365 <https://github.com/OCA/manufacture/pull/365>`_). (`#365 <https://github.com/OCA/manufacture/pull/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. - [IMP] Able to run MRP only for selected areas.
(`#360 <https://github.com/OCA/manufacture/pull/360>`_). (`#360 <https://github.com/OCA/manufacture/pull/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 - [IMP] Implement *Nbr. Days* functionality to be able to group demand
generating supply proposals. when generating supply proposals.
(`#345 <https://github.com/OCA/manufacture/pull/345>`_). (`#345 <https://github.com/OCA/manufacture/pull/345>`__).
11.0.2.0.0 (2018-11-20) 11.0.2.0.0 (2018-11-20)
~~~~~~~~~~~~~~~~~~~~~~~ -----------------------
* [REW] Refactor MRP Area. - [REW] Refactor MRP Area.
(`#322 <https://github.com/OCA/manufacture/pull/322>`_): (`#322 <https://github.com/OCA/manufacture/pull/322>`__):
* MRP product concept dropped in favor of *Product MRP Area Parameters*. - MRP product concept dropped in favor of *Product MRP Area
This allow to set different MRP parameters for the same product in Parameters*. This allow to set different MRP parameters for the
different areas. same product in different areas.
* Menu items reordering. - 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. - [FIX] Consider *Qty Multiple* on product to propose the quantity to
(`#297 <https://github.com/OCA/manufacture/pull/297>`_) procure. (`#297 <https://github.com/OCA/manufacture/pull/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. - [FIX] User and system locales doesn't break MRP calculation.
(`#290 <https://github.com/OCA/manufacture/pull/290>`_) (`#290 <https://github.com/OCA/manufacture/pull/290>`__)
* [FIX] Working Hours are now defined only at Warehouse level and displayed - [FIX] Working Hours are now defined only at Warehouse level and
as a related on MRP Areas. displayed as a related on MRP Areas.
(`#290 <https://github.com/OCA/manufacture/pull/290>`__) (`#290 <https://github.com/OCA/manufacture/pull/290>`__)
11.0.1.0.0 (2018-07-09) 11.0.1.0.0 (2018-07-09)
~~~~~~~~~~~~~~~~~~~~~~~ -----------------------
* Start of the history. - Start of the history.
Bug Tracker Bug Tracker
=========== ===========
@@ -209,7 +218,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/manufacture/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/manufacture/issues>`_.
In case of trouble, please check there if your issue has already been reported. 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 If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_multi_level%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. `feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_multi_level%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues. Do not contact contributors directly about support or help with technical issues.
@@ -217,24 +226,24 @@ Credits
======= =======
Authors Authors
~~~~~~~ -------
* Ucamco * Ucamco
* ForgeFlow * ForgeFlow
Contributors Contributors
~~~~~~~~~~~~ ------------
* Wim Audenaert <wim.audenaert@ucamco.com> - Wim Audenaert <wim.audenaert@ucamco.com>
* Jordi Ballester <jordi.ballester@forgeflow.com> - Jordi Ballester <jordi.ballester@forgeflow.com>
* Lois Rilo <lois.rilo@forgeflow.com> - Lois Rilo <lois.rilo@forgeflow.com>
* Héctor Villarreal <hector.villarreal@forgeflow.com> - Héctor Villarreal <hector.villarreal@forgeflow.com>
* Christopher Ormaza <chris.ormaza@forgeflow.com> - Christopher Ormaza <chris.ormaza@forgeflow.com>
* Joan Sisquella <joan.sisquella@forgeflow.com> - Joan Sisquella <joan.sisquella@forgeflow.com>
* Alexandre Fayolle <alexandre.fayolle@camptocamp.com> - Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
Maintainers Maintainers
~~~~~~~~~~~ -----------
This module is maintained by the OCA. This module is maintained by the OCA.
@@ -260,6 +269,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-JordiBForgeFlow| |maintainer-LoisRForgeFlow| |maintainer-ChrisOForgeFlow| |maintainer-JordiBForgeFlow| |maintainer-LoisRForgeFlow| |maintainer-ChrisOForgeFlow|
This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/16.0/mrp_multi_level>`_ project on GitHub. This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/17.0/mrp_multi_level>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -131,7 +131,7 @@ class ProductMRPArea(models.Model):
return [ return [
( (
area.id, 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 for area in self
] ]

View File

@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"

View File

@@ -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.

View File

@@ -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.

View File

@@ -0,0 +1,7 @@
- Wim Audenaert \<<wim.audenaert@ucamco.com>\>
- Jordi Ballester \<<jordi.ballester@forgeflow.com>\>
- Lois Rilo \<<lois.rilo@forgeflow.com>\>
- Héctor Villarreal \<<hector.villarreal@forgeflow.com>\>
- Christopher Ormaza \<<chris.ormaza@forgeflow.com>\>
- Joan Sisquella \<<joan.sisquella@forgeflow.com>\>
- Alexandre Fayolle \<<alexandre.fayolle@camptocamp.com>\>

View File

@@ -1,7 +0,0 @@
* Wim Audenaert <wim.audenaert@ucamco.com>
* Jordi Ballester <jordi.ballester@forgeflow.com>
* Lois Rilo <lois.rilo@forgeflow.com>
* Héctor Villarreal <hector.villarreal@forgeflow.com>
* Christopher Ormaza <chris.ormaza@forgeflow.com>
* Joan Sisquella <joan.sisquella@forgeflow.com>
* Alexandre Fayolle <alexandre.fayolle@camptocamp.com>

View File

@@ -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).

View File

@@ -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 <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>`_.

View File

@@ -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.

View File

@@ -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 <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.

View File

@@ -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*.

View File

@@ -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*.

View File

@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
@@ -368,10 +369,10 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:fca6d950241a9b0c6ab31917b79e645627894c15da0bf4e08aeb2d80ef9ec2a5 !! source digest: sha256:fca6d950241a9b0c6ab31917b79e645627894c15da0bf4e08aeb2d80ef9ec2a5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/manufacture/tree/16.0/mrp_multi_level"><img alt="OCA/manufacture" src="https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_multi_level"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/manufacture&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p> <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/manufacture/tree/17.0/mrp_multi_level"><img alt="OCA/manufacture" src="https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/manufacture-17-0/manufacture-17-0-mrp_multi_level"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/manufacture&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to calculate, based in known inventory, demand, and <p>This module allows you to calculate, based in known inventory, demand,
supply, and based on parameters set at product variant level, the new and supply, and based on parameters set at product variant level, the
procurements for each product.</p> new procurements for each product.</p>
<p>To do this, the calculation starts at top level of the bill of material <p>To do this, the calculation starts at top level of the bill of material
and explodes this down to the lowest level.</p> and explodes this down to the lowest level.</p>
<div class="section" id="key-features"> <div class="section" id="key-features">
@@ -381,64 +382,38 @@ and explodes this down to the lowest level.</p>
<li>Cron job to calculate the MRP demand.</li> <li>Cron job to calculate the MRP demand.</li>
<li>Manually calculate the MRP demand.</li> <li>Manually calculate the MRP demand.</li>
<li>Confirm the calculated MRP demand and create POs, or MOs.</li> <li>Confirm the calculated MRP demand and create POs, or MOs.</li>
<li>Able to see the products for which action is needed throught Planned Orders.</li> <li>Able to see the products for which action is needed throught Planned
<li>Integration with <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_demand_estimate">Stock Demand Estimates</a> system. Orders.</li>
Note: You need to install <a class="reference external" href="https://github.com/OCA/manufacture/tree/12.0/mrp_multi_level_estimate">mrp_multi_level_estimate module</a>.</li> <li>Integration with <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_demand_estimate">Stock Demand
Estimates</a>
system. Note: You need to install <a class="reference external" href="https://github.com/OCA/manufacture/tree/12.0/mrp_multi_level_estimate">mrp_multi_level_estimate
module</a>.</li>
</ul> </ul>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
<ul class="simple"> <ul class="simple">
<li><a class="reference internal" href="#configuration" id="toc-entry-1">Configuration</a><ul> <li><a class="reference internal" href="#configuration" id="toc-entry-1">Configuration</a></li>
<li><a class="reference internal" href="#mrp-areas" id="toc-entry-2">MRP Areas</a></li>
<li><a class="reference internal" href="#product-mrp-area-parameters" id="toc-entry-3">Product MRP Area Parameters</a></li>
</ul>
</li>
<li><a class="reference internal" href="#usage" id="toc-entry-4">Usage</a></li>
<li><a class="reference internal" href="#changelog" id="toc-entry-5">Changelog</a><ul>
<li><a class="reference internal" href="#section-1" id="toc-entry-6">13.0.1.5.0 (2020-04-09)</a></li>
<li><a class="reference internal" href="#section-2" id="toc-entry-7">13.0.1.4.0 (2020-03-26)</a></li>
<li><a class="reference internal" href="#section-3" id="toc-entry-8">13.0.1.3.0 (2020-03-02)</a></li>
<li><a class="reference internal" href="#section-4" id="toc-entry-9">13.0.1.2.0 (2020-02-20)</a></li>
<li><a class="reference internal" href="#section-5" id="toc-entry-10">13.0.1.1.0 (2020-02-21)</a></li>
<li><a class="reference internal" href="#section-6" id="toc-entry-11">13.0.1.0.0 (2019-12-18)</a></li>
<li><a class="reference internal" href="#section-7" id="toc-entry-12">12.0.1.0.0 (2019-08-05)</a></li>
<li><a class="reference internal" href="#section-8" id="toc-entry-13">11.0.3.0.0 (2019-05-22)</a></li>
<li><a class="reference internal" href="#section-9" id="toc-entry-14">11.0.2.2.0 (2019-05-02)</a></li>
<li><a class="reference internal" href="#section-10" id="toc-entry-15">11.0.2.1.0 (2019-04-02)</a></li>
<li><a class="reference internal" href="#section-11" id="toc-entry-16">11.0.2.0.0 (2018-11-20)</a></li>
<li><a class="reference internal" href="#section-12" id="toc-entry-17">11.0.1.1.0 (2018-08-30)</a></li>
<li><a class="reference internal" href="#section-13" id="toc-entry-18">11.0.1.0.1 (2018-08-03)</a></li>
<li><a class="reference internal" href="#section-14" id="toc-entry-19">11.0.1.0.0 (2018-07-09)</a></li>
</ul>
</li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-20">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-21">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-22">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-23">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-24">Maintainers</a></li>
</ul>
</li>
</ul> </ul>
</div> </div>
<div class="section" id="configuration"> <div class="section" id="configuration">
<h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2> <h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2>
</div>
</div>
<div class="section" id="mrp-areas"> <div class="section" id="mrp-areas">
<h3><a class="toc-backref" href="#toc-entry-2">MRP Areas</a></h3> <h1>MRP Areas</h1>
<ul class="simple"> <ul class="simple">
<li>Go to <em>Manufacturing &gt; Configuration &gt; MRP Areas</em> and define or edit <li>Go to <em>Manufacturing &gt; Configuration &gt; MRP Areas</em> and define or edit
any existing area. You can specify the working hours for every area.</li> any existing area. You can specify the working hours for every area.</li>
</ul> </ul>
</div> </div>
<div class="section" id="product-mrp-area-parameters"> <div class="section" id="product-mrp-area-parameters">
<h3><a class="toc-backref" href="#toc-entry-3">Product MRP Area Parameters</a></h3> <h1>Product MRP Area Parameters</h1>
<ul class="simple"> <ul class="simple">
<li>Go to <em>Manufacturing &gt; Master Data &gt; Product MRP Area Parameters</em> and set <li>Go to <em>Manufacturing &gt; Master Data &gt; Product MRP Area Parameters</em> and
the MRP parameters for a given product and area.</li> set the MRP parameters for a given product and area.</li>
</ul> </ul>
</div>
</div>
<div class="section" id="usage"> <div class="section" id="usage">
<h2><a class="toc-backref" href="#toc-entry-4">Usage</a></h2> <h2>Usage</h2>
<p>To manually run the MRP scheduler:</p> <p>To manually run the MRP scheduler:</p>
<ol class="arabic simple"> <ol class="arabic simple">
<li>Go to <em>Manufacturing &gt; Operations &gt; Run MRP Multi Level</em>.</li> <li>Go to <em>Manufacturing &gt; Operations &gt; Run MRP Multi Level</em>.</li>
@@ -448,33 +423,39 @@ the MRP parameters for a given product and area.</li>
<ol class="arabic simple"> <ol class="arabic simple">
<li>Go to <em>Manufacturing &gt; Operations &gt; MRP Inventory</em>.</li> <li>Go to <em>Manufacturing &gt; Operations &gt; MRP Inventory</em>.</li>
<li>Filter with <em>To procure</em>.</li> <li>Filter with <em>To procure</em>.</li>
<li>Select multiple records and click on <em>Action &gt; Procure</em> or click the right <li>Select multiple records and click on <em>Action &gt; Procure</em> or click the
hand side gears in any record.</li> right hand side gears in any record.</li>
<li>On the wizard, check everything is ok and click <em>Execute</em>.</li> <li>On the wizard, check everything is ok and click <em>Execute</em>.</li>
</ol> </ol>
</div> </div>
<div class="section" id="changelog"> <div class="section" id="changelog">
<h2><a class="toc-backref" href="#toc-entry-5">Changelog</a></h2> <h2>Changelog</h2>
</div>
</div>
<div class="section" id="section-1"> <div class="section" id="section-1">
<h3><a class="toc-backref" href="#toc-entry-6">13.0.1.5.0 (2020-04-09)</a></h3> <h1>13.0.1.5.0 (2020-04-09)</h1>
<p><strong>Features</strong></p> <p><strong>Features</strong></p>
<ul class="simple"> <ul class="simple">
<li>Show <em>Run MRP Multi Level</em> menu only to a specific new security group <em>Run MRP Manually</em>. (<a class="reference external" href="https://github.com/OCA/manufacture/issues/492">#492</a>)</li> <li>Show <em>Run MRP Multi Level</em> menu only to a specific new security group
<em>Run MRP Manually</em>.
(<a class="reference external" href="https://github.com/OCA/manufacture/issues/492">#492</a>)</li>
</ul> </ul>
</div> </div>
<div class="section" id="section-2"> <div class="section" id="section-2">
<h3><a class="toc-backref" href="#toc-entry-7">13.0.1.4.0 (2020-03-26)</a></h3> <h1>13.0.1.4.0 (2020-03-26)</h1>
<blockquote> <blockquote>
<ul class="simple"> <ul class="simple">
<li>Add menu entry for planned orders</li> <li>Add menu entry for planned orders</li>
<li>Add button to navigate from planned orders to linked manufacturing orders</li> <li>Add button to navigate from planned orders to linked manufacturing
orders</li>
<li>Add action to convert planned orders to fixed</li> <li>Add action to convert planned orders to fixed</li>
<li>When changing the due date in a planned order the release date is recomputed</li> <li>When changing the due date in a planned order the release date is
recomputed</li>
</ul> </ul>
</blockquote> </blockquote>
</div> </div>
<div class="section" id="section-3"> <div class="section" id="section-3">
<h3><a class="toc-backref" href="#toc-entry-8">13.0.1.3.0 (2020-03-02)</a></h3> <h1>13.0.1.3.0 (2020-03-02)</h1>
<ul class="simple"> <ul class="simple">
<li>[IMP] Minor changes” <li>[IMP] Minor changes”
(<a class="reference external" href="https://github.com/OCA/manufacture/pull/470">#470</a>).<ul> (<a class="reference external" href="https://github.com/OCA/manufacture/pull/470">#470</a>).<ul>
@@ -483,25 +464,27 @@ hand side gears in any record.</li>
<li>Link Manufacturing Orders with Planned Orders.</li> <li>Link Manufacturing Orders with Planned Orders.</li>
<li>Allow Mrp Inventory Procure Wizard to be used from other models.</li> <li>Allow Mrp Inventory Procure Wizard to be used from other models.</li>
<li>Make MRP Inventory creation more extensible.</li> <li>Make MRP Inventory creation more extensible.</li>
<li>Main Supplier computation (v13 requires explicit False definitions)</li> <li>Main Supplier computation (v13 requires explicit False
definitions)</li>
</ul> </ul>
</li> </li>
</ul> </ul>
</div> </div>
<div class="section" id="section-4"> <div class="section" id="section-4">
<h3><a class="toc-backref" href="#toc-entry-9">13.0.1.2.0 (2020-02-20)</a></h3> <h1>13.0.1.2.0 (2020-02-20)</h1>
<ul class="simple"> <ul class="simple">
<li>[IMP] Minor changes <li>[IMP] Minor changes
(<a class="reference external" href="https://github.com/OCA/manufacture/pull/468">#468</a>).<ul> (<a class="reference external" href="https://github.com/OCA/manufacture/pull/468">#468</a>).<ul>
<li>Planned Orders become fixed on manual creation by default</li> <li>Planned Orders become fixed on manual creation by default</li>
<li>Released Quantity becomes readonly</li> <li>Released Quantity becomes readonly</li>
<li>Add product reference if Planned Order name is not defined on bom explosion</li> <li>Add product reference if Planned Order name is not defined on bom
explosion</li>
</ul> </ul>
</li> </li>
</ul> </ul>
</div> </div>
<div class="section" id="section-5"> <div class="section" id="section-5">
<h3><a class="toc-backref" href="#toc-entry-10">13.0.1.1.0 (2020-02-21)</a></h3> <h1>13.0.1.1.0 (2020-02-21)</h1>
<ul class="simple"> <ul class="simple">
<li>[FIX] Minor changes <li>[FIX] Minor changes
(<a class="reference external" href="https://github.com/OCA/manufacture/pull/469">#469</a>).<ul> (<a class="reference external" href="https://github.com/OCA/manufacture/pull/469">#469</a>).<ul>
@@ -518,13 +501,13 @@ hand side gears in any record.</li>
</ul> </ul>
</div> </div>
<div class="section" id="section-6"> <div class="section" id="section-6">
<h3><a class="toc-backref" href="#toc-entry-11">13.0.1.0.0 (2019-12-18)</a></h3> <h1>13.0.1.0.0 (2019-12-18)</h1>
<ul class="simple"> <ul class="simple">
<li>[MIG] Migration to v13.</li> <li>[MIG] Migration to v13.</li>
</ul> </ul>
</div> </div>
<div class="section" id="section-7"> <div class="section" id="section-7">
<h3><a class="toc-backref" href="#toc-entry-12">12.0.1.0.0 (2019-08-05)</a></h3> <h1>12.0.1.0.0 (2019-08-05)</h1>
<ul class="simple"> <ul class="simple">
<li>[MIG] Migration to v12:<ul> <li>[MIG] Migration to v12:<ul>
<li>Estimates as a forecasting mechanism is moved to a new module <li>Estimates as a forecasting mechanism is moved to a new module
@@ -534,84 +517,85 @@ hand side gears in any record.</li>
</ul> </ul>
</div> </div>
<div class="section" id="section-8"> <div class="section" id="section-8">
<h3><a class="toc-backref" href="#toc-entry-13">11.0.3.0.0 (2019-05-22)</a></h3> <h1>11.0.3.0.0 (2019-05-22)</h1>
<ul class="simple"> <ul class="simple">
<li>[REW/IMP] Rework to include Planned Orders. <li>[REW/IMP] Rework to include Planned Orders.
(<a class="reference external" href="https://github.com/OCA/manufacture/pull/365">#365</a>).</li> (<a class="reference external" href="https://github.com/OCA/manufacture/pull/365">#365</a>).</li>
<li>[IMP] Able to procure from a different location than the areas location.</li> <li>[IMP] Able to procure from a different location than the areas
location.</li>
</ul> </ul>
</div> </div>
<div class="section" id="section-9"> <div class="section" id="section-9">
<h3><a class="toc-backref" href="#toc-entry-14">11.0.2.2.0 (2019-05-02)</a></h3> <h1>11.0.2.2.0 (2019-05-02)</h1>
<ul class="simple"> <ul class="simple">
<li>[IMP] Able to run MRP only for selected areas. <li>[IMP] Able to run MRP only for selected areas.
(<a class="reference external" href="https://github.com/OCA/manufacture/pull/360">#360</a>).</li> (<a class="reference external" href="https://github.com/OCA/manufacture/pull/360">#360</a>).</li>
</ul> </ul>
</div> </div>
<div class="section" id="section-10"> <div class="section" id="section-10">
<h3><a class="toc-backref" href="#toc-entry-15">11.0.2.1.0 (2019-04-02)</a></h3> <h1>11.0.2.1.0 (2019-04-02)</h1>
<ul class="simple"> <ul class="simple">
<li>[IMP] Implement <em>Nbr. Days</em> functionality to be able to group demand when <li>[IMP] Implement <em>Nbr. Days</em> functionality to be able to group demand
generating supply proposals. when generating supply proposals.
(<a class="reference external" href="https://github.com/OCA/manufacture/pull/345">#345</a>).</li> (<a class="reference external" href="https://github.com/OCA/manufacture/pull/345">#345</a>).</li>
</ul> </ul>
</div> </div>
<div class="section" id="section-11"> <div class="section" id="section-11">
<h3><a class="toc-backref" href="#toc-entry-16">11.0.2.0.0 (2018-11-20)</a></h3> <h1>11.0.2.0.0 (2018-11-20)</h1>
<ul class="simple"> <ul class="simple">
<li>[REW] Refactor MRP Area. <li>[REW] Refactor MRP Area.
(<a class="reference external" href="https://github.com/OCA/manufacture/pull/322">#322</a>):<ul> (<a class="reference external" href="https://github.com/OCA/manufacture/pull/322">#322</a>):<ul>
<li>MRP product concept dropped in favor of <em>Product MRP Area Parameters</em>. <li>MRP product concept dropped in favor of <em>Product MRP Area
This allow to set different MRP parameters for the same product in Parameters</em>. This allow to set different MRP parameters for the
different areas.</li> same product in different areas.</li>
<li>Menu items reordering.</li> <li>Menu items reordering.</li>
</ul> </ul>
</li> </li>
</ul> </ul>
</div> </div>
<div class="section" id="section-12"> <div class="section" id="section-12">
<h3><a class="toc-backref" href="#toc-entry-17">11.0.1.1.0 (2018-08-30)</a></h3> <h1>11.0.1.1.0 (2018-08-30)</h1>
<ul class="simple"> <ul class="simple">
<li>[FIX] Consider <em>Qty Multiple</em> on product to propose the quantity to procure. <li>[FIX] Consider <em>Qty Multiple</em> on product to propose the quantity to
(<a class="reference external" href="https://github.com/OCA/manufacture/pull/297">#297</a>)</li> procure. (<a class="reference external" href="https://github.com/OCA/manufacture/pull/297">#297</a>)</li>
</ul> </ul>
</div> </div>
<div class="section" id="section-13"> <div class="section" id="section-13">
<h3><a class="toc-backref" href="#toc-entry-18">11.0.1.0.1 (2018-08-03)</a></h3> <h1>11.0.1.0.1 (2018-08-03)</h1>
<ul class="simple"> <ul class="simple">
<li>[FIX] User and system locales doesnt break MRP calculation. <li>[FIX] User and system locales doesnt break MRP calculation.
(<a class="reference external" href="https://github.com/OCA/manufacture/pull/290">#290</a>)</li> (<a class="reference external" href="https://github.com/OCA/manufacture/pull/290">#290</a>)</li>
<li>[FIX] Working Hours are now defined only at Warehouse level and displayed <li>[FIX] Working Hours are now defined only at Warehouse level and
as a related on MRP Areas. displayed as a related on MRP Areas.
(<a class="reference external" href="https://github.com/OCA/manufacture/pull/290">#290</a>)</li> (<a class="reference external" href="https://github.com/OCA/manufacture/pull/290">#290</a>)</li>
</ul> </ul>
</div> </div>
<div class="section" id="section-14"> <div class="section" id="section-14">
<h3><a class="toc-backref" href="#toc-entry-19">11.0.1.0.0 (2018-07-09)</a></h3> <h1>11.0.1.0.0 (2018-07-09)</h1>
<ul class="simple"> <ul class="simple">
<li>Start of the history.</li> <li>Start of the history.</li>
</ul> </ul>
</div>
</div>
<div class="section" id="bug-tracker"> <div class="section" id="bug-tracker">
<h2><a class="toc-backref" href="#toc-entry-20">Bug Tracker</a></h2> <h2>Bug Tracker</h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/manufacture/issues">GitHub Issues</a>. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/manufacture/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported. 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 If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_multi_level%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <a class="reference external" href="https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_multi_level%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
<h2><a class="toc-backref" href="#toc-entry-21">Credits</a></h2> <h2>Credits</h2>
</div>
</div>
<div class="section" id="authors"> <div class="section" id="authors">
<h3><a class="toc-backref" href="#toc-entry-22">Authors</a></h3> <h1>Authors</h1>
<ul class="simple"> <ul class="simple">
<li>Ucamco</li> <li>Ucamco</li>
<li>ForgeFlow</li> <li>ForgeFlow</li>
</ul> </ul>
</div> </div>
<div class="section" id="contributors"> <div class="section" id="contributors">
<h3><a class="toc-backref" href="#toc-entry-23">Contributors</a></h3> <h1>Contributors</h1>
<ul class="simple"> <ul class="simple">
<li>Wim Audenaert &lt;<a class="reference external" href="mailto:wim.audenaert&#64;ucamco.com">wim.audenaert&#64;ucamco.com</a>&gt;</li> <li>Wim Audenaert &lt;<a class="reference external" href="mailto:wim.audenaert&#64;ucamco.com">wim.audenaert&#64;ucamco.com</a>&gt;</li>
<li>Jordi Ballester &lt;<a class="reference external" href="mailto:jordi.ballester&#64;forgeflow.com">jordi.ballester&#64;forgeflow.com</a>&gt;</li> <li>Jordi Ballester &lt;<a class="reference external" href="mailto:jordi.ballester&#64;forgeflow.com">jordi.ballester&#64;forgeflow.com</a>&gt;</li>
@@ -623,7 +607,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
</ul> </ul>
</div> </div>
<div class="section" id="maintainers"> <div class="section" id="maintainers">
<h3><a class="toc-backref" href="#toc-entry-24">Maintainers</a></h3> <h1>Maintainers</h1>
<p>This module is maintained by the OCA.</p> <p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose <p>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.</p> promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/JordiBForgeFlow"><img alt="JordiBForgeFlow" src="https://github.com/JordiBForgeFlow.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/LoisRForgeFlow"><img alt="LoisRForgeFlow" src="https://github.com/LoisRForgeFlow.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/ChrisOForgeFlow"><img alt="ChrisOForgeFlow" src="https://github.com/ChrisOForgeFlow.png?size=40px" /></a></p> <p><a class="reference external image-reference" href="https://github.com/JordiBForgeFlow"><img alt="JordiBForgeFlow" src="https://github.com/JordiBForgeFlow.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/LoisRForgeFlow"><img alt="LoisRForgeFlow" src="https://github.com/LoisRForgeFlow.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/ChrisOForgeFlow"><img alt="ChrisOForgeFlow" src="https://github.com/ChrisOForgeFlow.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/manufacture/tree/16.0/mrp_multi_level">OCA/manufacture</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/manufacture/tree/17.0/mrp_multi_level">OCA/manufacture</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div> </div>
</div> </div>
</div>
</div>
</body> </body>
</html> </html>

View File

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