Commit 5d423bb5 authored by Sebastien Robin's avatar Sebastien Robin

kw was missing in parameters

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7636 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 86900595
......@@ -61,21 +61,21 @@ class CashDelivery(BankingOperation):
)
security.declareProtected(Permissions.View, 'getBaobabSource')
def getBaobabSource(self):
def getBaobabSource(self,**kw):
"""
Returns a calculated source
"""
script = self._getTypeBasedMethod('getBaobabSource')
if script is not None:
return script(self)
return self.getSource()
return script(self,**kw)
return self.getSource(**kw)
security.declareProtected(Permissions.View, 'getBaobabDestination')
def getBaobabDestination(self):
def getBaobabDestination(self,**kw):
"""
Returns a calculated destination
"""
script = self._getTypeBasedMethod('getBaobabDestination')
if script is not None:
return script(self)
return self.getDestination()
return script(self,**kw)
return self.getDestination(**kw)
......@@ -68,23 +68,23 @@ class CashDeliveryLine(BaobabMixin, DeliveryLine):
)
security.declareProtected(Permissions.View, 'getBaobabSource')
def getBaobabSource(self):
def getBaobabSource(self,**kw):
"""
Returns a calculated source
"""
script = self._getTypeBasedMethod('getBaobabSource')
if script is not None:
return script(self)
return script(self,**kw)
return self.aq_parent.getBaobabSource(**kw)
security.declareProtected(Permissions.View, 'getBaobabDestination')
def getBaobabDestination(self):
def getBaobabDestination(self,**kw):
"""
Returns a calculated destination
"""
script = self._getTypeBasedMethod('getBaobabDestination')
if script is not None:
return script(self)
return script(self,**kw)
return self.aq_parent.getBaobabDestination(**kw)
security.declareProtected(Permissions.View, 'getBaobabSourceVariationText')
......
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