[19.0][MIG] mrp_request: Migration to 19.0 task#32273 - #12
Merged
Merged
Conversation
|
Linked to Odoo task #32273 |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 19.0 #12 +/- ##
=======================================
Coverage ? 92.12%
=======================================
Files ? 92
Lines ? 2819
Branches ? 252
=======================================
Hits ? 2597
Misses ? 163
Partials ? 59 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
alan196
force-pushed
the
19.0-mig-mrp_request
branch
from
August 12, 2026 18:50
ac96ed8 to
f2e90a5
Compare
Adaptations to Odoo 19.0: - Replace procurement.group usage with stock.reference (reference_ids). - _run_manufacture is @api.model and dispatches per (procurement, rule). - _generate_finished_moves was replaced by _create_update_move_finished. - res.users groups_id -> all_group_ids, res.groups category_id -> privilege_id, users -> user_ids. - UoM categories were removed in 19.0 (drop category_uom_id). - Drop stock_free_quantity dependency (free_qty is in stock core). - Use self.env._() for translations. Improvements: - Allow flagging warehouse routes (stock.route) to generate manufacturing requests instead of manufacturing or purchase orders; buy procurements are also diverted (new purchase_stock dependency). - Confirmed requests are considered as incoming quantity: forecasted report, forecasted inventory graph (report.stock.quantity) and replenishment (reordering rules use pending_qty and all open states). - Tests rewritten with 100% coverage. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
alan196
force-pushed
the
19.0-mig-mrp_request
branch
from
August 12, 2026 18:52
f2e90a5 to
6ae768d
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
mrp_requestfrom 17.0 to 19.0, ported with oca-port (history preserved).Odoo 19.0 adaptations
procurement.groupusage withstock.reference(reference_idson the request, propagated to the MOs created from the wizard)._run_manufactureis now@api.modeland dispatches per(procurement, rule); overrides updated accordingly._generate_finished_moveswas replaced by_create_update_move_finished.res.users.groups_id→all_group_ids,res.groups.category_id→privilege_id(newres.groups.privilegerecord),users→user_ids.category_uom_idand its domain.stock_free_quantitydependency (free_qtyis part of stock core since v14).self.env._().Improvements
stock.route). Procurements resolved through a Manufacture or Buy rule of a flagged route generate a Manufacturing Request instead of a manufacturing/purchase order (product-level checkbox still available). This adds apurchase_stockdependency.report.stock.quantitySQL view is wrapped to include pending request quantities as forecasted receipts.Data migration
migrations/19.0.1.0.0/post-migration.pymaps the legacyprocurement_group_idcolumn to the newreference_idsmany2many. OpenUpgrade renamesprocurement_group→stock_referencekeeping the ids, so the mapping is direct (verified by simulating the legacy schema and running the upgrade).Tests
stock.rule.run/Procurementnamedtuple,is_storableproducts).🤖 Generated with Claude Code