Commit 98061911 authored by Aurel's avatar Aurel

cell can acquire getBaobabVariationText from line if there is only one cell

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7468 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 39fc4307
No related merge requests found
......@@ -138,7 +138,11 @@ class CashDeliveryCell(BaobabMixin, DeliveryCell):
script = self._getTypeBasedMethod('getBaobabSourceVariationText')
if script is not None:
return script(self)
if self.getVariationText() != self.aq_parent.getVariationText():
return self.getVariationText()
else:
# only one cell in a line
return self.aq_parent.getBaobabSourceVariationText()
security.declareProtected(Permissions.View, 'getBaobabDestinationVariationText')
def getBaobabDestinationVariationText(self, **kw):
......@@ -147,4 +151,8 @@ class CashDeliveryCell(BaobabMixin, DeliveryCell):
script = self._getTypeBasedMethod('getBaobabDestinationVariationText')
if script is not None:
return script(self)
if self.getVariationText() != self.aq_parent.getVariationText():
return self.getVariationText()
else:
# only one cell in a line
return self.aq_parent.getBaobabDestinationVariationText()
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