Commit 628872c8 authored by Tatuya Kamada's avatar Tatuya Kamada

Make it possible to decide updating existing document or not with the update_always flag.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38536 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96e1a249
......@@ -36,10 +36,12 @@ class PropertyGroupingMovementGroup(MovementGroup):
portal_type = 'Property Grouping Movement Group'
def test(self, document, property_dict, **kw):
# We always separate the movements from the exsiting document, because we
# did not assign the properties into the document thanks to this movement group.
# We did not assign the properties into the document thanks to this movement group.
# Therefore their is no way to compare the properties between the document
# and the movements. In other words, they are always different.
# So, we only check the update_always flag on the movement group setting here.
if self.isUpdateAlways():
return True, {}
return False, {}
def _separate(self, movement_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