summaryrefslogtreecommitdiff
path: root/addons/pos_mercury/static
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2015-11-10 12:50:51 +0100
committerJoren Van Onder <jov@odoo.com>2015-11-10 12:50:51 +0100
commitfc21b0014427bd614fb44db67d618cc3b69b60ea (patch)
tree8aa2b6dd0b9205fc317110aa59fee2f16ead352a /addons/pos_mercury/static
parentaae980b458f6f8807e2dd5d6122d33a7b2c21480 (diff)
[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.
Diffstat (limited to 'addons/pos_mercury/static')
-rw-r--r--addons/pos_mercury/static/src/js/pos_mercury.js2
1 files changed, 1 insertions, 1 deletions
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);
}
});