From 797c8b2f1eb60a8bddc5bea02eb745321a98449d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Wed, 20 Sep 2006 08:39:51 +0000 Subject: [PATCH] 2006-09-20 * fix script to get baobab destination in internal money deposit git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10198 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../InternalMoneyDeposit_getBaobabDestination.xml | 6 ++++-- bt5/erp5_banking_cash/bt/revision | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/InternalMoneyDeposit_getBaobabDestination.xml b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/InternalMoneyDeposit_getBaobabDestination.xml index 802493547f..03a37479cb 100644 --- a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/InternalMoneyDeposit_getBaobabDestination.xml +++ b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/InternalMoneyDeposit_getBaobabDestination.xml @@ -88,7 +88,7 @@ if user_id is not None:\n for site in site_list:\n context.log(\'site\',site)\n site_value = context.portal_categories.getCategoryValue(site)\n - if site_value.getVaultType().endswith(\'guichet\') and destination in site:\n + if site_value.getVaultType().endswith(\'guichet\') and (destination in site or site in destination):\n baobab_destination = site + \'/encaisse_des_billets_et_monnaies/entrante\'\n found = 1\n context.log(\'baobab_destination\',baobab_destination)\n @@ -115,7 +115,9 @@ return baobab_destination\n </item> <item> <key> <string>_filepath</string> </key> - <value> <string>Script (Python):/baobab/portal_skins/erp5_banking_cash/InternalMoneyDeposit_getBaobabDestination</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>_owner</string> </key> diff --git a/bt5/erp5_banking_cash/bt/revision b/bt5/erp5_banking_cash/bt/revision index bf0d87ab1b..62f9457511 100644 --- a/bt5/erp5_banking_cash/bt/revision +++ b/bt5/erp5_banking_cash/bt/revision @@ -1 +1 @@ -4 \ No newline at end of file +6 \ No newline at end of file -- 2.30.9