From 573e8a41caddb81abe8c3de2e94a6fc241a47774 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Thu, 4 Oct 2007 09:10:18 +0000
Subject: [PATCH] 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
---
 product/ERP5Banking/Document/CashDeliveryCell.py |  4 ++--
 product/ERP5Banking/Document/CashDeliveryLine.py | 12 ++++++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Banking/Document/CashDeliveryCell.py b/product/ERP5Banking/Document/CashDeliveryCell.py
index 996ea27f55..1f48c6d203 100755
--- a/product/ERP5Banking/Document/CashDeliveryCell.py
+++ b/product/ERP5Banking/Document/CashDeliveryCell.py
@@ -100,13 +100,13 @@ class CashDeliveryCell(BaobabMixin, DeliveryCell):
   def getBaobabSourcePayment(self, **kw):
     """
     """
-    return self.aq_parent.getBaobabSourcePayment(**kw)
+    return None
 
   security.declareProtected(Permissions.View, 'getBaobabDestinationPayment')
   def getBaobabDestinationPayment(self, **kw):
     """
     """
-    return self.aq_parent.getBaobabDestinationPayment(**kw)
+    return None
 
   security.declareProtected(Permissions.View, 'getBaobabSourceFunction')
   def getBaobabSourceFunction(self, **kw):
diff --git a/product/ERP5Banking/Document/CashDeliveryLine.py b/product/ERP5Banking/Document/CashDeliveryLine.py
index e5aa51aaeb..15a4ca7f5a 100755
--- a/product/ERP5Banking/Document/CashDeliveryLine.py
+++ b/product/ERP5Banking/Document/CashDeliveryLine.py
@@ -106,3 +106,15 @@ class CashDeliveryLine(BaobabMixin, DeliveryLine):
     if script is not None:
       return script(self)
     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
-- 
2.30.9