Skip to content
Snippets Groups Projects
Commit 3c43edcb authored by Victor Piryns (pivi)'s avatar Victor Piryns (pivi)
Browse files

[FIX] website_sale: show warning msg when no payment acq. is available


Current behaviour:
When checking out a shopping cart in the ecommerce, if there are
no payment acquirers available for the billing address (for ex:
billing address in Canada but payment acquirers available only in
the US), there is no indication/msg about it during checkout.

Expected behaviour:
A message should be displayed when no payment acquirers are
available to the customer. Such message was added in 15.0.

Steps to reproduce:
- Install Ecommerce, delivery module, Test Payment acquirer
- Setup a shipping method restricted to US
- Setup payment method restricted to US
- Visit shop from an incognito
- Put in Canada address for Billing and Shipping method when
  checking out
- Warning will occur stating no valid shipping method found (Correct)
- Go back and change the shipping address to a US address but leave
  billing to Canada
- Checkout will not let you progress but will show no warning message
  as you'd expect

Reason for the problem:
In 14.0 there was no warning message setup when we don't have a valid
payment acquirer.

Fix:
Backport the warning message from 15.0 and up.

Affected versions:
- 14.0

opw-3133810

closes odoo/odoo#110922

Signed-off-by: default avatarWilliam Braeckman (wbr) <wbr@odoo.com>
parent b710b230
No related branches found
No related tags found
Loading
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