Files
odoo_source/addons
Nicolas Martinelli 7a4e90de8a [FIX] account_payment, payment: filter providers
- Install 3 payment providers:
  P1: no countries set
  P2: country set to USA
  P3: country set to Canada
- Activate online payment of invoices
- Create an invoice for portal user A (country of user is USA)
- Login with A
- Pay the invoice

All 3 providers are available, while only 1 & 2 should be available.

The providers are filtered in the sale module, but not in the account
module:

https://github.com/odoo/odoo/blob/586ee04a6296c13868011b3afaca61be5c6ff3c6/addons/sale/controllers/portal.py#L190-L193

The same issue occurs with the direct link `/website_payment/pay`.

We apply the same filtering in all modules.

opw-2279710

closes odoo/odoo#53483

X-original-commit: aaac93b551e2a5f331dd14ee5aefbe4ced173691
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-06-23 08:27:29 +00:00
..
2020-06-12 09:47:48 +00:00
2020-06-19 12:49:07 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-06-12 13:12:02 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-05-05 12:40:10 +00:00
2020-03-31 16:41:23 +00:00
2020-04-30 13:59:44 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-04-30 07:20:07 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-06-22 13:04:02 +00:00
2020-06-10 17:54:54 +00:00