Skip to content

[19.0][MIG] stock_reserve: Migration to 19.0#59

Open
cormaza wants to merge 66 commits into
OCA:19.0from
cormaza:19.0-mig-stock_reserve
Open

[19.0][MIG] stock_reserve: Migration to 19.0#59
cormaza wants to merge 66 commits into
OCA:19.0from
cormaza:19.0-mig-stock_reserve

Conversation

@cormaza

@cormaza cormaza commented Jul 3, 2026

Copy link
Copy Markdown

Migration of stock_reserve to Odoo 19.0. History imported from 18.0. All pre-commit checks and formatting applied.

Corrections:

  • Manifest version updated to 19.0.1.0.0.
  • Replaced legacy translation import ("...") with self.env.("...").
  • Removed the deprecated view field 'product_uom_category_id' from XML layout.
  • Added custom 'name' field directly to 'stock.reservation' since it was removed from Odoo 19 'stock.move'.
  • Restructured search view to place all field elements before filter elements for RELAXNG compliance.
  • Removed deprecated attributes 'expand' and 'string' from search group tag.
  • Removed deprecated static reference to 'stock.stock_location_locations' in stock_data.xml.
  • Removed deprecated call to 'move_id._onchange_product_id()' in onchange handler.
  • Fixed AttributeError by correcting lowercase 'fields.date.today()' to 'fields.Date.today()'.
  • Fixed cron test failures from transaction isolation by calling model methods directly in tests.
  • Fixed NewId warnings by resolving product._origin.id in reservation_count compute logic.

Guewen Baconnier and others added 30 commits July 3, 2026 09:06
don't use half the quantity so that the reserved qty is different from
available qty
For weird reasons, force-assigning a move does not associate quants.
action_assign'ing the picking does, and is the same procedure that you
can do via the interface.
[UPG] Upgraded to version 8, fixed references to new 8.0  views and  moved fields that were in  product.product to product.template

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[UPG] stock available immediately, corrected the calculation method of
immediately_usable_qty to take in accountthe sign change in outgoing_qty
(from negative to positive) in version 8.

[FLAKE8]

[FIX] renaming of a class, comment removing, useless code.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
This has always been wrong on v8, but because of the very obscure
odoo/odoo#5797, this seemed to work every time we had single-step
reception.

Please note that this block of XML is noupdate, so for existing
installations you need to change the parent of the reservation location
to something outside your warehouses manually.

Incidentally, this makes the branch green independently of odoo/odoo#5797.
before running the tests. This fixes the failure experienced when running the
test in --init mode rather than --update mode.
mymage and others added 26 commits July 3, 2026 09:06
Currently translated at 16.1% (27 of 167 strings)

Translation: stock-logistics-warehouse-15.0/stock-logistics-warehouse-15.0-stock_reserve
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-0-stock_reserve/it/
Currently translated at 38.9% (65 of 167 strings)

Translation: stock-logistics-warehouse-15.0/stock-logistics-warehouse-15.0-stock_reserve
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-0-stock_reserve/sl/
Currently translated at 17.4% (27 of 155 strings)

Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-stock_reserve
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_reserve/it/
…tion to avoid multi-company incompatibilities

TT44108
Currently translated at 17.6% (27 of 153 strings)

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

Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-stock_reserve
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_reserve/es/
Currently translated at 17.3% (27 of 156 strings)

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

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

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

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

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

Translation: stock-logistics-reservation-18.0/stock-logistics-reservation-18.0-stock_reserve
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reservation-18-0/stock-logistics-reservation-18-0-stock_reserve/sl/
Currently translated at 42.1% (59 of 140 strings)

Translation: stock-logistics-reservation-18.0/stock-logistics-reservation-18.0-stock_reserve
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reservation-18-0/stock-logistics-reservation-18-0-stock_reserve/sl/
Currently translated at 42.1% (59 of 140 strings)

Translation: stock-logistics-reservation-18.0/stock-logistics-reservation-18.0-stock_reserve
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reservation-18-0/stock-logistics-reservation-18-0-stock_reserve/sl/
Migration of the stock_reserve module to Odoo 19.0.

Corrections:
- Manifest version updated to 19.0.1.0.0.
- Replaced legacy translation import _("...") with self.env._("...").
- Removed the deprecated view field 'product_uom_category_id' from XML layout.
- Added custom 'name' field directly to 'stock.reservation' since it was removed from Odoo 19 'stock.move'.
- Restructured search view to place all field elements before filter elements for RELAXNG compliance.
- Removed deprecated attributes 'expand' and 'string' from search group tag.
- Removed deprecated static reference to 'stock.stock_location_locations' in stock_data.xml.
- Removed deprecated call to 'move_id._onchange_product_id()' in onchange handler.
- Fixed AttributeError by correcting lowercase 'fields.date.today()' to 'fields.Date.today()'.
- Fixed cron test failures from transaction isolation by calling model methods directly in tests.
- Fixed NewId warnings by resolving product._origin.id in reservation_count compute logic.
@cormaza
cormaza force-pushed the 19.0-mig-stock_reserve branch from e11c7a1 to 34d2418 Compare July 3, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.