Skip to content

[17.0][FIX] stock_picking_group_by_partner_by_carrier: Fix backorder creation without grouping - #2598

Merged
OCA-git-bot merged 1 commit into
OCA:17.0from
Tecnativa:17.0-fix-stock_picking_group_by_partner
Dec 4, 2026
Merged

OCA-git-bot merged 1 commit into
OCA:17.0from
Tecnativa:17.0-fix-stock_picking_group_by_partner

Conversation

@pilarvargas-tecnativa

Copy link
Copy Markdown

When grouping is disabled, call super() with all the corresponding pickings instead of processing them individually, as this causes issues with stock_picking_batch_extended.

This is already handled in 18.0:
3b4d5bd

@Tecnativa TT52372

@victoralmau @pedrobaeza please review

…on without grouping

When grouping is disabled, call super() with all the corresponding
pickings instead of processing them individually, as this causes
issues with stock_picking_batch_extended.

This is already handled in 18.0:
OCA@3b4d5bd

TT52372
@pedrobaeza

Copy link
Copy Markdown
Member

I put the problem in #2001

So this is really fixing it for at least all the integration cases? This module is anyway toxic due to this IMO.

@pilarvargas-tecnativa

Copy link
Copy Markdown
Author

I put the problem in #2001

So this is really fixing it for at least all the integration cases? This module is anyway toxic due to this IMO.

I've reproduced the issue with stock_picking_batch_extended and confirmed that this fix solves it. I've followed the approach already implemented in 18.0 (3b4d5bd), but keeping the existing grouping logic in 17.0.

This should fix integration issues caused by the serialization of the super call when grouping is disabled, but I haven't checked all the possible scenarios with grouping enabled.

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As the tests result is OK, and this is not modifying the behavior of the module, let's fast-track it to fix the underlying problem.

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-2598-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 6b37347 into OCA:17.0 Dec 4, 2026
8 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@pedrobaeza
pedrobaeza deleted the 17.0-fix-stock_picking_group_by_partner branch December 4, 2026 11:37
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