Commit f620be63 authored by Julien Muchembled's avatar Julien Muchembled

Fix calculation of select_method in BPMBuilder.searchMovementList

- use self instead of portal as context
- _getTypeBasedMethod return the object directly (not its name)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34487 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad36a5ca
...@@ -152,9 +152,11 @@ class BPMBuilder(Alarm): ...@@ -152,9 +152,11 @@ class BPMBuilder(Alarm):
# We only search Simulation Movement - Luke do not know why... # We only search Simulation Movement - Luke do not know why...
kw['portal_type'] = 'Simulation Movement' # blah! kw['portal_type'] = 'Simulation Movement' # blah!
select_method = getattr(self.getPortalObject(), method_id = self.getSimulationSelectMethodId()
self.simulation_select_method_id or if method_id:
self._getTypeBasedMethod('_selectDefaultMovement')) select_method = getattr(self, method_id)
else:
select_method = self._getTypeBasedMethod('_selectDefaultMovement')
input_movement_value_list = select_method(**kw) input_movement_value_list = select_method(**kw)
movement_dict = {} movement_dict = {}
......
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