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

fixup! Refactor code to not search for Moviments, all projects validated are enough

We should also support the case where user cannot access project module
parent 247bd840
...@@ -61,7 +61,7 @@ portal = context.getPortalObject()\n ...@@ -61,7 +61,7 @@ portal = context.getPortalObject()\n
# case 1: script is used for reports, we display all validated projects.\n # case 1: script is used for reports, we display all validated projects.\n
if context.getPortalType() == \'Accounting Transaction Module\':\n if context.getPortalType() == \'Accounting Transaction Module\':\n
project_list = []\n project_list = []\n
for project in portal.project_module.searchFolder(\n for project in portal.portal_catalog(\n
portal_type=\'Project\',\n portal_type=\'Project\',\n
select_list=[\'relative_url\', \'title\'],\n select_list=[\'relative_url\', \'title\'],\n
validation_state=(\'validated\',),\n validation_state=(\'validated\',),\n
......
1548 1549
\ 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