From 9d506f2b92548cd58f9ef68ab84e9c97caa24cb9 Mon Sep 17 00:00:00 2001 From: geomer198 Date: Sun, 24 Sep 2023 22:33:02 +0400 Subject: [PATCH] [FIX] pos_financial_risk: compute payment method for customer is fixed. --- pos_financial_risk/static/src/js/PaymentScreen.esm.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pos_financial_risk/static/src/js/PaymentScreen.esm.js b/pos_financial_risk/static/src/js/PaymentScreen.esm.js index 0fc7f051b3..ef47e04ead 100644 --- a/pos_financial_risk/static/src/js/PaymentScreen.esm.js +++ b/pos_financial_risk/static/src/js/PaymentScreen.esm.js @@ -20,6 +20,7 @@ export const PaymentScreenRisk = (PaymentScreen) => const order = this.currentOrder; const partner = order.partner; if (!partner) { + this.payment_methods_from_config = this.paymentMethodsFromConfigBase; return; } const paymentCreditLimit = @@ -44,6 +45,9 @@ export const PaymentScreenRisk = (PaymentScreen) => ); } this.render(true); + } else { + this.payment_methods_from_config = + this.paymentMethodsFromConfigBase; } }); }