Commit 5fe5ef69 authored by Romain Courteaud's avatar Romain Courteaud

Update deprecated methods in order to keep compatibility.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16662 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b69d6b4
......@@ -44,7 +44,7 @@ from Products.CMFCore.utils import getToolByName
from Products.ERP5.Document.ImmobilisableItem import ImmobilisationValidityError
from zLOG import LOG
from zLOG import LOG, WARNING
NEGLIGEABLE_PRICE = 10e-8
......@@ -78,11 +78,22 @@ class ImmobilisationDelivery(XMLObject):
)
def validate_immobilisation(self, **kw):
pass
LOG("ImmobilisationDelivery", WARNING,
"validate_immobilisation is deprecated. " \
"Use validateImmobilisation instead")
self.validateImmobilisation()
def invalidate_immobilisation(self, **kw):
pass
LOG("ImmobilisationDelivery", WARNING,
"invalidate_immobilisation is deprecated. " \
"Use invalidateImmobilisation instead")
self.invalidateImmobilisation()
def calculate_immobilisation_validity(self, **kw):
pass
LOG("ImmobilisationDelivery", WARNING,
"calculate_immobilisation_validity is deprecated. " \
"Use calculateImmobilisationValidity instead")
self.calculateImmobilisationValidity()
validate_immobilisation = WorkflowMethod(validate_immobilisation)
invalidate_immobilisation = WorkflowMethod(invalidate_immobilisation)
......
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