Commit f1b5b85c authored by Romain Courteaud's avatar Romain Courteaud

CalendarPeriod was renamed to PresencePeriod


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14188 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bdc6dcaf
......@@ -31,9 +31,9 @@ from Globals import InitializeClass, PersistentMapping
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5.Document.CalendarPeriod import CalendarPeriod
from Products.ERP5.Document.PresencePeriod import PresencePeriod
class LeavePeriod(CalendarPeriod):
class LeavePeriod(PresencePeriod):
"""
Leave Period is used to remove available time of the user in a
period of Time
......@@ -66,7 +66,7 @@ class LeavePeriod(CalendarPeriod):
"""
Surcharged accessor to calculate the Quantity in second.
"""
quantity = CalendarPeriod.getInventoriatedQuantity(
quantity = PresencePeriod.getInventoriatedQuantity(
self, default=default,
*args, **kw)
return -quantity
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment