Commit bb457b01 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

same as r37158 (clear recorded properties when updating, because update means...

same as r37158 (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@37302 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 995551aa
......@@ -165,6 +165,8 @@ class MovementCollectionUpdaterMixin:
for movement in movement_diff.getUpdatableMovementList():
kw = movement_diff.getMovementPropertyDict(movement)
movement.edit(**kw)
for property_id in kw.iterkeys():
movement.clearRecordedProperty(property_id)
for movement in movement_diff.getNewMovementList():
# This case is easy, because it is an applied rule
kw = movement_diff.getMovementPropertyDict(movement)
......
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