diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-06-28 21:50:23 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-06-28 21:50:23 +0200 |
| commit | c302a90b6ebbe619cd2e04dfd24d2932859806d8 (patch) | |
| tree | 9c99ef131a3fd46020cf973e659313671c535eb9 /addons/resource/models/resource.py | |
| parent | c8bb02141d2801c243ae65ba6800b07f090bb5c6 (diff) | |
[FIX] resource: oversights of previous forward-port
Diffstat (limited to 'addons/resource/models/resource.py')
| -rw-r--r-- | addons/resource/models/resource.py | 2 |
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) |
