Discussion:
[tryton] numeric values
Cato Nano
2018-01-28 10:43:28 UTC
Permalink
In my numeric calculated fields I should record 4 decimal digits but I should show only 2 decimal digits in my views

How can I achieve that ?

Thanks
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/8ae604e1-30c9-450f-92d8-67ca736fdf76%40googlegroups.com.
Cédric Krier
2018-01-29 09:32:21 UTC
Permalink
Post by Cato Nano
In my numeric calculated fields I should record 4 decimal digits but I should show only 2 decimal digits in my views
How can I achieve that ?
You can not display a field with a different value than its value
otherwise the client will change it and save this new value to the
server.

Indeed what you want is to show another field which has its value
derived from the original one. This can be done using a Function field.
--
Cédric Krier - B2CK SPRL
Email/Jabber: ***@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20180129093221.GC23162%40kei.
Cato Nano
2018-01-29 19:30:20 UTC
Permalink
Post by Cédric Krier
Post by Cato Nano
In my numeric calculated fields I should record 4 decimal digits but I should show only 2 decimal digits in my views
How can I achieve that ?
You can not display a field with a different value than its value
otherwise the client will change it and save this new value to the
server.
Indeed what you want is to show another field which has its value
derived from the original one. This can be done using a Function field.
interesting. Thanks. I' ll try tomorrow
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/91be3de0-e820-48f7-9841-79fa2f9e0928%40googlegroups.com.
Cato Nano
2018-02-12 09:22:55 UTC
Permalink
Post by Cato Nano
Post by Cédric Krier
Post by Cato Nano
In my numeric calculated fields I should record 4 decimal digits but I should show only 2 decimal digits in my views
How can I achieve that ?
You can not display a field with a different value than its value
otherwise the client will change it and save this new value to the
server.
Indeed what you want is to show another field which has its value
derived from the original one. This can be done using a Function field.
interesting. Thanks. I' ll try tomorrow
well, it took me a few more days

But I followed your suggestion

Thanks
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/be7818a1-7207-4219-b008-f1ee9f566ba3%40googlegroups.com.
Loading...