diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-04-19 12:19:17 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-04-23 11:51:21 +0000 |
| commit | 7e312c34f75079bb7bfd0e7f8c6ccdaebfac964a (patch) | |
| tree | e63b2532077c4c3cbb3a468293854377c11f376c /doc/reference/javascript_reference.rst | |
| parent | b71b78035b96967f3428843095004fa897196f69 (diff) | |
[FIX] base: float_time
- Record a timesheet entry of '00:14'
=> it is correctly saved as 0.23333...
- Select the entry, and print 'Timesheet Entries'
The tmesheet appears as '00:13'.
This is because `minutes` is equal to `13.99999999999998`, which is
truncated to `13` at formatting.
A simple call to `round` is enough to prevent this. Moreover, we add a
check to convert 60 minutes into an hour. This is similar to:
https://github.com/odoo/odoo/blob/a73206c0b1b1519aef4e7f11d83b6a2fc31eca47/addons/web/static/src/js/fields/field_utils.js#L205-L218
opw-1969149
closes odoo/odoo#32834
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
