There are 2 datatypes for fixed point values and 4 for floating point numbers in SQL.
Which are used for fields.float and fields.function (type='float', store=True) ?
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
There are 2 datatypes for fixed point values and 4 for floating point numbers in SQL.
Which are used for fields.float and fields.function (type='float', store=True) ?
Thanks.
Hello René, it seems all of them use the 'numeric' datatype. You can check for yourself using psql and describing a table ( \d <table_name>). You can check this out in the account_voucher module with the account_voucher_line table. Install this module and then \d(escribe) the table. Hope this helps!
Best regards,
Bruno Figares.
I've done that and the result is: fields.float (no digit attribute): double precision. fields.function(type='float', store=True): numeric.
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
1
nov. 22
|
2256 | ||
|
0
feb. 21
|
1842 | ||
|
0
sep. 24
|
140 | ||
Custom float field auto rounding?
Opgelost
|
|
4
sep. 18
|
4310 | |
|
5
apr. 16
|
5207 |