[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 <pimodoo@users.noreply.github.com>
This commit is contained in:
Robin Heinz
2020-11-24 14:58:22 +00:00
parent 01b5bf1442
commit 7f8aecb21d
@@ -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';