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
\n
for group in group_chain:\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
\n
return context\n
......@@ -132,6 +133,8 @@ return context\n
<string>group_chain</string>
<string>_getiter_</string>
<string>organisation</string>
<string>len</string>
<string>dict</string>
</tuple>
</value>
</item>
......
978
\ No newline at end of file
979
\ 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