summaryrefslogtreecommitdiff
path: root/addons/resource/models/resource.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-06-28 21:50:23 +0200
committerChristophe Simonis <chs@odoo.com>2018-06-28 21:50:23 +0200
commitc302a90b6ebbe619cd2e04dfd24d2932859806d8 (patch)
tree9c99ef131a3fd46020cf973e659313671c535eb9 /addons/resource/models/resource.py
parentc8bb02141d2801c243ae65ba6800b07f090bb5c6 (diff)
[FIX] resource: oversights of previous forward-port
Diffstat (limited to 'addons/resource/models/resource.py')
-rw-r--r--addons/resource/models/resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/resource/models/resource.py b/addons/resource/models/resource.py
index 8b353c129c0..9a7c4b49f16 100644
--- a/addons/resource/models/resource.py
+++ b/addons/resource/models/resource.py
@@ -41,7 +41,7 @@ def datetime_to_string(dt):
def float_to_time(hours):
""" Convert a number of hours into a time object. """
- if float_hour == 24.0:
+ if hours == 24.0:
return time.max
fractional, integral = math.modf(hours)
return time(int(integral), int(60 * fractional), 0)