CARocha / python-relatorio

Automatically exported from code.google.com/p/python-relatorio
GNU General Public License v3.0
0 stars 0 forks source link

Nueric values in calc (.ods) #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Trying to produce a calc (.ods) report from Tryton 3.0.1 using relatorio.

But the numeric values get a hidden quote ( ' ) in front so they don't get 
recognized as numeric but as string.

Is there a way to overpass it?

Thanks

Original issue reported on code.google.com by xiro...@gmail.com on 27 Oct 2014 at 3:27

GoogleCodeExporter commented 9 years ago
If the value set is of a type (int, float, long, Decimal) it is set as float 
instead of string.

Original comment by cedric.krier@b2ck.com on 27 Oct 2014 at 3:35

GoogleCodeExporter commented 9 years ago
Thanks for the reply.

I manage to figure out a solution with numeric numbers.

I noticed that when the type is Decimal (as it comes from the database) calc 
just handles it as string but when i typecast the number (for example to float) 
it get's recognized as normal.

So the 'problem' is on Decimal type. The simple types get recognized.

Original comment by xiro...@gmail.com on 30 Oct 2014 at 12:43

GoogleCodeExporter commented 9 years ago
Decimal support was added in r32a3bf75c300

Original comment by cedric.krier@b2ck.com on 30 Oct 2014 at 1:25