diff --git a/product/ERP5/TargetSolver/ProfitAndLoss.py b/product/ERP5/TargetSolver/ProfitAndLoss.py
index 794582087b5ca79dacdc4d161afa564e8aa775cd..0e92cd4d0a3f7315068e70ccef60ffc553bbe6d9 100755
--- a/product/ERP5/TargetSolver/ProfitAndLoss.py
+++ b/product/ERP5/TargetSolver/ProfitAndLoss.py
@@ -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()