Commit 3a157e7e authored by Jérome Perrin's avatar Jérome Perrin

only consider organisations on which the user have view permission

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32351 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3cdc608b
...@@ -69,7 +69,8 @@ def getCurrencyForSection(section_url):\n ...@@ -69,7 +69,8 @@ def getCurrencyForSection(section_url):\n
return section.getPriceCurrency()\n return section.getPriceCurrency()\n
\n \n
if section.getPortalType() == \'Category\':\n if section.getPortalType() == \'Category\':\n
member_list = section.getGroupRelatedValueList(portal_type=\'Organisation\')\n member_list = section.getGroupRelatedValueList(portal_type=\'Organisation\',\n
checked_permission=\'View\')\n
if len(member_list) == 1 and member_list[0].getPriceCurrency():\n if len(member_list) == 1 and member_list[0].getPriceCurrency():\n
return member_list[0].getPriceCurrency()\n return member_list[0].getPriceCurrency()\n
mapping = section.getMappingValue(portal_type=\'Organisation\')\n mapping = section.getMappingValue(portal_type=\'Organisation\')\n
......
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: [(\'\', \'\')] + [(x.getTitle(), x.getRelativeUrl()) for x in here.portal_categories.resolveCategory(here.getPreferredAccountingTransactionSectionCategory(\'portal_categories\')).getGroupRelatedValueList(portal_type=\'Organisation\')]</string> </value> <value> <string>python: [(\'\', \'\')] + [(x.getTitle(), x.getRelativeUrl()) for x in here.portal_categories.resolveCategory(here.getPreferredAccountingTransactionSectionCategory(\'portal_categories\')).getGroupRelatedValueList(portal_type=\'Organisation\', checked_permission=\'View\')]</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
1097 1098
\ 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