8000 [16.0][FIX] shopfloor: handle multiple move lines in location content transfer by nicolas-delbovier-acsone · Pull Request #1303 · OCA/wms · GitHub
[go: up one dir, main page]

Skip to content

[16.0][FIX] shopfloor: handle multiple move lines in location content transfer - #1303

Open
nicolas-delbovier-acsone wants to merge 1 commit into
OCA:16.0from
acsone:16.0-fix-shopfloor-location-content-transfer-handle-multiple-move-lines-for-one-move
Open

nicolas-delbovier-acsone wants to merge 1 commit into
OCA:16.0from
acsone:16.0-fix-shopfloor-location-content-transfer-handle-multiple-move-lines-for-one-move

Conversation

@nicolas-delbovier-acsone
@nicolas-delbovier-acsone nicolas-delbovier-acsone commented Oct 16, 2026 •
Copy link
Copy Markdown

Fix premature auto-validation of sibling move lines in location_content_transfer

Problem

When processing transfers via the Location Content Transfer service in "process by line" mode (go_to_single), validating a single stock.move.line invoked stock.validate_moves(move_line.move_id).

If a single stock.move contained multiple stock.move.line records (such as when demand is satisfied across multiple lots), validating the parent move_id caused Odoo to validate all related move lines at once. As a result, completing the first scanned line automatically completed remaining sibling lines without requiring the operator to scan them in Shopfloor.

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @jbaudoux, @mmequignon, @TDu, @sebalix, @simahawk,
some modules you are maintaining are being modified, check this out!

@nicolas-delbovier-acsone
nicolas-delbovier-acsone force-pushed the 16.0-fix-shopfloor-location-content-transfer-handle-multiple-move-lines-for-one-move branch from 41ac2a6 to 9f4f1d8 Compare October 16, 2026 14:55
Co-authored-by: Jacques-Etienne Baudoux <je@bcim.be>
@nicolas-delbovier-acsone
nicolas-delbovier-acsone force-pushed the 16.0-fix-shopfloor-location-content-transfer-handle-multiple-move-lines-for-one-move branch from 9f4f1d8 to 5484fd7 Compare October 16, 2026 14:59
@nicolas-delbovier-acsone nicolas-delbovier-acsone changed the title [16.0][IMP] shopfloor: handle multiple move lines in location content transfer [16.0][FIX] shopfloor: handle multiple move lines in location content transfer Oct 16, 2026
@jbaudoux jbaudoux left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Your fix for the 2 move lines cases looks good.
However, for the partial quantity, there is another call missing to split the move line.

Comment on lines +922 to 924
# ↓ Necessary in case of partial because `qty_done = move_line.reserved_uom_qty`
# since we made a "mark_move_line_as_picked"
move_line.qty_done = quantity
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you decrease the quantity, we need to split the move line for the processed quantity.

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.

3 participants

0