Commit 4c6c8364 authored by Jérome Perrin's avatar Jérome Perrin

access state change's object using sci['object'] rather than sci.object to...

access state change's object using sci['object'] rather than sci.object to workaround http://www.zope.org/Collectors/Zope/1779 because workflow scripts have proxyroles. BTW do they really need proxy roles ?



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8821 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cf5d82d0
......@@ -66,7 +66,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>line = state_change.object\n
<value> <string>line = state_change[\'object\']\n
for simulation_movement in line.getDeliveryRelatedValueList():\n
simulation_movement.edit(delivery=\'\')\n
</string> </value>
......
......@@ -66,7 +66,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>delivery = state_change.object\n
<value> <string>delivery = state_change[\'object\']\n
for line in delivery.getMovementList():\n
for simulation_movement in line.getDeliveryRelatedValueList():\n
simulation_movement.edit(delivery=\'\')\n
......
......@@ -66,7 +66,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>immobilisation_content = state_change.object\n
<value> <string>immobilisation_content = state_change[\'object\']\n
immobilisation = immobilisation_content.getRootDeliveryValue()\n
if immobilisation.getImmobilisationState() != \'calculating\':\n
immobilisation.calculate_immobilisation_validity()\n
......
......@@ -66,7 +66,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context = state_change.object\n
<value> <string>context = state[\'change.object\']\n
for movement in context.getAggregatedItemsNextImmobilisationMovementValueList():\n
if movement.getImmobilisationState() != \'calculating\':\n
movement.calculate_immobilisation_validity()\n
......
......@@ -66,7 +66,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>immobilisation = state_change.object\n
<value> <string>immobilisation = state[\'change.object\']\n
if immobilisation.getImmobilisationState() != \'calculating\':\n
immobilisation.calculate_immobilisation_validity()\n
</string> </value>
......
......@@ -66,7 +66,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context = state_change.object\n
<value> <string>context = state_change[\'object\']\n
context.activate().updateImmobilisationState()\n
\n
# It is done before and after because stop_date may have change\n
......
......@@ -66,7 +66,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context = state_change.object\n
<value> <string>context = state_change[\'object\']\n
for movement in context.getAggregatedItemsNextImmobilisationMovementValueList():\n
if movement.getImmobilisationState() != \'calculating\':\n
movement.calculate_immobilisation_validity()\n
......
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