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

I have a table which has the field defined as (Odoo 10),

total_amount= fields.Float('Total Amount', digits=(16, 4))

It stores amount eg. 5.0000

but when I read from orm method it trailing the zero ie.

self.env['...'].search([])[0].total_amount
it gives 5.0

I want to read as it is ie. 5.0000
Any idea how I can do that, I don't want to format it to every place while reading the value.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 24
20792
How to install odoo 10 in ubuntu 20.04? แก้ไขแล้ว
1
ก.ย. 23
3596
3
พ.ค. 23
6199
7
เม.ย. 23
49592
Barcode scanner from mobile แก้ไขแล้ว
1
ธ.ค. 22
8293