Commit 346aed80 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

builder: use _edit on delivery to only reindex modification

parent 8d5acfa8
......@@ -654,7 +654,7 @@ class BuilderMixin(XMLObject, Amount, Predicate):
self._setUpdated(delivery, 'delivery')
if property_dict:
property_dict.setdefault('edit_order', ('stop_date', 'start_date'))
delivery.edit(**property_dict)
delivery._edit(reindex_object=1, **property_dict)
if created:
delivery.immediateReindexObject()
......
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