[19.0][MIG] sale_order_lot_selection: Migration to 19.0#4385
Open
alan196 wants to merge 70 commits into
Open
Conversation
[FIX] Fix product_id on test [FIX] Fix product on test
[FIX] Use product_14 instead of product_11 [FIX] Add test's flow step
[FIX] change data in quant search [FIX] Fixed tab [FIX] Add check on lots list FIX product_id_change_with_wh
Because quants_get_prefered_domain does not return quants with our lots, if other quants are available
…roup_production_lot res.groups
Steps to reproduce: 1.- Create a new Sale Order with 2 or more lines of products 2.- Assign lot to every line (ensure lot has stock available) 3.- Confirm the Sale Order 4.- Go to the Delivery Order Result: Only the first line in the Delivery Order is in state "Available" and reserved, the rest of the lines are in state "Waiting Availability" and not reserved
Currently translated at 100.0% (6 of 6 strings) Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_lot_selection Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_lot_selection/ca/
Currently translated at 83.3% (5 of 6 strings) Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_lot_selection Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_lot_selection/de/
…oduct selection. This call of super without a return is cause that alert of warning for product wasn't working. After this change we ensure that return of warning or domain will apply finally
Currently translated at 33.3% (2 of 6 strings) Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_lot_selection Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_lot_selection/it/ [UPD] README.rst [UPD] README.rst
Currently translated at 50.0% (3 of 6 strings) Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_lot_selection Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_lot_selection/it/
Currently translated at 100.0% (2 of 2 strings) Translation: sale-workflow-16.0/sale-workflow-16.0-sale_order_lot_selection Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_lot_selection/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-17.0/sale-workflow-17.0-sale_order_lot_selection Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_order_lot_selection/
Key changes: - Added new functionality by extending the `qty_at_date_popover` OWL widget to allow lot selection directly from the UI. - The widget now displays lot expiration dates (checking `hasattr` for `expiration_date`). - Integrated FEFO or FIFO sorting logic natively for the displayed lots. - Adapted `sale_order_line` methods to prevent duplicate line creation and `RPC_ERROR` when splitting quantities. - Pre-fill widget inputs dynamically fetching existing quantities from `sale_order_line` records. - Set widget to read-only for orders not in `draft` or `sent` state.
cba86f1 to
0dc8f75
Compare
HectorMerazChavez
approved these changes
Jun 4, 2026
Contributor
|
/ocabot migration sale_order_lot_selection |
Contributor
|
The migration issue (#3914) has not been updated to reference the current pull request because a previous pull request (#3985) is not closed. |
Contributor
|
@alan196 Thanks for this. Couldn't you put the enhancements in separate commits if they can be backported ? |
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.
Description
Migration of
sale_order_lot_selectionto 19.0.As part of this migration, a new functionality was added by extending the
qty_at_date_popoverOWL widget. This allows users to select lots directly from the UI when checking availability:hasattrforexpiration_date).RPC_ERRORand duplicate lines on splitting.