From 19a0e85cb294a7fa0c34f6b02ec07b05b1ad30fb Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Wed, 4 Apr 2007 21:51:44 +0000
Subject: [PATCH] forgot to call checkActivities

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

diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDelivery_checkCounterInventory.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDelivery_checkCounterInventory.xml
index 85daaf26a5..f2e91e3259 100644
--- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDelivery_checkCounterInventory.xml
+++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDelivery_checkCounterInventory.xml
@@ -109,7 +109,7 @@ if no_balance_check:\n
 serialize_dict = {}\n
 \n
 activity_tool = context.portal_activities\n
-def checkActivities(line,source_counter):\n
+def checkActivities(source_counter):\n
   if activity_tool.countMessageWithTag(source_counter):\n
     msg = Message(domain=\'ui\', message="There are operations pending for this vault that prevent form calculating its position. Please try again later.")\n
     raise ValidationFailed, (msg,)\n
@@ -127,6 +127,7 @@ for line in line_list :\n
     serialize_dict[source_counter] = 1\n
     source_object = context.portal_categories.getCategoryValue(source_counter)\n
     source_object.serialize()\n
+    checkActivities(source_counter)\n
   # Reindex this line with this particular source_counter tag\n
   activate_kw = {\'tag\':source_counter}\n
   line.reindexObject(activate_kw=activate_kw)\n
diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision
index 1edbdbab42..e3e1916cf5 100644
--- a/bt5/erp5_banking_core/bt/revision
+++ b/bt5/erp5_banking_core/bt/revision
@@ -1 +1 @@
-185
\ No newline at end of file
+187
\ No newline at end of file
-- 
2.30.9