Skip to content

[16.0][FIX] shopfloor_reception: Incorrect move line selection after partial receipt (without pack)#1125

Open
nicolas-delbovier-acsone wants to merge 4 commits intoOCA:16.0from
acsone:16.0-fix-shopfloor_reception-without-pack-wrong-line-selected
Open

[16.0][FIX] shopfloor_reception: Incorrect move line selection after partial receipt (without pack)#1125
nicolas-delbovier-acsone wants to merge 4 commits intoOCA:16.0from
acsone:16.0-fix-shopfloor_reception-without-pack-wrong-line-selected

Conversation

@nicolas-delbovier-acsone
Copy link

@nicolas-delbovier-acsone nicolas-delbovier-acsone commented Jan 27, 2026

Problem

When performing a partial reception without packages, the system splits the stock.move.line into a completed line and a backorder line. Currently, the line selection logic incorrectly assumes that fully processed lines are the ones linked to a package. This causes the system to re-select the already-processed line (e.g., 3/3) instead of the remaining one (e.g., 0/7), blocking the completion of the transfer and causing data inconsistency.

Solution

Updated the move line selection logic to ensure that lines are selected based on the fact they have been completely processed or not.


This PR isolates and improves some change made in #1092 as to ease review (see this commit)

@OCA-git-bot
Copy link
Contributor

Hi @JuMiSanAr, @mmequignon,
some modules you are maintaining are being modified, check this out!

@nicolas-delbovier-acsone
Copy link
Author

@jbaudoux

@nicolas-delbovier-acsone nicolas-delbovier-acsone changed the title [IMP] shopfloor_reception: Incorrect move line selection after partial receipt (without pack) [16.0][FIX] shopfloor_reception: Incorrect move line selection after partial receipt (without pack) Jan 27, 2026
@nicolas-delbovier-acsone nicolas-delbovier-acsone marked this pull request as draft January 27, 2026 16:04
@nicolas-delbovier-acsone
Copy link
Author

nicolas-delbovier-acsone commented Jan 27, 2026

We should use the field shopfloor_unloaded instead of relying on progress

@nicolas-delbovier-acsone nicolas-delbovier-acsone marked this pull request as ready for review January 28, 2026 09:33
@nicolas-delbovier-acsone nicolas-delbovier-acsone force-pushed the 16.0-fix-shopfloor_reception-without-pack-wrong-line-selected branch 2 times, most recently from 42f7e21 to 9a2d592 Compare January 28, 2026 11:04
rousseldenis and others added 3 commits January 29, 2026 12:41
When users don't use packages for receptions, we should not rely only on its
presence on lines to not select them.

So, rely also on line progress completed at 100% (after split) to select
another one with same criteria
Add a test case to verify that when multiple users are working on the same lot, one user cannot take the move line from another when scanning a lot.
@nicolas-delbovier-acsone nicolas-delbovier-acsone force-pushed the 16.0-fix-shopfloor_reception-without-pack-wrong-line-selected branch from 9a2d592 to 85b8ba5 Compare January 29, 2026 11:46
…or "no user".

A condition on the lines filtered lines has been added so to ensure that 2 users working on the same move do not steal move lines from one another.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants