[Erp5-report] r27649 - /erp5/trunk/products/ERP5/Document/TradeCondition.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jun 18 10:31:07 CEST 2009
Author: fabien
Date: Thu Jun 18 10:31:05 2009
New Revision: 27649
URL: http://svn.erp5.org?rev=27649&view=rev
Log:
- remove getattr : start_date and stop_date are properties of context
- fix typo : stop_date=start_date
Modified:
erp5/trunk/products/ERP5/Document/TradeCondition.py
Modified: erp5/trunk/products/ERP5/Document/TradeCondition.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TradeCondition.py?rev=27649&r1=27648&r2=27649&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] Thu Jun 18 10:31:05 2009
@@ -171,10 +171,8 @@
# for contained Trade Model Lines
document = context.getExplanationValue()
containting_object_list.append(document)
- start_date = getattr(context, 'start_date', None)
- stop_date = getattr(context, 'stop_date', None)
containting_object_list.extend(self.findEffectiveSpecialiseValueList(context=self,
- start_date=start_date, stop_date=start_date))
+ start_date=context.getStartDate(), stop_date=context.getStopDate()))
for specialise in containting_object_list:
for trade_model_line in specialise.contentValues(
More information about the Erp5-report
mailing list