Skip to content

[17.0][FIX] fieldservice_stock_request: process all records in _action_confirm #1372

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

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from

Conversation

BernatObrador
Copy link

Before this fix, the _action_confirm method incorrectly returned inside a for loop, causing only the first stock request record to be processed and skipping the rest. This resulted in only one request moving to the 'on process' state, while the others remained stuck in 'submitted', and pickings were not created for all requests.

Now, when confirming a request order, all related stock requests will be properly processed.

cc https://github.com/APSL 8361

@miquelalzanillas @lbarry-apsl @mpascuall @peluko00 @javierobcn @ppyczko please review

Before this fix, the _action_confirm method incorrectly returned inside a for loop, causing only the first stock request record to be processed and skipping the rest. This resulted in only one request moving to the 'on process' state, while the others remained stuck in 'submitted', and pickings were not created for all requests.
@OCA-git-bot
Copy link
Contributor

Hi @brian10048, @wolfhall, @max3903, @smangukiya,
some modules you are maintaining are being modified, check this out!

@BernatObrador BernatObrador changed the title [FIX] fieldservice_stock_request: process all records in _action_confirm [17.0][FIX] fieldservice_stock_request: process all records in _action_confirm Apr 14, 2025
@BernatObrador BernatObrador marked this pull request as ready for review April 14, 2025 13:41
Copy link
Contributor

@peluko00 peluko00 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

@mpascuall mpascuall left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

@ppyczko ppyczko left a comment

Choose a reason for hiding this comment

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

LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

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.

5 participants