[FIX] point_of_sale: do not display False as currency if symbol is not set
authorDenis Ledoux <dle@odoo.com>
Fri, 3 Oct 2014 10:09:48 +0000 (12:09 +0200)
committerDenis Ledoux <dle@odoo.com>
Fri, 3 Oct 2014 10:10:16 +0000 (12:10 +0200)
addons/point_of_sale/static/src/js/widget_base.js

index 124be4e..e69dd77 100644 (file)
@@ -33,9 +33,9 @@ function openerp_pos_basewidget(instance, module){ //module is instance.point_of
                     amount = amount.toFixed(decimals);
                 }
                 if(this.currency.position === 'after'){
                     amount = amount.toFixed(decimals);
                 }
                 if(this.currency.position === 'after'){
-                    return amount + ' ' + this.currency.symbol;
+                    return amount + ' ' + (this.currency.symbol || '');
                 }else{
                 }else{
-                    return this.currency.symbol + ' ' + amount;
+                    return (this.currency.symbol || '') + ' ' + amount;
                 }
             }
 
                 }
             }