Commit 8bec5cd8 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

clear recorded properties when updating, because update means incoming...

clear recorded properties when updating, because update means incoming movements have changed and recorded properties have no meaning for updated properties.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37158 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04a9ddee
......@@ -139,9 +139,11 @@ class Rule(Predicate, XMLObject):
for movement_id in delete_list:
applied_rule._delObject(movement_id)
# update existing
# update existing and clear recorded properties
for movement, property_dict in modify_dict.items():
applied_rule[movement].edit(**property_dict)
for property_id in property_dict.iterkeys():
applied_rule[movement].clearRecordedProperty(property_id)
# add new ones
for movement_dict in add_list:
......
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