0

Here is the snip code I took from survey statistics report python object

if percantage:
    rml += """<td color="#FFF435"><para style="answer_bold">""" +                   
        tools.ustr(percantage) +"% (" + tools.ustr(cal_count) + """)</para></td>"""
rml += """<td color="#FFF435"><para style="answer_bold">"""+ tools.ustr(summery_perc)     
    +"%(" + tools.ustr(cal_count) + """)</para></td>""" 

what I want to do is in matrix_of_choices_only_one_ans question type I want to add average of answered question per each column and overall summary I already did the calculation code part but when I add the new column (seen line it 3) it popups error. What am i missing here? your any help would be appreciated I am new to rml

noble_man
  • 352
  • 3
  • 20

1 Answers1

1

It popups error because you have a blockTable with a defined number of columns (in colWidths) so we can't have more columns than this defined number.

Quentin THEURET
  • 1,222
  • 6
  • 12
  • #Quentin THEURET thanks I thought clowidth is for width, I need to read about rml – noble_man Aug 22 '14 at 10:45
  • Here is the link to the documentation of RML : www.reportlab.com/docs/rml2pdf-userguide.pdf − Some topics are not integrated into the OpenERP/Odoo RML parser. – Quentin THEURET Aug 22 '14 at 11:29