Commit ed7eb0a4 authored by Jérome Perrin's avatar Jérome Perrin

do not fail if no section category is set in preferences

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34154 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea127fa5
......@@ -54,7 +54,10 @@
<item>
<key> <string>_body</string> </key>
<value> <string>section = context.portal_preferences.getPreferredSectionCategory() or\\\n
context.portal_preferences.getPreferredAccountingTransactionSectionCategory() \n
context.portal_preferences.getPreferredAccountingTransactionSectionCategory()\n
\n
if not section:\n
return [(\'\', \'\')]\n
\n
section_value = context.portal_categories.resolveCategory(section)\n
value_list = section_value.getGroupRelatedValueList(portal_type=portal_type,\n
......
1536
\ No newline at end of file
1537
\ 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