Skip to content

Comments

[18.0][MIG] stock_mts_mto_rule: Migration to 18.0#2489

Open
ypapouin wants to merge 63 commits intoOCA:18.0from
decgroupe:18.0-mig-stock_mts_mto_rule
Open

[18.0][MIG] stock_mts_mto_rule: Migration to 18.0#2489
ypapouin wants to merge 63 commits intoOCA:18.0from
decgroupe:18.0-mig-stock_mts_mto_rule

Conversation

@ypapouin
Copy link

New PR written from scratch since #2425 made the tests work with the code instead of the other way around, there were too many things to re-fix.

  • The dummy route from tests is now created with location_dest_from_rule=True to ensure that stock move's location_dest_id is properly computed.
  • The dummy route picking type set to "IN" since its way is supplier -> stock (longstanding test bug)
  • Small code and test refactoring for easier readability

Note that I made a port of #2098 + #2331 that could be added in this PR if necessary (waiting for a feedback from original author)

Another thing that made me scratch my head is the introduction of the location_final_id on the stock.move model that I though was a way to know the final product location when there were chained moves, but that's not the case since openupgrade just rename location_dest_id to location_final_id and let the location_dest_id be auto-computed.

@arielbarreiros96
Copy link

I've been testing the module and it seems to be working fine when combined with purchases and manufacturing, stock movements makes sense, from what I can see

@ypapouin ypapouin force-pushed the 18.0-mig-stock_mts_mto_rule branch 2 times, most recently from 2fc0a46 to 82c1844 Compare January 7, 2026 14:37
@ypapouin ypapouin force-pushed the 18.0-mig-stock_mts_mto_rule branch from 82c1844 to 2caddab Compare February 2, 2026 08:30
florian-dacosta and others added 25 commits February 18, 2026 10:33
… procurement rules to handle the mts+mto scenario
Add explanation for finding this setting
Conforms to the latest README template: bugtracker, runbot etc.
Fixes bugtracker URL on some modules.
States OCA as maintainer, removes other contributors from the 'Maintainer' section.
…en warehouse is two/three steps delivery propagate move by mts-mto in pick/pack/out
OCA Transbot updated translations from Transifex
There's a traceback when renaming warehouse code (without renaming warehouse name), as name argument is False.
OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex
This method is called from the write() method the one how support
multiple records an api.multi method.

I was making some test when I tried to activate the mto+mts option for
multiple warehouse and the next error appears: ``ValueError: Expected singleton``

In order to fix this error I only added a loop to manage the multiple
registers.
OCA Transbot updated translations from Transifex
deivislaya and others added 29 commits February 18, 2026 10:33
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-stock_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_mts_mto_rule/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-stock_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_mts_mto_rule/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-stock_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_mts_mto_rule/
Currently translated at 100.0% (13 of 13 strings)

Translation: stock-logistics-warehouse-17.0/stock-logistics-warehouse-17.0-stock_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_mts_mto_rule/it/
Currently translated at 100.0% (13 of 13 strings)

Translation: stock-logistics-warehouse-17.0/stock-logistics-warehouse-17.0-stock_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_mts_mto_rule/es/
Currently translated at 100.0% (13 of 13 strings)

Translation: stock-logistics-warehouse-17.0/stock-logistics-warehouse-17.0-stock_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_mts_mto_rule/it/
@ypapouin ypapouin force-pushed the 18.0-mig-stock_mts_mto_rule branch from 2caddab to b8aa668 Compare February 18, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.