Skip to Content
मेन्यू
This question has been flagged
2488 Views

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.

Avatar
Discard
Related Posts Replies Views Activity
1
नव॰ 24
20852
1
सित॰ 23
3655
3
मई 23
6259
7
अप्रैल 23
49633
1
दिस॰ 22
8328