تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2164 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
نوفمبر 24
19849
1
سبتمبر 23
2715
3
مايو 23
5371
7
أبريل 23
48661
1
ديسمبر 22
7556