Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
OpenERP,使用python在rml报告中添加新列_Python_Report_Openerp_Odoo_Rml - Fatal编程技术网

OpenERP,使用python在rml报告中添加新列

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

下面是我从调查统计报告python对象中获取的snip代码

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解析器中。