Commit 58a2f502 authored by Jérome Perrin's avatar Jérome Perrin

Take into account the fact that Base_getSectionUidListForSectionCategory...

Take into account the fact that Base_getSectionUidListForSectionCategory returns -1 when no organisation exsits
parent 0058eaa7
......@@ -65,6 +65,7 @@ def getAccountingPeriodStartDateForSectionCategory(section_category, date):\n
section_category, strict_membership=False))\n
period_start_date = None\n
for uid in section_uid:\n
if uid == -1: continue # Base_getSectionUidListForSectionCategory returns [-1] if no section_uid exists \n
section = portal.portal_catalog.getObject(uid)\n
for ap in section.contentValues(portal_type=\'Accounting Period\',\n
checked_permission=\'Access contents information\'):\n
......
1485
\ No newline at end of file
1486
\ 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