Merge lp:~openerp-dev/openerp-web/7.0-opw-581438-port-pan into lp:openerp-web/7.0
Proposed by
Anand
Status: | Merged |
---|---|
Merged at revision: | 3717 |
Proposed branch: | lp:~openerp-dev/openerp-web/7.0-opw-581438-port-pan |
Merge into: | lp:openerp-web/7.0 |
Diff against target: |
37 lines (+13/-3) 2 files modified
addons/web/static/src/js/formats.js (+7/-3) addons/web/static/test/formats.js (+6/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/7.0-opw-581438-port-pan |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xavier (Open ERP) (community) | Approve | ||
Review via email: mp+144217@code.launchpad.net |
Description of the change
Hello,
Float_time widget show wrong format of time.
Demo: Human Resources > Time Tracking > Time sheets
1) Create new record.
3) Enter 5.9999 quantity in Time-sheet Lines record and save.
Observed: "Difference" field value "05:60".
Expected: "Difference" field value "06:00".
And i used Math.round,
because Math.floor is not solving the problem.
if we uses Math.floor(4.9999) output is ==> 04:59 and
if we uses Math.round(4.9999) output is ==> 05:00
Attached video for that:-https:/
Thanks.
To post a comment you must log in.
Please add tests for behavior on boundaries of float_time. There are already some tests for this, can add new ones.