Commit 418e6d39 authored by Guillaume Michon's avatar Guillaume Michon

Really removed immediateReindexObject() call...


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3371 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2e87fd8
......@@ -51,8 +51,9 @@ class ProfitAndLoss(CopyToTarget):
if delivery_line_quantity is not None:
target_quantity = delivery_line_quantity * movement.getDeliveryRatio()
added_quantity = movement.getQuantity() - target_quantity
movement.setProfitQuantity(added_quantity)
movement.immediateReindexObject()
#movement.setProfitQuantity(added_quantity)
movement.edit(profit_quantity=added_quantity)
#movement.immediateReindexObject()
delivery = movement.getDeliveryValue()
if delivery is not None:
delivery.activate(after_path_and_method_id=(movement.getPath(), ['immediateReindexObject', 'recursiveImmediateReindexObject'])).edit()
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