Commit c5a21bf1 authored by Jérome Perrin's avatar Jérome Perrin

don't reexpand tax rule if simulation movement is already linked to a delivery


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24746 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11eed6a2
...@@ -101,7 +101,8 @@ class TaxRule(DeliveryRule): ...@@ -101,7 +101,8 @@ class TaxRule(DeliveryRule):
else: else:
for existing_simulation_movement in \ for existing_simulation_movement in \
existing_simulation_movement_list: existing_simulation_movement_list:
existing_simulation_movement.edit(**property_dict) if existing_simulation_movement.getDelivery() is None:
existing_simulation_movement.edit(**property_dict)
# Pass to base class # Pass to base class
Rule.expand(self, applied_rule, force=force, **kw) Rule.expand(self, applied_rule, force=force, **kw)
......
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