** Also affects: therp-backports
   Importance: Undecided
       Status: New

** Changed in: therp-backports
   Importance: Undecided => High

** Changed in: therp-backports
     Assignee: (unassigned) => Ronald Portier (Therp) (rportier1962)

** Changed in: therp-backports
    Milestone: None => 6.1-maintenance

-- 
You received this bug notification because you are a member of OpenERP
sa GTK client R&D, which is a bug assignee.
https://bugs.launchpad.net/bugs/882036

Title:
  Incorrect float rounding when setting float field with too high
  precision

Status in OpenERP GTK Client:
  Confirmed
Status in OpenERP Server:
  Fix Released
Status in OpenERP Server 6.0 series:
  Confirmed
Status in Therp Backports:
  New

Bug description:
  Concerns 6.0 and trunk.
  If you define a precision of 0.01, the rounding of 0.125 must be 0.13 and not 
0.12. The error is in the call of the format string "%.2f"%val which introduces 
a mathematical error. The round function must be called to apply the correct 
rounding before formatting the string. It should be:
  "%.2f"%round(val*100)/100
  Fix class digits_change of class float in the server. BUT fix also the gtk 
client AND web client as they all have that error (I let you find the right 
line)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/882036/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to