[FIX] pos_online_payment: when unavailable
When the JS client cannot retrieve the online payment data from the server for an order that has no online payment line, and that has been previously saved on the server (and has its server_id defined in JS), an error is thrown if the user confirms that there is no online payment for this order. This commit fixes this issue. closes odoo/odoo#133787 Task-id: 3484441 X-original-commit: 129bc21b609d6d3310d038e631f82bae56c14e74 Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
This commit is contained in:
@@ -157,9 +157,7 @@ patch(PaymentScreen.prototype, {
|
||||
body: _t("There is a problem with the server. The order online payment status cannot be retrieved. Are you sure there is no online payment for this order ?"),
|
||||
confirmText: _t("Yes"),
|
||||
});
|
||||
if (!confirmed) {
|
||||
return false;
|
||||
}
|
||||
return confirmed;
|
||||
}
|
||||
if (orderServerOPData.is_paid) {
|
||||
await this.afterPaidOrderSavedOnServer(orderServerOPData.paid_order);
|
||||
|
||||
Reference in New Issue
Block a user