Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2444 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
nov. 24
20827
1
sep. 23
3608
3
mei 23
6211
7
apr. 23
49607
1
dec. 22
8304