Commit 10d8d5bd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use getRootDeliveryValue() instead of getExplanationValue() because what we...

use getRootDeliveryValue() instead of getExplanationValue() because what we want to have here is the root delivery value.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37038 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ff4fd59
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>state_change[\'object\'].getExplanationValue().Delivery_updateSimulation()\n <value> <string>state_change[\'object\'].getRootDeliveryValue().Delivery_updateSimulation()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
802 803
\ No newline at end of file \ No newline at end of file
...@@ -554,7 +554,7 @@ class Movement(XMLObject, Amount, CompositionMixin): ...@@ -554,7 +554,7 @@ class Movement(XMLObject, Amount, CompositionMixin):
""" """
Returns the object explanation of this movement. Returns the object explanation of this movement.
""" """
return self.getDeliveryValue() return self.getRootDeliveryValue()
security.declareProtected( Permissions.AccessContentsInformation, security.declareProtected( Permissions.AccessContentsInformation,
'getExplanationTitle') 'getExplanationTitle')
......
...@@ -73,10 +73,6 @@ context.portal_preferences.activate(\n ...@@ -73,10 +73,6 @@ context.portal_preferences.activate(\n
passive_commit=passive_commit,\n passive_commit=passive_commit,\n
start_tree=start_tree,\n start_tree=start_tree,\n
stop_tree=stop_tree,)\n stop_tree=stop_tree,)\n
# clear cache after reindexing preferences\n
context.portal_caches.activate(tag=\'%s_clear_cache\' %tag,\n
priority=additional_priority,\n
after_tag=tag).clearAllCache()\n
\n \n
# Reindex person module\n # Reindex person module\n
print "#### Indexing person_module, stage 1 ####"\n print "#### Indexing person_module, stage 1 ####"\n
...@@ -84,7 +80,7 @@ person_module=getattr(portal, \'person_module\', None)\n ...@@ -84,7 +80,7 @@ person_module=getattr(portal, \'person_module\', None)\n
higher_priority = 1 + additional_priority\n higher_priority = 1 + additional_priority\n
if person_module is not None :\n if person_module is not None :\n
tag = \'person_stage_1\'\n tag = \'person_stage_1\'\n
folder_after_tag = (\'portal_preferences\', \'portal_preferences_clear_cache\',)\n folder_after_tag = (\'portal_preferences\',)\n
person_module.activate(tag=tag,\n person_module.activate(tag=tag,\n
priority=higher_priority,\n priority=higher_priority,\n
after_tag=folder_after_tag).Folder_reindexAll(\n after_tag=folder_after_tag).Folder_reindexAll(\n
......
1624 1625
\ No newline at end of file \ No newline at end of file
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