[FIX]resource: revert correctly

bzr revid: mat@openerp.com-20130510082654-102w20am9zvgspd7
This commit is contained in:
Martin Trigaux
2013-05-10 10:26:54 +02:00
parent 726f755c2e
commit 38eb2bf80d
+1 -1
View File
@@ -181,7 +181,7 @@ class resource_calendar(osv.osv):
d2 = datetime(dt_from.year, dt_from.month, dt_from.day, int(math.floor(hour_to)), int((hour_to%1) * 60))
result.append((d1, d2))
current_hour = hour_to
todo -= (m-hour_from)
todo -= (hour_to - m)
dt_from += timedelta(days=1)
current_hour = 0
maxrecur -= 1