Commit 29d74809 authored by Romain Courteaud's avatar Romain Courteaud

We need to reindex the new AppliedRule as soon as it is created.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3266 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ffec2124
...@@ -98,6 +98,7 @@ class Order(Delivery): ...@@ -98,6 +98,7 @@ class Order(Delivery):
my_applied_rule.setCausalityValue(self) my_applied_rule.setCausalityValue(self)
# We must make sure this rule is indexed # We must make sure this rule is indexed
# now in order not to create another one later # now in order not to create another one later
my_applied_rule.immediateReindexObject()
elif len(my_applied_rule_list) == 1: elif len(my_applied_rule_list) == 1:
# Re expand the rule if possible # Re expand the rule if possible
my_applied_rule = my_applied_rule_list[0] my_applied_rule = my_applied_rule_list[0]
......
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