Commit 0068f892 authored by Jérome Perrin's avatar Jérome Perrin

call getCausalityValue on the packing list, not the context, which may not be...

call getCausalityValue on the packing list, not the context, which may not be available to non manager roles

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7629 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b098f8e
......@@ -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 @@ packing_list.activate(\n
<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>
......
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