[Erp5-report] r34936 jerome - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_s...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon May 3 15:09:58 CEST 2010
Author: jerome
Date: Mon May 3 15:09:54 2010
New Revision: 34936
URL: http://svn.erp5.org?rev=34936&view=rev
Log:
dont' fail if an organisation does not have a group
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml
erp5/trunk/bt5/erp5_accounting/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml?rev=34936&r1=34935&r2=34936&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml [utf8] Mon May 3 15:09:54 2010
@@ -81,13 +81,14 @@
# else we lookup in parent organisations\n
if not bank_account_list:\n
group_value = organisation_value.getGroupValue(None)\n
- uid_list = []\n
- while group_value.getPortalType() != \'Base Category\':\n
- uid_list.append(group_value.getUid())\n
- group_value = group_value.getParentValue()\n
- search_kw[\'parent_strict_group_uid\'] = uid_list\n
- search_kw[\'parent_portal_type\'] = \'Organisation\'\n
- bank_account_list = portal.portal_catalog(**search_kw)\n
+ if group_value is not None:\n
+ uid_list = []\n
+ while group_value.getPortalType() != \'Base Category\':\n
+ uid_list.append(group_value.getUid())\n
+ group_value = group_value.getParentValue()\n
+ search_kw[\'parent_strict_group_uid\'] = uid_list\n
+ search_kw[\'parent_portal_type\'] = \'Organisation\'\n
+ bank_account_list = portal.portal_catalog(**search_kw)\n
\n
else:\n
if section_category is None:\n
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=34936&r1=34935&r2=34936&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Mon May 3 15:09:54 2010
@@ -1,1 +1,1 @@
-1195
+1198
More information about the Erp5-report
mailing list