From 97f281a11bb2db3db9c8caf766767a7c250ea58d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Wed, 25 Oct 2006 15:17:16 +0000
Subject: [PATCH] get workflow history on document not line

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10941 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../IncomingMutilatedBanknoteLine_getBaobabDestination.xml      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/IncomingMutilatedBanknoteLine_getBaobabDestination.xml b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/IncomingMutilatedBanknoteLine_getBaobabDestination.xml
index 82eff20d98..ac3e96e3b7 100644
--- a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/IncomingMutilatedBanknoteLine_getBaobabDestination.xml
+++ b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/IncomingMutilatedBanknoteLine_getBaobabDestination.xml
@@ -71,7 +71,7 @@
             <value> <string># if sent to headquarter, line must not exist\n
 if not \'siege\' in context.getSource():\n
   # if we sent to headquarter, we have order the document at one time\n
-  for workflow_item in context.Base_getWorkflowHistoryItemList(\'mutilated_banknote_workflow\',display=0):\n
+  for workflow_item in context.getParentValue().Base_getWorkflowHistoryItemList(\'mutilated_banknote_workflow\',display=0):\n
     if workflow_item.getProperty(\'action\')==\'order_action\':\n
       return None\n
 \n
-- 
2.30.9