Commit 782e59af authored by Yusei Tahara's avatar Yusei Tahara

erp5_core: Fix activity explosion bug.

Do not call container.reindexObject every time, otherwise the number
of activities explode because of recurseCallMethod.
parent df620410
Pipeline #22920 failed with stage
in 0 seconds
......@@ -333,14 +333,14 @@ class DeliveryLine(Movement, XMLMatrix, ImmobilisationMovement):
def manage_afterAdd(self, item, container):
"if the container is a line too, reindex it"
if self.meta_type == container.meta_type:
container.reindexObject()
container.activate(activity="SQLDict").reindexObject()
return Movement.manage_afterAdd(self, item, container)
security.declarePrivate('manage_beforeDelete')
def manage_beforeDelete(self, item, container):
"if the container is a line too, reindex it"
if self.meta_type == container.meta_type:
container.reindexObject()
container.activate(activity="SQLDict").reindexObject()
return Movement.manage_beforeDelete(self, item, container)
# divergence support with solving
......
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