Commit 7c1ab281 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Specify force_update=1, because otherwise delivery_movement.getPrice() is...

Specify force_update=1, because otherwise delivery_movement.getPrice() is called implicitly, and this generates an unnecessary calculation.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15583 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cb9493f1
......@@ -519,7 +519,7 @@ class OrderBuilder(XMLObject, Amount, Predicate):
property_dict['quantity'] = simulation_movement.getQuantity()
property_dict['price'] = simulation_movement.getPrice()
# Update properties on object (quantity, price...)
delivery_movement._edit(**property_dict)
delivery_movement._edit(force_update=1, **property_dict)
#simulation_movement.setDeliveryRatio(1)
simulation_movement.edit(delivery_ratio=1)
......
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