summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorRichard Mathot <rim@odoo.com>2018-08-06 15:19:16 +0200
committerRichard Mathot <rim@odoo.com>2018-08-07 07:36:49 +0200
commitc5d95f1b3783f7863bcb7c643b8bd54ae00fce77 (patch)
tree3899d7a3cc93f11a858e48bdacc1c3da57d0818e /addons/web_editor/static/src
parent1369272f1af324dc2c3f7162b8c8a5887263b722 (diff)
[FIX] resource: don't lose minutes anymore
In resource.calendar.attendance, we store the start and end hour of an interval as floats. eg: 17 hours 9 minutes is stored as 17.15 When converting this float to a datetime object, the method float_to_time always rounds down the value, which may be wrong if, due to float imprecisions, 0.15 hours is converted to 8.999... minutes (and was then rounded to 8). We do fix this behaviour by rounding to the closest integer. Thanks to @jem-odoo for his help troubleshooting this issue. opw-1872166
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions