Skip to content
Snippets Groups Projects
Commit 613b8f23 authored by Audric Onockx (auon)'s avatar Audric Onockx (auon)
Browse files

[FIX] account_payment : limit token acquirers to invoice's partner


Steps:
Log in with admin.
Configure Stripe for direct payment (from Odoo).
Create an invoice for portal.
Click on Preview, then Pay Now.
Select Stripe, enter your credentials and pay.

Issue:
Error message: Invalid token found!

Cause:
Paying this way creates a token for admin.
Yet, later, we check that invoice's partner == token's.
Using acquirers with a token-based payment method
should not be allowed when the current user's partner
is not the invoice's customer.

Fix:
Clarify the error message to indicate how to resolve it :
log in as the good partner.

opw-2730967

closes odoo/odoo#88523

X-original-commit: f871483a
Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: default avatarOnockx Audric (auon) <auon@odoo.com>
parent 76ec42e1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment