Commit 797c8b2f authored by Aurel's avatar Aurel

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
parent 2e33910d
......@@ -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>
......
4
\ No newline at end of file
6
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment