From dd25763f523ebd99b94d4cc0367bd1f1910a0f72 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Wed, 21 Feb 2007 17:22:07 +0000
Subject: [PATCH] fix source of outgoing cell of cash sorting

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12941 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../OutgoingCashSortingLine_getBaobabSource.xml           | 8 +-------
 bt5/erp5_banking_cash/bt/revision                         | 2 +-
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/OutgoingCashSortingLine_getBaobabSource.xml b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/OutgoingCashSortingLine_getBaobabSource.xml
index 1bbb2f3d13..cd62f9b65f 100644
--- a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/OutgoingCashSortingLine_getBaobabSource.xml
+++ b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/OutgoingCashSortingLine_getBaobabSource.xml
@@ -68,11 +68,7 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>if context.getCashStatus() == \'to_sort\':\n
-  # in this case, resource do not change\n
-  return context.getSource()\n
-else:\n
-  return None\n
+            <value> <string>return None\n
 </string> </value>
         </item>
         <item>
@@ -123,8 +119,6 @@ else:\n
                           <tuple>
                             <string>args</string>
                             <string>kw</string>
-                            <string>_getattr_</string>
-                            <string>context</string>
                             <string>None</string>
                           </tuple>
                         </value>
diff --git a/bt5/erp5_banking_cash/bt/revision b/bt5/erp5_banking_cash/bt/revision
index 6fc1e6e18c..cd004727f2 100644
--- a/bt5/erp5_banking_cash/bt/revision
+++ b/bt5/erp5_banking_cash/bt/revision
@@ -1 +1 @@
-178
\ No newline at end of file
+182
\ No newline at end of file
-- 
2.30.9