Skip to content

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

Merged
OCA-git-bot merged 4 commits intoOCA:16.0from
acsone:16.0-fix-shopfloor_reception-without-pack-wrong-line-selected
Apr 9, 2026
Merged

[16.0][FIX] shopfloor_reception: Incorrect move line selection after partial receipt (without pack)#1125
OCA-git-bot merged 4 commits intoOCA:16.0from
acsone:16.0-fix-shopfloor_reception-without-pack-wrong-line-selected

Conversation

@nicolas-delbovier-acsone
Copy link
Copy Markdown

@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
Copy Markdown
Contributor

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

@nicolas-delbovier-acsone
Copy link
Copy Markdown
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
Copy Markdown
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.
@jbaudoux
Copy link
Copy Markdown
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-1125-by-jbaudoux-bump-patch, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Mar 27, 2026
Signed-off-by jbaudoux
@OCA-git-bot
Copy link
Copy Markdown
Contributor

@jbaudoux your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-1125-by-jbaudoux-bump-patch.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@jbaudoux
Copy link
Copy Markdown
Contributor

jbaudoux commented Apr 9, 2026

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-1125-by-jbaudoux-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 78b9043 into OCA:16.0 Apr 9, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 5c5644d. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants