Commit 337264b5 authored by Łukasz Nowak's avatar Łukasz Nowak

- in case if BPM did not return any information about dates use old style...

 - in case if BPM did not return any information about dates use old style date coping from movement (fix will be obsoleted by full BPM functionality)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28900 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3d1df6ea
......@@ -571,6 +571,13 @@ class Rule(Predicate, XMLObject):
property_dict['start_date'] = business_path.getExpectedStartDate(
movement)
property_dict['stop_date'] = business_path.getExpectedStopDate(movement)
# in case of not fully working BPM get dates from movement
# XXX: as soon as BPM will be fully operational this hack will not be
# needed anymore
if property_dict['start_date'] is None:
property_dict['start_date'] = movement.getStartDate()
if property_dict['stop_date'] is None:
property_dict['stop_date'] = movement.getStopDate()
else: # XXX shall not be used, but business_path.getExpectedStart/StopDate
# do not works on second path...
property_dict['start_date'] = movement.getStartDate()
......
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