wrong display of negative hours

Bug #928220 reported by Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Web Team

Bug Description

minutes in negative hours must not have a negative sign

Related branches

Revision history for this message
Ferdinand (office-chricar) wrote :
Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :
Changed in openerp-web:
status: New → Incomplete
Revision history for this message
Ferdinand (office-chricar) wrote :

well obviously in the demo db the remaining hours are all positive, (because of insufficient test data)

remaining hours are calculated as planned hours - hours spent

if hours spent > planned hours the remaining time is negative
see discussion
https://answers.launchpad.net/openobject-addons/+question/169880

Changed in openerp-web:
status: Incomplete → New
Revision history for this message
Gautam (gditerp) wrote :

Hi,
Just want to add something more, when the field of a float_time widget is being rendered with a negative number, it is using a floor to calculate the whole number portion, so if it has to render -7.75, the outcome is -8.-45.
(taken from formats.js)

        case 'float_time':
            return _.str.sprintf("%02d:%02d",
                    Math.floor(value),
                    Math.round((value % 1) * 60));

Revision history for this message
Ferdinand (office-chricar) wrote :

nice ;-)

Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Low
status: New → Confirmed
Changed in openerp-web:
status: Confirmed → In Progress
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Issue should be solved in trunk as of revision <email address hidden>

Changed in openerp-web:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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