widget="float_time" rounds off wrong value!

Bug #548932 reported by os33
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Undecided
Anup(SerpentCS)
Odoo Web Client
Fix Released
Undecided
Jiten (OpenERP)

Bug Description

Hello,

Create a new task, if you enter 400.99 hours in a work done line (or if the total is 400.99), it's rounded 400:60 instead 401:00 when validate.

Related branches

Changed in openobject-client-web:
assignee: nobody → psi (Open ERP) (psi-tinyerp)
assignee: psi (Open ERP) (psi-tinyerp) → nobody
Revision history for this message
Jiten (OpenERP) (jiten-openerp) wrote :

Hello,

I have checked this in GTK and Web client both, and i have found same behaviour.
So, please provide more details.

Thanks

Changed in openobject-client:
status: New → Confirmed
Changed in openobject-client-web:
status: New → Confirmed
summary: - Project :400.99 rounded 400:60
+ widget="float_time" rounds off wrong value!
Changed in openobject-client:
assignee: nobody → Anup (Open ERP) (ach-openerp)
Navrang Oza (noz-tiny)
Changed in openobject-client-web:
assignee: nobody → Jra (Open ERP) (jra-openerp)
status: Confirmed → In Progress
Changed in openobject-client:
status: Confirmed → In Progress
Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :

Hello Olivier,

   I have tested the things and I have found a solution for GTK. I am attaching a patch here.
   Please check it and let us know.

Thanks.

Revision history for this message
Jiten (OpenERP) (jiten-openerp) wrote :

Hello Olivier,

For the web client issue,
Its fixed in stable with revision : 2849
<email address hidden>

Thanks.

Changed in openobject-client-web:
status: In Progress → Fix Committed
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

@Anup,

Can you refactor the code ?

Thanks

Changed in openobject-client-web:
milestone: none → 5.0.8
Changed in openobject-client:
milestone: none → 5.0.8
Changed in openobject-client-web:
status: Fix Committed → Fix Released
Changed in openobject-client:
status: In Progress → Fix Released
Revision history for this message
Husen Daudi (husendaudi) wrote :

Hello,

Here is another patch. optimized by (RGA(OpenERP)).

Revision history for this message
Husen Daudi (husendaudi) wrote :
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thanks RGA,

I will vote for your patch. Its always better to generilze some functions like this.

Would you please remove some unnecessary lines from your patch? Only Changable lines should be included in the patch.

Thanks HDA.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.