projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7cbd524
)
[FIX] point_of_sale: do not display False as currency if symbol is not set
author
Denis Ledoux
<dle@odoo.com>
Fri, 3 Oct 2014 10:09:48 +0000
(12:09 +0200)
committer
Denis 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
patch
|
blob
|
history
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
124be4e
..
e69dd77
100644
(file)
--- 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'){
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;
}
}
}
}