[Erp5-report] r30781 - /erp5/trunk/products/ERP5OOo/FormPrintout.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Nov 20 11:12:29 CET 2009
Author: tatuya
Date: Fri Nov 20 11:12:26 2009
New Revision: 30781
URL: http://svn.erp5.org?rev=30781&view=rev
Log:
Fix to get the field properly.
Modified:
erp5/trunk/products/ERP5OOo/FormPrintout.py
Modified: erp5/trunk/products/ERP5OOo/FormPrintout.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/FormPrintout.py?rev=30781&r1=30780&r2=30781&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/FormPrintout.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/FormPrintout.py [utf8] Fri Nov 20 11:12:26 2009
@@ -371,7 +371,7 @@
ooo_builder=ooo_builder,
iteration_index=iteration_index)
elif isinstance(field, ReportBox):
- report_method = getattr(field, field.report_method, None)
+ report_method = getattr(field, field.get_value('report_method'), None)
element_tree = self._replaceXmlByReportSection(element_tree=element_tree,
extra_context=extra_context,
report_method=report_method,
More information about the Erp5-report
mailing list