如何在openerp的RML报告中添加用户定义的标头? [英] how to add a user defined header in a rml report in openerp?

查看:83
本文介绍了如何在openerp的RML报告中添加用户定义的标头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了公司中定义的页眉/页脚之外,如何为报告(例如交货单中的拣配清单报告)添加新的页眉/页脚?

How can I add a new header/footer for a report(for example picking list report in delivery order) other than the header/ footer defined in the company?

推荐答案

在报告标记中,将标头设为"False", 例如.

In report tag put header='False', eg.

<report header='False' auto="False" id="report_product_history" 
model="product.product" name="stock.product.history"
 string="Stock Level Forecast"/>

它不会打印公司中定义的默认标题. 然后在rml文件中找到<pageTemplate>标记,并将其替换为您的rml代码. 例如.

it will not print the default header define in the company. then in rml file find <pageTemplate> tag, and replace it with your rml code. eg.

 <template pageSize="(595.0,842.0)" title="Test" 
        author="Atul Makwana" allowSplitting="20">
        <pageTemplate id="first">
         ***Your rml header & footer***
        </pageTemplate>
 </template>

这样,您可以放置​​新的页眉和页脚.

This way you can put new header and footer.

这篇关于如何在openerp的RML报告中添加用户定义的标头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆