This question has been flagged
2 Replies
3928 Views

One of my customers wants to have is numbers displayed per thousands, so not 200.000,00 but 200k. Is there any way of doing this easily ? e.g. Through the Language / locale parameters ?

Thanks for your help !

Avatar
Discard
Best Answer


Is a Bug.

Change this file:

addons/web/static/js/formats.js

Find this line in function instance.web.parse_value:

  case 'float':          
tmp = Number(value);
if (!isNaN(tmp))
return tmp;

and change for this (Coment whit //)

 case 'float':          
//tmp = Number(value);
//if (!isNaN(tmp))
//return tmp;

is working for us

Avatar
Discard
Best Answer

There are a few ways this could be done. One would be to override a lot of functions to have this kind of effet, another could be to define the currency symbol as k€ and then boost the precision by 3 digits.

Avatar
Discard