Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

[BUG] Rounding error - thousand separator

By
Estudios, Procesos y Sistemas
on 3/28/15, 10:13 AM 724 views

I've rounding on account entries 0

Display in Spanish language is set to: [3,0], Decimal separator ",", thousand separator "."

Rounding factor on the Money (CLP): 1.000000, computational accuracy: 4


During Editing

https://cloud.githubusercontent.com/assets/7548295/5192420/4d5e974c-74c5-11e4-9bda-91adc1f9ff78.PNG

After Editing

https://cloud.githubusercontent.com/assets/7548295/5192421/50dfd08e-74c5-11e4-8043-ca365eee3e76.PNG


417.311 reduces to 417


Please help!



0


I found the fix

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

Thank you, I'll try to 'pass' this. With this info perhaps it will be easiest to write a fix module.

Daniel Blanco
on 3/29/15, 1:20 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 3/28/15, 10:13 AM
Seen: 724 times
Last updated: 3/29/15, 12:21 PM