Commit Graph

305 Commits

Author SHA1 Message Date
Lois Rilo
4abbbaee15 [FIX] mrp_multi_level: fix main supplier computation
* api.depends

supply_method is not stored and therefore not reliable in the
api.depends, including procure location in the api.depends cover
changes in the supply method due to procure location change.

* remove usages of filtered

it was iterating the recordset more than 2 times when it could be
done in a single interation.
2025-01-13 13:20:38 +01:00
Weblate
3f3fdbaf6e Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: manufacture-18.0/manufacture-18.0-mrp_multi_level
Translate-URL: https://translation.odoo-community.org/projects/manufacture-18-0/manufacture-18-0-mrp_multi_level/
2025-01-10 15:51:16 +00:00
OCA-git-bot
ff0d5f0ebc [BOT] post-merge updates 2025-01-10 13:11:29 +00:00
RicardCForgeFlow
0c45a2b889 [FIX] mrp_multi_level: avoid create warehouse in mrp area view
Avoid bug that occurs when clicking "New" on the warehouse_id field if the Storage Locations setting is not active.
2025-01-10 13:57:28 +01:00
OCA-git-bot
6f2929f1dd [BOT] post-merge updates 2025-01-10 12:37:58 +00:00
oca-ci
3807a64e85 [UPD] Update mrp_multi_level.pot 2025-01-10 12:35:11 +00:00
JasminSForgeFlow
86bf57b348 [MIG] mrp_multi_level: Migration to 18.0 2025-01-09 12:43:13 +05:30
JasminSForgeFlow
1fae464717 [IMP] mrp_multi_level: black, isort, prettier 2024-12-04 09:42:36 +05:30
OCA-git-bot
c38c87b9e6 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
Lois Rilo
e35ef810ad [UPD] ddmrp: update maintainers
ChrisOForgeFlow is not longer active.
2024-12-04 09:42:26 +05:30
Lois Rilo
38e27ef72a [FIX] mrp_multi_level: delete params on cascade when deleting product. 2024-12-04 09:42:26 +05:30
OCA-git-bot
df73772291 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
Lois Rilo
d84964c095 [FIX] mrp_multi_level: adapt tests to recent upstream changes.
After 1ed6dbeae5
we need to explicitly set routes in the propoer order becouse while
in the cache there are not yet sorted by sequence (it requires flush
to the database, which we cannot do in a test).
2024-12-04 09:42:26 +05:30
Lois Rilo
76d18127cb [FIX] mrp_multi_level: when a product is a kit do not check rule
When you procure a kit, it doesn't matter what the route configuration
is on the product itself but on its children, so it is not needed to
check anything else but the BoM to assign the 'phantom' supply
method.

Also do not assign a BoM when the supply method is not phantom or manufacture.
2024-12-04 09:42:26 +05:30
OCA-git-bot
ece3e7f7a1 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
Lois Rilo
acb7960df5 [FIX] mrp_multi_level: readd extensibility hook
_should_create_planned_order hook was unnoticely removed in
33cf4af1ac as it was not needed
anymore in the base module. However it is still an extension point
that can be used.
2024-12-04 09:42:26 +05:30
mymage
5d7b2618bf Translated using Weblate (Italian)
Currently translated at 100.0% (170 of 170 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
ee52d55cc2 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
512af2ccc3 [BOT] post-merge updates 2024-12-04 09:42:26 +05:30
oca-ci
99d8f81e23 [UPD] Update mrp_multi_level.pot 2024-12-04 09:42:26 +05:30
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