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):
# of creating a new one.
return True, property_dict
def _getTitle(self,movement):
order_movement_value = movement.getOrderValue()
def _getTitle(self, movement):
title = None
if order_movement_value is not None:
if 'Cell' in order_movement_value.getPortalType():
order_movement_value = order_movement_value.getParentValue()
if order_movement_value.hasTitle():
title = order_movement_value.getTitle()
if 'Cell' in movement.getPortalType():
movement = movement.getParentValue()
if movement.hasTitle():
title = movement.getTitle()
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