[FIX] point_of_sale: do not display False as currency if symbol is not set

This commit is contained in:
Denis Ledoux 2014-10-03 12:09:48 +02:00
parent 7cbd524448
commit 9066da3369
1 changed files with 2 additions and 2 deletions

View 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'){
return amount + ' ' + this.currency.symbol;
return amount + ' ' + (this.currency.symbol || '');
}else{
return this.currency.symbol + ' ' + amount;
return (this.currency.symbol || '') + ' ' + amount;
}
}