Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0] [MIG] stock_picking_operation_quick_change #1668

Open
wants to merge 17 commits into
base: 14.0
Choose a base branch
from

Conversation

Ricardoalso
Copy link
Contributor

No description provided.

sergio-teruel and others added 15 commits August 7, 2024 16:21
New module to allow change target location in picking operations
Currently translated at 45.5% (10 of 22 strings)

Translation: stock-logistics-workflow-12.0/stock-logistics-workflow-12.0-stock_picking_operation_quick_change
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-12-0/stock-logistics-workflow-12-0-stock_picking_operation_quick_change/sl/
You can now also filter the lines to change by product.
Currently translated at 40.0% (10 of 25 strings)

Translation: stock-logistics-workflow-13.0/stock-logistics-workflow-13.0-stock_picking_operation_quick_change
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-13-0/stock-logistics-workflow-13-0-stock_picking_operation_quick_change/it/
Currently translated at 40.0% (10 of 25 strings)

Translation: stock-logistics-workflow-13.0/stock-logistics-workflow-13.0-stock_picking_operation_quick_change
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-13-0/stock-logistics-workflow-13-0-stock_picking_operation_quick_change/sl/
Currently translated at 100.0% (25 of 25 strings)

Translation: stock-logistics-workflow-13.0/stock-logistics-workflow-13.0-stock_picking_operation_quick_change
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-13-0/stock-logistics-workflow-13-0-stock_picking_operation_quick_change/it/
Currently translated at 100.0% (25 of 25 strings)

Translation: stock-logistics-workflow-13.0/stock-logistics-workflow-13.0-stock_picking_operation_quick_change
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-13-0/stock-logistics-workflow-13-0-stock_picking_operation_quick_change/it/
@Ricardoalso Ricardoalso changed the title 14.0 mig stock picking operation quick change [14.0] [mig] stock_picking_operation_quick_change Aug 7, 2024
@Ricardoalso Ricardoalso changed the title [14.0] [mig] stock_picking_operation_quick_change [14.0] [MIG] stock_picking_operation_quick_change Aug 7, 2024
@Ricardoalso Ricardoalso force-pushed the 14.0-mig-stock_picking_operation_quick_change branch 2 times, most recently from 6d6c355 to 6c0843f Compare August 7, 2024 16:42
@Ricardoalso Ricardoalso force-pushed the 14.0-mig-stock_picking_operation_quick_change branch from 6c0843f to 54d9c06 Compare August 15, 2024 06:22
@Ricardoalso
Copy link
Contributor Author

@gbrito Thanks for you review. Indeed I didn't pay attention to that during the migration, my bad. New commit added 😉

Copy link

@FrancescoBallerini FrancescoBallerini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, I've tested this locally as the runbot is off.
I think this can be reviewed as functionally ok but I do not understand why by applying the wizard with "CHANGE ALL" and setup a new location_dest_id , the value is correctly retrieved on wizard and business logic (e.g. when validating the picking the "done" quant is correctly moved to the location) but we still see the picking location dest ID on the stock move lines..

I think I can approve but I'd like to understand why this happens, if possible, thanks ! : )

@florian-dacosta
Copy link
Contributor

Hello, I've tested this locally as the runbot is off. I think this can be reviewed as functionally ok but I do not understand why by applying the wizard with "CHANGE ALL" and setup a new location_dest_id , the value is correctly retrieved on wizard and business logic (e.g. when validating the picking the "done" quant is correctly moved to the location) but we still see the picking location dest ID on the stock move lines..

I think I can approve but I'd like to understand why this happens, if possible, thanks ! : )

@FrancescoBallerini There are 2 different notions actually :
The stock moves (stock.move) which indicate a quantity of product to move from a zone to another => The same zones that are displayed at the picking level
The operations (stock.move.line). Depending on the configuration of your Odoo, you do not always see the operations displayed in a tab of the picking, but they exists anyway.
The goal of the operation is to indicate precisely what you move (which lot, which pack ? and which sublocation)

This module only change the destination location of the operations, that is why it does not change anything on the picking.

For instance, you have a picking with one line only with product quantity 10 and going from "supplier" to "WH/Stock".
You could fill the operations this way : 5 products are going to WH/stock/shelf1 and 5 products are going to WH/stock/shelf2
This way, only the destination location of both operation is changed, while the "zone", on the stock move is still "WH/stock".
This is how it happens, even without this module installed.
Hope it is clear

@FrancescoBallerini
Copy link

@florian-dacosta I've missed your ping here , glad it was merged aniway!

Thank you for the detailed explanation. I received similar insights about these models recently, and both were helpful.

Just a consideration: I think that if a user is going to change the "deepest" layer (stock.move.line) , also the highest level layer stock.move should reflect the change. Additionally I guess also the picking location_dest_id could change at this point if that's true. Does it make sense or there are some reason why it shouldn't change?

I'm not really asking for implementation, it's just for my knowledge about this module since I'm considering to make additional customizations for a local deploy

Thank you again

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.