Openerp报告设计器调用函数来自解析器

时间:2015-05-07 14:59:31

标签: report openerp designer

我通过open office openerp report designer extension

为我的对象创建了一个报告

enter image description here 在我的报告中我需要调用函数进程,所以我需要在我的报告中附加一个解析器来获取我的函数。

我定义了一个解析器:

enter image description here

我怎样才能将我的解析器附加到我报告的报告中,我需要我的报告为.odt文件

谢谢。

1 个答案:

答案 0 :(得分:0)

请在解析器的末尾添加以下行。

report_sxw.report_sxw(     'your.report.name',     'your.openerp.model.like.product.product',     '插件/ your_module /报告/ rml_file_name.rml',     解析器= notariat_report_contrat,标题= “外部” )

多数民众赞成。解析器附有您的报告。