Commit 573e8a41 authored by Aurel's avatar Aurel

on cash delivery line and cell, source payment and destination payment

are always None


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16814 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fec61fd7
...@@ -100,13 +100,13 @@ class CashDeliveryCell(BaobabMixin, DeliveryCell): ...@@ -100,13 +100,13 @@ class CashDeliveryCell(BaobabMixin, DeliveryCell):
def getBaobabSourcePayment(self, **kw): def getBaobabSourcePayment(self, **kw):
""" """
""" """
return self.aq_parent.getBaobabSourcePayment(**kw) return None
security.declareProtected(Permissions.View, 'getBaobabDestinationPayment') security.declareProtected(Permissions.View, 'getBaobabDestinationPayment')
def getBaobabDestinationPayment(self, **kw): def getBaobabDestinationPayment(self, **kw):
""" """
""" """
return self.aq_parent.getBaobabDestinationPayment(**kw) return None
security.declareProtected(Permissions.View, 'getBaobabSourceFunction') security.declareProtected(Permissions.View, 'getBaobabSourceFunction')
def getBaobabSourceFunction(self, **kw): def getBaobabSourceFunction(self, **kw):
......
...@@ -106,3 +106,15 @@ class CashDeliveryLine(BaobabMixin, DeliveryLine): ...@@ -106,3 +106,15 @@ class CashDeliveryLine(BaobabMixin, DeliveryLine):
if script is not None: if script is not None:
return script(self) return script(self)
return self.getVariationText() return self.getVariationText()
security.declareProtected(Permissions.View, 'getBaobabSourcePayment')
def getBaobabSourcePayment(self, **kw):
"""
"""
return None
security.declareProtected(Permissions.View, 'getBaobabDestinationPayment')
def getBaobabDestinationPayment(self, **kw):
"""
"""
return None
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