[Erp5-report] r7629 - /erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packi...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jun 7 00:10:48 CEST 2006
Author: jerome
Date: Wed Jun 7 00:10:43 2006
New Revision: 7629
URL: http://svn.erp5.org?rev=7629&view=rev
Log:
call getCausalityValue on the packing list, not the context, which may not be available to non manager roles
Modified:
erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/scripts/PackingList_updateAppliedRule.xml
Modified: erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/scripts/PackingList_updateAppliedRule.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/scripts/PackingList_updateAppliedRule.xml?rev=7629&r1=7628&r2=7629&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/scripts/PackingList_updateAppliedRule.xml (original)
+++ erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/packing_list_workflow/scripts/PackingList_updateAppliedRule.xml Wed Jun 7 00:10:43 2006
@@ -14,7 +14,9 @@
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
- <value> <string encoding="base64">O/INCg==</string> </value>
+ <value>
+ <none/>
+ </value>
</item>
<item>
<key> <string>Script_magic</string> </key>
@@ -69,7 +71,7 @@
<value> <string>packing_list = state_change[\'object\']\n
\n
activate_kw = {}\n
-related_order = context.getCausalityValue()\n
+related_order = packing_list.getCausalityValue()\n
after_path_list = []\n
if related_order is not None:\n
after_path_list.append(related_order.getPath() + \'_firstUpdateAppliedRule\')\n
@@ -137,7 +139,6 @@
<string>packing_list</string>
<string>activate_kw</string>
<string>_getattr_</string>
- <string>context</string>
<string>related_order</string>
<string>after_path_list</string>
<string>None</string>
More information about the Erp5-report
mailing list