Skip to content

[19.0][FIX] purchase_request: prevent double-counting of purchase request line quantities in PO lines#2999

Merged
OCA-git-bot merged 1 commit intoOCA:19.0from
HeliconiaIO:19.0-fix-purchase_request
Mar 20, 2026
Merged

[19.0][FIX] purchase_request: prevent double-counting of purchase request line quantities in PO lines#2999
OCA-git-bot merged 1 commit intoOCA:19.0from
HeliconiaIO:19.0-fix-purchase_request

Conversation

@BhaveshHeliconia
Copy link
Contributor

@BhaveshHeliconia BhaveshHeliconia commented Mar 19, 2026

  • This PR fixes a bug where purchase order line quantities were over-counted by 1 when converting purchase requests to RFQs/POs.

  • The wizard now links the purchase request line to the PO line only after the correct quantity is calculated and written, preventing double-counting.

  • The _calc_new_qty method now simply sums all linked lines, matching Odoo 19.0 core logic.

The test cases are failing in the following PRs: #2996, #2997, #2998.

@BhaveshHeliconia
Copy link
Contributor Author

@HviorForgeFlow
Copy link
Member

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-2999-by-HviorForgeFlow-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f8a307b into OCA:19.0 Mar 20, 2026
7 checks passed
@OCA-git-bot
Copy link
Contributor

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