Commit 573136f9 authored by Jérome Perrin's avatar Jérome Perrin

When invoices are assigned, call updateLocalRolesOnSecurityGroups on all...

When invoices are assigned, call updateLocalRolesOnSecurityGroups on all related invoices and reindex them.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10657 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ebc265f7
...@@ -76,10 +76,12 @@ portal = transmission_sheet.getPortalObject()\n ...@@ -76,10 +76,12 @@ portal = transmission_sheet.getPortalObject()\n
\n \n
transmission_sheet.setDefaultRoleDefinitionAgent(agent)\n transmission_sheet.setDefaultRoleDefinitionAgent(agent)\n
transmission_sheet.setDefaultRoleDefinitionRoleName(\'Assignee\')\n transmission_sheet.setDefaultRoleDefinitionRoleName(\'Assignee\')\n
transmission_sheet.updateLocalRolesOnSecurityGroups()\n
\n \n
for invoice in transmission_sheet.getAggregateRelatedList(\n for invoice in transmission_sheet.getAggregateRelatedValueList(\n
portal_type=portal.getPortalInvoiceTypeList()):\n portal_type=portal.getPortalInvoiceTypeList()):\n
pass # do something ?\n invoice.updateLocalRolesOnSecurityGroups()\n
invoice.reindexObject()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -110,6 +112,24 @@ for invoice in transmission_sheet.getAggregateRelatedList(\n ...@@ -110,6 +112,24 @@ for invoice in transmission_sheet.getAggregateRelatedList(\n
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>sci</string> </value> <value> <string>sci</string> </value>
</item> </item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Anonymous</string>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Authenticated</string>
<string>Author</string>
<string>Manager</string>
<string>Member</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
<value> <value>
......
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