How to Get reports in odt format from rml files in openerp

这一生的挚爱 提交于 2019-12-24 01:58:09

问题


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


回答1:


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.

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"/>


来源:https://stackoverflow.com/questions/5102450/how-to-get-reports-in-odt-format-from-rml-files-in-openerp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!