From 9066da3369ddf36ffe187c0d199667070ac32be6 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Fri, 3 Oct 2014 12:09:48 +0200 Subject: [PATCH] [FIX] point_of_sale: do not display False as currency if symbol is not set --- addons/point_of_sale/static/src/js/widget_base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/point_of_sale/static/src/js/widget_base.js b/addons/point_of_sale/static/src/js/widget_base.js index 124be4e9f82..e69dd77e64d 100644 --- a/addons/point_of_sale/static/src/js/widget_base.js +++ b/addons/point_of_sale/static/src/js/widget_base.js @@ -33,9 +33,9 @@ function openerp_pos_basewidget(instance, module){ //module is instance.point_of amount = amount.toFixed(decimals); } if(this.currency.position === 'after'){ - return amount + ' ' + this.currency.symbol; + return amount + ' ' + (this.currency.symbol || ''); }else{ - return this.currency.symbol + ' ' + amount; + return (this.currency.symbol || '') + ' ' + amount; } }