[MERGE] forward port of branch 8.0 up to 2b192be
[odoo/odoo.git] / addons / point_of_sale / static / src / js / widget_base.js
index f27bbec..8820cb8 100644 (file)
@@ -41,9 +41,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;
                 }
             };