Commit Graph

56 Commits

Author SHA1 Message Date
Xavier Morel 01897c8aa6 [FIX] completely broken float formatting when leading 0
Formatting converted the decimal part into an integer, dropping all
leading 0s and failing to reinsert them.

The conversion also lead to compounded errors, casting 0.1100 into
0.10999 (something like that).

Replace this by a straight float formatting via _.sprintf and the
slicing of the decimal part from the resulting string (Math.abs and %1
clamp the value to format to the [0, 1[ range, ensuring we just need
to slice off the first two characters). Also add some tests.

lp bug: https://launchpad.net/bugs/879355 fixed

bzr revid: xmo@openerp.com-20111021120741-813im5bzup7vho1f
2011-10-21 14:07:41 +02:00
Xavier Morel eb796396e0 [ADD] display of selection fields in format_value
bzr revid: xmo@openerp.com-20111012120938-9lpxm6mf8jbde6oj
2011-10-12 14:09:38 +02:00
Fabien Meghazi 65745d5142 [FIX] Do not compute modifiers for aggregates in list view.
lp bug: https://launchpad.net/bugs/865188 fixed

bzr revid: fme@openerp.com-20111005153202-4ao575zh3885ukuy
2011-10-05 17:32:02 +02:00
niv-openerp 67271d1e91 [imp] simplified formatting functions for dates
bzr revid: nicolas.vanhoren@openerp.com-20110921123139-f57zgqwdghl2qbf7
2011-09-21 14:31:39 +02:00
niv-openerp e1bde312fc [imp] corrected integer handling in search view
bzr revid: nicolas.vanhoren@openerp.com-20110919134615-9ef47xeuw3gxdmwr
2011-09-19 15:46:15 +02:00
Antony Lesuisse bedfc48dcf rename base into web part1
bzr revid: al@openerp.com-20110905110309-egx167t1ni1fzho1
2011-09-05 13:03:09 +02:00