Skip to content
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

[16.0][IMP] purchase_stock_price_unit_sync: Avoid errors with cancelled stock moves #2464

Merged

Conversation

CarlosRoca13
Copy link
Contributor

When the price of a line is changed, and it does not have any associated stock.move completed but does have stock.moves in a different state, this will result in no SVLs being found. Consequently, attempting to write to the empty recordset is causing issues.

FW-PORT of #2463

cc @Tecnativa TT51861

ping @pedrobaeza @carlosdauden

…ck moves

When the price of a line is changed, and it does not have any associated
stock.move completed but does have stock.moves in a different state,
this will result in no SVLs being found. Consequently, attempting to
write to the empty recordset is causing issues.
@pedrobaeza pedrobaeza added this to the 16.0 milestone Nov 25, 2024
@pedrobaeza
Copy link
Member

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-2464-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 2576732 into OCA:16.0 Nov 25, 2024
9 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 16.0-IMP-purchase_stock_price_unit_sync branch November 25, 2024 19:11
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