← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 887612] [NEW] float_time widget wrongly rounds

 

Public bug reported:

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?

** Affects: openobject-client
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/887612

Title:
  float_time widget wrongly rounds

Status in OpenERP GTK Client:
  New

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


Follow ups

References