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

only consider the organisation as a mapping if it contains accounting periods

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29409 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8e72ae12
...@@ -84,7 +84,8 @@ group_chain.reverse()\n ...@@ -84,7 +84,8 @@ group_chain.reverse()\n
\n \n
for group in group_chain:\n for group in group_chain:\n
organisation = getOrganisationForSectionCategory(group)\n organisation = getOrganisationForSectionCategory(group)\n
if organisation is not None:\n if organisation is not None and \\\n
len(organisation.contentValues(filter=dict(portal_type=\'Accounting Period\'))):\n
return organisation\n return organisation\n
\n \n
return context\n return context\n
...@@ -132,6 +133,8 @@ return context\n ...@@ -132,6 +133,8 @@ return context\n
<string>group_chain</string> <string>group_chain</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>organisation</string> <string>organisation</string>
<string>len</string>
<string>dict</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
978 979
\ No newline at end of file \ 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