[Erp5-report] r28042 - /erp5/trunk/products/ERP5/Document/TradeModelLine.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 9 14:12:04 CEST 2009
Author: fabien
Date: Thu Jul 9 14:12:00 2009
New Revision: 28042
URL: http://svn.erp5.org?rev=28042&view=rev
Log:
current model_line should be a child of an effictive model. So it's useless to look for an effective model : the parent of this line is good.
it's non sens to use another model than the parent one to get the calculation script to calculate this line.
Modified:
erp5/trunk/products/ERP5/Document/TradeModelLine.py
Modified: erp5/trunk/products/ERP5/Document/TradeModelLine.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TradeModelLine.py?rev=28042&r1=28041&r2=28042&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TradeModelLine.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TradeModelLine.py [utf8] Thu Jul 9 14:12:00 2009
@@ -89,7 +89,7 @@
script_name = self.getCalculationScriptId()
if script_name is None:
# if model line script is None, get the default model script
- model = context.getSpecialiseValue().getEffectiveModel()
+ model = self.getParentValue()
script_name = model.getCalculationScriptId()
if script_name is None:
return None
More information about the Erp5-report
mailing list