[Erp5-report] r10657 - /erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/port...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 11 13:07:56 CEST 2006
Author: jerome
Date: Wed Oct 11 13:07:55 2006
New Revision: 10657
URL: http://svn.erp5.org?rev=10657&view=rev
Log:
When invoices are assigned, call updateLocalRolesOnSecurityGroups on all related invoices and reindex them.
Modified:
erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transmission_sheet_workflow/scripts/affectInvoices.xml
Modified: erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transmission_sheet_workflow/scripts/affectInvoices.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transmission_sheet_workflow/scripts/affectInvoices.xml?rev=10657&r1=10656&r2=10657&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transmission_sheet_workflow/scripts/affectInvoices.xml (original)
+++ erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transmission_sheet_workflow/scripts/affectInvoices.xml Wed Oct 11 13:07:55 2006
@@ -76,10 +76,12 @@
\n
transmission_sheet.setDefaultRoleDefinitionAgent(agent)\n
transmission_sheet.setDefaultRoleDefinitionRoleName(\'Assignee\')\n
+transmission_sheet.updateLocalRolesOnSecurityGroups()\n
\n
-for invoice in transmission_sheet.getAggregateRelatedList(\n
+for invoice in transmission_sheet.getAggregateRelatedValueList(\n
portal_type=portal.getPortalInvoiceTypeList()):\n
- pass # do something ?\n
+ invoice.updateLocalRolesOnSecurityGroups()\n
+ invoice.reindexObject()\n
</string> </value>
</item>
<item>
@@ -109,6 +111,24 @@
<item>
<key> <string>_params</string> </key>
<value> <string>sci</string> </value>
+ </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>
<key> <string>errors</string> </key>
More information about the Erp5-report
mailing list