The problem here is not the proportion: the multiplication for 60 is
done on line 166.

Still, we should figure out why on line 161, we add 0.01 and then
round() (as opposed to floor() or not adding 0.01 )

-- 
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/887612

Title:
  float_time widget wrongly rounds

Status in OpenERP GTK Client:
  Confirmed

Bug description:
  openobject-client/6.0 revno 1909

  see float_time_convert at
  
http://bazaar.launchpad.net/~openerp/openobject-client/6.0/view/1911/bin/tools/datetime_util.py#L158

  0.9853 is converted to 1 hour while it should be 59 minutes,
  because
  98.53 : 100 = x : 60
  and
  98.53 × 60 ÷ 100 = 59.118 ≃ 59 minutes

  but GTK client does

  >>> round(abs(0.9853)%1+0.01,2)
  1.0

  Why isn't the proportion implemented?

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

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to