[FIX] pos_stripe: get stripe payment provider based on company
The problem was that if you have multiple stripe payment providers in
different companies, it may cause issues in getting the stripe payment
provider. That was because of using sudo in
calling `_get_stripe_payment_provider`.
The solution is to filter the result based on the company.
opw-3473577
closes odoo/odoo#133578
Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
Showing
- addons/pos_stripe/i18n/pos_stripe.pot 2 additions, 2 deletionsaddons/pos_stripe/i18n/pos_stripe.pot
- addons/pos_stripe/models/pos_payment_method.py 6 additions, 3 deletionsaddons/pos_stripe/models/pos_payment_method.py
- addons/pos_stripe/static/src/js/payment_stripe.js 9 additions, 3 deletionsaddons/pos_stripe/static/src/js/payment_stripe.js
Please register or sign in to comment