OpenERP,使用python在rml报告中添加新列
下面是我从调查统计报告python对象中获取的snip代码OpenERP,使用python在rml报告中添加新列,python,report,openerp,odoo,rml,Python,Report,Openerp,Odoo,Rml,下面是我从调查统计报告python对象中获取的snip代码 if percantage: rml += """<td color="#FFF435"><para style="answer_bold">""" + tools.ustr(percantage) +"% (" + tools.ustr(cal_count) + """)</para></td>""" rml += """&l
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>"""
if percantage:
rml+=“”“+
tools.ustr(percantage)+“%(“+tools.ustr(校准计数)+”“”)
rml+=''tools.ustr(Summy_perc)
+“%(“+tools.ustr(校准计数)+”“”)”
我想做的是在矩阵中选择一个问题类型我想添加每列回答问题的平均值和总体总结我已经做了计算代码部分,但当我添加新列(见第3行)时,它会弹出错误。我错过了什么?如果您有任何帮助,我们将不胜感激。我是rml的新手,它弹出错误,因为您有一个具有定义列数(在ColWidth中)的blockTable,因此我们不能有超过此定义列数的列。#Quentin THEURET谢谢我认为clowidth是宽度,我需要阅读关于RML的内容,这里是指向RML文档的链接:www.reportlab.com/docs/rml2pdf-userguide.pdf− 有些主题没有集成到OpenERP/ODOORML解析器中。