Commit 0d4a11ca authored by Jérome Perrin's avatar Jérome Perrin

always returns the organisation if it has a mapping

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29746 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1fbd6fd4
...@@ -84,8 +84,10 @@ group_chain.reverse()\n ...@@ -84,8 +84,10 @@ 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 and \\\n if organisation is not None and (\n
len(organisation.contentValues(filter=dict(portal_type=\'Accounting Period\'))):\n len(organisation.contentValues(\n
filter=dict(portal_type=\'Accounting Period\'))) or \n
organisation.getMapping()):\n
return organisation\n return organisation\n
\n \n
return context\n return context\n
......
1000 1001
\ 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