From fc21b0014427bd614fb44db67d618cc3b69b60ea Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Tue, 10 Nov 2015 12:50:51 +0100 Subject: [PATCH] [FIX] pos_mercury: make forcing validation work again The POS will asks the user to confirm certain things that could be a user error. Examples of this are attempting to validate an order with a very big payment compared to the amount to pay on the order. Another example is paying an amount of 0 for an order with a total amount to pay that is negative (manual refund). The issue was that pos_mercury overwrote validate_order(), and didn't call _super() correctly, losing the user confirmation for these type of actions. --- addons/pos_mercury/static/src/js/pos_mercury.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/pos_mercury/static/src/js/pos_mercury.js b/addons/pos_mercury/static/src/js/pos_mercury.js index 92817a0fd63..f9e213da5e5 100644 --- a/addons/pos_mercury/static/src/js/pos_mercury.js +++ b/addons/pos_mercury/static/src/js/pos_mercury.js @@ -667,7 +667,7 @@ PaymentScreenWidget.include({ } } - this._super(); + this._super(force_validation); } });