[Erp5-report] r28900 - /erp5/trunk/products/ERP5/Document/Rule.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 10 14:51:43 CEST 2009
Author: luke
Date: Thu Sep 10 14:51:42 2009
New Revision: 28900
URL: http://svn.erp5.org?rev=28900&view=rev
Log:
- 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)
Modified:
erp5/trunk/products/ERP5/Document/Rule.py
Modified: erp5/trunk/products/ERP5/Document/Rule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Rule.py?rev=28900&r1=28899&r2=28900&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Rule.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Rule.py [utf8] Thu Sep 10 14:51:42 2009
@@ -571,6 +571,13 @@
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()
More information about the Erp5-report
mailing list