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): ...@@ -51,8 +51,9 @@ class ProfitAndLoss(CopyToTarget):
if delivery_line_quantity is not None: if delivery_line_quantity is not None:
target_quantity = delivery_line_quantity * movement.getDeliveryRatio() target_quantity = delivery_line_quantity * movement.getDeliveryRatio()
added_quantity = movement.getQuantity() - target_quantity added_quantity = movement.getQuantity() - target_quantity
movement.setProfitQuantity(added_quantity) #movement.setProfitQuantity(added_quantity)
movement.immediateReindexObject() movement.edit(profit_quantity=added_quantity)
#movement.immediateReindexObject()
delivery = movement.getDeliveryValue() delivery = movement.getDeliveryValue()
if delivery is not None: if delivery is not None:
delivery.activate(after_path_and_method_id=(movement.getPath(), ['immediateReindexObject', 'recursiveImmediateReindexObject'])).edit() 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