Commit 63a42bb1 authored by Jérome Perrin's avatar Jérome Perrin

title movement group should operate with the title stored on simulation

movement, not on the order's movement title.
Rules and solvers are supposed to copy the title in simulation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30072 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 26f57037
...@@ -45,12 +45,10 @@ class TitleMovementGroup(MovementGroup): ...@@ -45,12 +45,10 @@ class TitleMovementGroup(MovementGroup):
# of creating a new one. # of creating a new one.
return True, property_dict return True, property_dict
def _getTitle(self,movement): def _getTitle(self, movement):
order_movement_value = movement.getOrderValue()
title = None title = None
if order_movement_value is not None: if 'Cell' in movement.getPortalType():
if 'Cell' in order_movement_value.getPortalType(): movement = movement.getParentValue()
order_movement_value = order_movement_value.getParentValue() if movement.hasTitle():
if order_movement_value.hasTitle(): title = movement.getTitle()
title = order_movement_value.getTitle()
return title return title
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