Skip to content

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Dec 3, 2025

Steps:

  • Install razorpay provider.
  • Set up provider and try to make payment with UPI PM.
  • Cancel processing payment in Razorpay form while processing keep form open.
  • Now complete that same tx in same Razorpay form.

Issue:

  • Transaction stays in error state.

Cause:

  • _process method skips calling _apply_changes for error stage transactions even though
    it should allowed.

Fix:

  • Improve condition to only skip _apply_changes only if _validate_amount fails.

issued PR: #224627

Note: This is just temporary fix for the stable in master we will make _validate_amount method
return boolean value depending on that we will decide whether to apply changes or not.

Forward-Port-Of: #238163

Steps:
- Install razorpay provider.
- Set up provider and try to make payment with UPI PM.
- Cancel processing payment in Razorpay form while processing keep form open.
- Now complete that same tx in same Razorpay form.

Issue:
- Transaction stays in `error` state.

Cause:
- _process method skips calling _apply_changes for `error` stage transactions
even though it should allowed.

Fix:
- Improve condition to only skip `_apply_changes` only if `_validate_amount` fails.

issued PR: odoo#224627

Note: This is just temporary fix for the stable in master we will make
`_validate_amount` method return boolean value depending on that we will
decide whether to apply changes or not.

X-original-commit: 1247a04
@robodoo
Copy link
Contributor

robodoo commented Dec 3, 2025

Pull request status dashboard

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Dec 3, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Dec 3, 2025

@kcv-odoo @AntoineVDV this PR targets master and is the last of the forward-port chain.

To merge the full chain, use

@robodoo r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@kcv-odoo
Copy link
Contributor

kcv-odoo commented Dec 3, 2025

@robodoo r+

robodoo pushed a commit that referenced this pull request Dec 3, 2025
Steps:
- Install razorpay provider.
- Set up provider and try to make payment with UPI PM.
- Cancel processing payment in Razorpay form while processing keep form open.
- Now complete that same tx in same Razorpay form.

Issue:
- Transaction stays in `error` state.

Cause:
- _process method skips calling _apply_changes for `error` stage transactions
even though it should allowed.

Fix:
- Improve condition to only skip `_apply_changes` only if `_validate_amount` fails.

issued PR: #224627

Note: This is just temporary fix for the stable in master we will make
`_validate_amount` method return boolean value depending on that we will
decide whether to apply changes or not.

closes #238530

X-original-commit: 1247a04
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Kartik Chavda (kcv) <kcv@odoo.com>
@robodoo robodoo added the 19.1 label Dec 3, 2025
@robodoo robodoo closed this Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

19.1 forwardport This PR was created by @fw-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants