[19.0][MIG] stock_reserve: Migration to 19.0#59
Open
cormaza wants to merge 66 commits into
Open
Conversation
…will serve as a basis for the sale pre-book
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.
…_reserve and stock_reserve_sale.
before running the tests. This fixes the failure experienced when running the test in --init mode rather than --update mode.
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
force-pushed
the
19.0-mig-stock_reserve
branch
from
July 3, 2026 15:07
e11c7a1 to
34d2418
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migration of stock_reserve to Odoo 19.0. History imported from 18.0. All pre-commit checks and formatting applied.
Corrections: