Commit Graph

285 Commits

Author SHA1 Message Date
Matt Taylor
9e8a5aeed9 [FIX] mrp_multi_level: check for variant bom
fixes #1366

Using the _bom_find() method, we get the BOM with lowest sequence, whether it's a variant
BOM or a template BOM (no product_id).
2024-12-04 09:42:26 +05:30
Weblate
9236e431ef Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: manufacture-17.0/manufacture-17.0-mrp_multi_level
Translate-URL: https://translation.odoo-community.org/projects/manufacture-17-0/manufacture-17-0-mrp_multi_level/
2024-12-04 09:42:26 +05:30
OCA-git-bot
831bd56533 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
oca-ci
54a12b22f9 [UPD] Update mrp_multi_level.pot 2024-12-04 09:42:26 +05:30
Matt Taylor
c850eb0bb5 [FIX] mrp_multi_level: fix kit/phantom planning
fixes #1362

Ignoring qty_available for phantom products prevents double counting the
qty_available of components.

Creating planned orders for phantom products is simpler than recursively
exploding phantom BOMs. This also makes it easier to analyze the planning data
generated by the MRP calculation.
2024-12-04 09:42:26 +05:30
OCA-git-bot
34cc2cccd7 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
Matt Taylor
e5d81dc0ee [IMP] mrp_multi_level: mrp cleanup performance
- Index the planned_order_id column on mrp.production model
- Delete from mrp.planned.order before deleting from mrp.inventory
2024-12-04 09:42:26 +05:30
OCA-git-bot
ed97212305 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
Lois Rilo
e6a953ebd9 [IMP] mrp_multi_level: better logs during calculation
* Explicitly log which area and LLC is being computed.
* Correct LLC being logged.
2024-12-04 09:42:26 +05:30
OCA-git-bot
3f9851d979 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
JordiMForgeFlow
aff2a31688 [IMP] mrp_multi_level: hook for method to get rule 2024-12-04 09:42:26 +05:30
OCA-git-bot
efc00311ab [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
Jordi Ballester Alomar
020ec886dd [IMP] mrp_multi_level: add hooks to improve extensibility 2024-12-04 09:42:26 +05:30
OCA-git-bot
d82d47509b [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
JordiMForgeFlow
6105928a35 [IMP] mrp_multi_level: fix typo 2024-12-04 09:42:26 +05:30
OCA-git-bot
1602fd519b [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
JordiMForgeFlow
79d99a6114 [IMP] mrp_multi_level: use area from component in the explosion vals 2024-12-04 09:42:26 +05:30
mymage
77695cda9f Translated using Weblate (Italian)
Currently translated at 100.0% (169 of 169 strings)

Translation: manufacture-17.0/manufacture-17.0-mrp_multi_level
Translate-URL: https://translation.odoo-community.org/projects/manufacture-17-0/manufacture-17-0-mrp_multi_level/it/
2024-12-04 09:42:26 +05:30
Weblate
eac6c2d767 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: manufacture-17.0/manufacture-17.0-mrp_multi_level
Translate-URL: https://translation.odoo-community.org/projects/manufacture-17-0/manufacture-17-0-mrp_multi_level/
2024-12-04 09:42:26 +05:30
OCA-git-bot
8de5ebdd36 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
oca-ci
899287c5c1 [UPD] Update mrp_multi_level.pot 2024-12-04 09:42:26 +05:30
AlexPForgeFlow
1ba1af2599 [IMP] mrp_multi_level: add MRP Area smart button on stock locations 2024-12-04 09:42:26 +05:30
OCA-git-bot
f387d57b82 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
Pedro M. Baeza
4b87c03691 [FIX] mrp_multi_level: Line too long 2024-12-04 09:42:26 +05:30
OCA-git-bot
2ad3aeda21 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
oca-ci
ba48a45a54 [UPD] Update mrp_multi_level.pot 2024-12-04 09:42:26 +05:30
JasminSForgeFlow
995e752a6e [MIG] mrp_multi_level: Migration to 17.0 2024-12-04 09:42:26 +05:30
JasminSForgeFlow
677bde6b00 [IMP] mrp_multi_level: black, isort, prettier 2024-12-04 09:42:26 +05:30
mymage
5da03693a2 Translated using Weblate (Italian)
Currently translated at 100.0% (170 of 170 strings)

Translation: manufacture-16.0/manufacture-16.0-mrp_multi_level
Translate-URL: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_multi_level/it/
2024-12-04 09:42:26 +05:30
OCA-git-bot
fe717f14f4 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
oca-ci
f8ca24984e [UPD] Update mrp_multi_level.pot 2024-12-04 09:42:26 +05:30
BernatPForgeFlow
57cba495f0 [FIX] mrp_multi_level: Prioritize safety stock with mrp moves today
If I have 0 units, my safety stock is 5 units and today I have a supply for 10 units, the procurement recommendation should be 0 units
2024-12-04 09:42:26 +05:30
OCA-git-bot
581c1ce5cd [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
oca-ci
9b3ed07276 [UPD] Update mrp_multi_level.pot 2024-12-04 09:42:26 +05:30
Lois Rilo
7d740b502f [FIX] mrp_multi_level: wrong safety stock intial order in grouped demand mode
Three tests cases modelize the issues being solved.
2024-12-04 09:42:26 +05:30
OCA-git-bot
53c9314f91 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
Lois Rilo
6b5aca3abe [FIX] mrp_multi_level: ariable 'move' referenced before assignment 2024-12-04 09:42:26 +05:30
Weblate
e6c2499077 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: manufacture-16.0/manufacture-16.0-mrp_multi_level
Translate-URL: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_multi_level/
2024-12-04 09:42:26 +05:30
OCA-git-bot
d5015c2250 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
oca-ci
14c69e1c50 [UPD] Update mrp_multi_level.pot 2024-12-04 09:42:26 +05:30
Lois Rilo
f4b6eb4dca [IMP] mrp_multi_level: add date to default grouping filters
It is the default colum for pivot view.
2024-12-04 09:42:26 +05:30
OCA-git-bot
8ebeaad9de [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
Lois Rilo
4c5968f545 [FIX] mrp_multi_level: starting qty on hand wrong when using lots
Unify the way to get the starting on hand whenever needed in MRP
calculations.
2024-12-04 09:42:26 +05:30
OCA-git-bot
5fac17701f [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
oca-ci
8d31d055bf [UPD] Update mrp_multi_level.pot 2024-12-04 09:42:26 +05:30
Alexandre Fayolle
33329e0d5f [IMP] mrp_multi_level: safety stock
When a product has a safety stock in an area, and the current stock is
below safety, but there are moves in the future, mrp_multi_level does
not compute an immediate action to get back to the safety stock.

This PR changes this behavior: when the mrp_moves are considered, before
processing the first move in the future, we insert a resupply action to
rebuild the safety stock.

We also add some refactoring in the process:

* add extension point on the wizard to compute the quantity to reorder
(so we can choose in a separate module whether to rebuild safety stock
or not)
* add extension point on the wizard to get the date at which the safety
stock must be rebuilt (defaults to today)
* make the code of the wizard symetric between the groupes and non
grouped configuration
2024-12-04 09:42:26 +05:30
mymage
2bbef8657c Translated using Weblate (Italian)
Currently translated at 100.0% (170 of 170 strings)

Translation: manufacture-16.0/manufacture-16.0-mrp_multi_level
Translate-URL: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_multi_level/it/
2024-12-04 09:42:26 +05:30
mymage
07c76e2301 Translated using Weblate (Italian)
Currently translated at 100.0% (170 of 170 strings)

Translation: manufacture-16.0/manufacture-16.0-mrp_multi_level
Translate-URL: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_multi_level/it/
2024-12-04 09:42:26 +05:30
OCA-git-bot
6d6b435473 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
Alexandre Fayolle
0d9e98f53f [IMP] mrp_multi_level: reduce some logging
When running the multi level planner, the wizard will delete the records
from the previous run (mrp.inventory, mrp.move, mrp.planned.order).
There can be hundreds of such records, and the call to unlink() will
create a log entry which is not really informative. We disable this log
during the call to the wizard (but keep if for manual unlinking of the
records which we want to trace).
2024-12-04 09:42:26 +05:30