如何从Openerp的RML文件获取odt格式的报告 [英] How to Get reports in odt format from rml files in openerp

查看:75
本文介绍了如何从Openerp的RML文件获取odt格式的报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个RML文件,可以生成PDF格式的报告,但是如何生成ODT格式的同一报告?

I have an RML file that generates a report in PDF format, but how can I generate the same report in ODT format?

推荐答案

在管理"菜单下,转到低级对象:操作:报告Xml".打开该报告的条目,然后将类型从pdf更改为odt.

Under the Administration menu, go to Low Level Objects: Actions: Report Xml. Open the entry for that report, and change the type from pdf to odt.

只是使该编程与之相关,因此它不会被拖到superuser.com,这是通过此更改配置报告的XML文件的方法.将type属性添加到您的报告声明中:

Just to make this programming related so it doesn't get shuffled off to superuser.com, here's how to configure the report's XML file with this change. Add the type attribute to your report declaration:

<report 
    id="report_location_overview_all"
    type="odt"
    model="stock.location" 
    name="lot.stock.overview_all" 
    string="Location Content (With children)" 
    rml="stock/report/lot_overview_all.rml"/>

这篇关于如何从Openerp的RML文件获取odt格式的报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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