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 82eff20d9819eca4dced8367835b7e0e17484bb6..ac3e96e3b7c80bcabd40eb5d9af1319c1b8d2b43 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