首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OpenERP -报告创建

OpenERP -报告创建
EN

Stack Overflow用户
提问于 2011-12-28 11:54:46
回答 4查看 6.2K关注 0票数 1

我正在尝试用报表插件和openoffice创建一个新的报表,但是我不知道如何在OpenERP系统中分配它。

有没有人可以告诉我创建新报表和与openerp集成的确切步骤?

提前感谢!

EN

回答 4

Stack Overflow用户

发布于 2012-04-11 14:12:49

下面是创建OpenERP RML报告的步骤。

打开open-office.org的

代码语言:javascript
复制
- tools menu 
    - extension manager 
        - go to - base\_report\_designer 
        - plugin  →openerp\_report\_designer.zip

代码语言:javascript
复制
- restart open-office 

代码语言:javascript
复制
- open a new report
- add a loop ( select your DB)
- add loop as a repeat
- add a field  and make it customize look
- save file as a .sxw  or send to the server

  1. 将.sxw转换为.rml

代码语言:javascript
复制
- `$> cd to base-report-designer/openerp_sxw2rml` 
- `$> python openerp_sxw2rml.py ../../exam/report/.sxw > ../../exam/report/.rml`

  1. (在report文件夹中)

代码语言:javascript
复制
- exam.py  (or copy it from [http://doc.openerp.com/v6.0/developer/3\_11\_reports/11\_1\_openoffice\_report.html](http://doc.openerp.com/v6.0/developer/3_11_reports/11_1_openoffice_report.html)):

从报告导入report_sxw类考试时间(report_sxw.rml_parse):def __init__(自身,cr,uid,名称,上下文):.__init__(考试,自身).__init__(cr,uid,名称,上下文) self.localcontext.update({ ' time ':时间,}) report_sxw.report_sxw('report.exam.student','exam.student','addons/exam/report/exam.rml',parser=exam,header=True)

- (exam.py,exam.rml,exam.sxw,__init__.py)

- __init__.py:

导入检查

  1. (主检查文件夹)

代码语言:javascript
复制
- exam\_report.xml
代码语言:javascript
复制
- \_\_openerp\_\_.py
  in update  → 'exam\_report.xml'
- \_\_init\_\_.py

导入报告

票数 7
EN

Stack Overflow用户

发布于 2012-01-04 07:25:03

developer documentation中提供了创建新报告并将其添加到OpenERP的说明。听起来您可能会特别询问如何使报告显示在用户界面中。这在section on server PDF output中有描述。

票数 1
EN

Stack Overflow用户

发布于 2012-01-29 00:01:31

首先保存.odt文件,然后连接到服务器并选择open new report,然后使用正确的报告名称将其发送到服务器,然后通过选择modify existing report选项继续编辑您的报告。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8651668

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档