From 7f8aecb21d4f305fd004984dd48bce951459c575 Mon Sep 17 00:00:00 2001 From: Robin Heinz Date: Tue, 24 Nov 2020 14:58:18 +0000 Subject: [PATCH] [FIX] point_of_sale: allow to enter 0 in the cash popup It was impossible to validate the cash control popup if the value was 0. Now it's possible to validate any amount, including 0. closes odoo/odoo#62256 Signed-off-by: pimodoo --- addons/point_of_sale/static/src/js/Popups/CashOpeningPopup.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/point_of_sale/static/src/js/Popups/CashOpeningPopup.js b/addons/point_of_sale/static/src/js/Popups/CashOpeningPopup.js index 9cc5cb6f6ee..53578f4689a 100644 --- a/addons/point_of_sale/static/src/js/Popups/CashOpeningPopup.js +++ b/addons/point_of_sale/static/src/js/Popups/CashOpeningPopup.js @@ -28,8 +28,6 @@ odoo.define('point_of_sale.CashOpeningPopup', function(require) { } startSession() { - if(!parseFloat(this.cashBoxValue)) - return; this.env.pos.bank_statement.balance_start = parseFloat(this.cashBoxValue); this.env.pos.pos_session.state = 'opened'; this.rpc({ @@ -61,7 +59,6 @@ odoo.define('point_of_sale.CashOpeningPopup', function(require) { } this.render(); } - } CashOpeningPopup.template = 'CashOpeningPopup';