[Erp5-dev] erp5_project - bug in report generation

Bartek Gorny bartek at redpoint.mn.pl
Sat May 20 12:04:16 CEST 2006


Hi

A project's "Detailed Report" crashed, I patched the
Project_viewDetailedReportMacro script like this and now it works.

======================================================
--- Project_viewDetailedReportMacroOld  2006-05-20 11:50:01.000000000 +0200
+++ Project_viewDetailedReportMacro 2006-05-20 09:46:00.000000000 +0200
@@ -29,10 +29,10 @@
         <text:sequence-decl text:display-outline-level='0'
text:name='Drawing'/>
       </text:sequence-decls>
       <tal:block metal:define-macro="line">
-        <tal:block tal:define="milestone_list
python:current_line.contentValues(portal_type='Project Milestone',
sort_on = (('int_index','ascending', 'int'),))">
+        <tal:block tal:define="milestone_list
python:current_line.objectValues(portal_type='Project Milestone',
sort_on = (('int_index','ascending', 'int'),))">
         <tal:block tal:define="global depth python:depth + 1"/>
         <!-- Display Lines -->
-        <tal:block tal:repeat="line_item
python:current_line.contentValues(portal_type='Project Line', sort_on
= (('int_index','ascending', 'int'),))">
+        <tal:block tal:repeat="line_item
python:current_line.objectValues(portal_type='Project Line', sort_on =
(('int_index','ascending', 'int'),))">
           <text:h text:outline-level='1' text:style-name='Heading_20_1'
                   tal:content="line_item/getTitle"
                   tal:attributes="text:outline-level python:'%s' % depth;
=====================================================

Bartek



More information about the Erp5-dev mailing list