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

[15.0][IMP] purchase_stock_price_unit_sync: Avoid errors with cancelled stock moves #2463

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.

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 changed the title [IMP] purchase_stock_price_unit_sync: Avoid errors with cancelled stock moves [15.0][IMP] purchase_stock_price_unit_sync: Avoid errors with cancelled stock moves Nov 22, 2024
@pedrobaeza pedrobaeza added this to the 15.0 milestone Nov 22, 2024
@pedrobaeza
Copy link
Member

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 15.0-ocabot-merge-pr-2463-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 943faf3 into OCA:15.0 Nov 22, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 79bfc44. 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