Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4592 มุมมอง

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!



อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด


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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
How can I stop round decimals in odoo 12 แก้ไขแล้ว
2
ก.ค. 20
7834
Odoo 9, amounts rounding แก้ไขแล้ว
2
ก.ย. 16
3285
4
มี.ค. 16
5739
0
พ.ค. 15
164
1
มี.ค. 15
6832