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

Hello guys i'm using odoo 10..

i have condition 5 field type float  8 digit A,B,C,D,E

A = 1000

B = 130

C = A / B

D = 8

E = C * D

i want multiply my field like this in 8 digits 

1000 / 130 = 7.69230769

7.69230769 * 8 = 61.53846152‬

I want my field C =  7.69230769 and E = 61.53846152 show only 2 digits in view but still 8 digit in multiply..

because if i cut my field C in 2 digits only, my E will be different 0.01 from 61.53 become 61.52

7.69 * 8 = 61.52


can anyone know how to solved this?




อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello, 

Please check my answers here.

Maybe you get any help from this. 

Thanks.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

please check this answer 

decimal precision

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ม.ค. 22
3332
Self-Hosted: Custom mailserver แก้ไขแล้ว
2
ต.ค. 24
1486
1
ธ.ค. 20
4725
1
ก.ค. 20
4111
3
มิ.ย. 16
11845