Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Purchase (purchase)
• Invoicing (account) • Discuss (mail) |
Community Apps Dependencies | Show |
Lines of code | 303 |
Technical Name |
odoo_birt_example |
License | LGPL-3 |
Website | https://freedoo.qianxunman.top |
Versions | 12.0 13.0 14.0 15.0 16.0 17.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Purchase (purchase)
• Invoicing (account) • Discuss (mail) |
Community Apps Dependencies | Show |
Lines of code | 303 |
Technical Name |
odoo_birt_example |
License | LGPL-3 |
Website | https://freedoo.qianxunman.top |
Versions | 12.0 13.0 14.0 15.0 16.0 17.0 18.0 |
Odoo BIRT 集成示例模块 / Odoo BIRT Integration Example Module
演示访问 / Demo Access
- 演示网站: https://demo.qianxunman.top/web
- 账号: demo
- 密码: demo
- Demo Site: https://demo.qianxunman.top/web
- Username: demo
- Password: demo
模块概述 / Module Overview
这是一个演示如何将BIRT报表嵌入Odoo网页的示例模块。 This is an example module demonstrating how to embed BIRT reports into Odoo web pages.
功能特性 / Features
- 直接嵌入BIRT报表到Odoo网页中
- 通过iframe方式嵌入报表查看器
Directly embed BIRT reports into Odoo pages - Embed report viewer via iframe
- 支持多种报表导出格式
- Excel (.xlsx)
- Word (.docx)
- 其他常见格式 Support multiple export formats
- Excel (.xlsx)
- Word (.docx)
-
Other common formats
-
与Odoo原生打印功能无缝集成
- 保持与原生打印相同的用户体验
- 支持批量打印 Seamless integration with native Odoo printing
- Maintain same user experience as native printing
- Support batch printing
安装要求 / Installation Requirements
友情提示: 安装本模块前请先安装odoo_birt基础模块
Note: Please install odoo_birt base module before installing this one
- Odoo 12.0或更高版本
- 已安装odoo_birt基础模块
- 可访问的BIRT报表服务器
- Odoo 12.0 or higher
- odoo_birt base module installed
- Accessible BIRT report server
配置说明 / Configuration
- 在
views/views.xml
中配置报表URL - 设置报表格式和绑定模型
- 配置菜单项显示位置
- Configure report URLs in
views/views.xml
- Set report formats and binding models
- Configure menu item display locations
使用示例 / Usage Examples
- 销售订单打印预览
- 路径: Reports > Metabase > 销售订单打印预览 Sales Order Print Preview
-
Path: Reports > Metabase > Sales Order Print Preview
-
采购订单导出Excel
- 通过打印菜单选择"purchase Order Birt xlsx" Purchase Order Export to Excel
- Select "purchase Order Birt xlsx" from print menu
技术支持 / Technical Support
- 作者: qianxunman
- 邮箱: hb.luojun@outlook.com
- 网站: https://freedoo.qianxunman.top
- Author: qianxunman
- Email: hb.luojun@outlook.com
- Website: https://freedoo.qianxunman.top
- 当前版本: 12.0.1.0
- Current Version: 12.0.1.0
功能截图 / Screenshots
代码示例 / Code Examples
内嵌网页报表示例 / Example of Embedding Web Page Reports
xml
<record id="sale_order_action_url" model="ir.actions.client">
<field name="name">report_center_action_url</field>
<field name="tag">iframe_action</field>
<field name="context">{'url': 'https://birt.qianxunman.top/birt/frameset?__report=sale_order_name.rptdesign'}</field>
</record>
导出功能示例 / Example of Export Function
xml
<record id="purchase_order_birt_report_pdf" model="ir.actions.report">
<field name="name">purchase Order Birt pdf</field>
<field name="model">purchase.order</field>
<field name="report_type">qweb-text</field>
<field name="birt_format">pdf</field>
<field name="birt_url">https://birt.qianxunman.top/birt/run?__report=purchase_order.rptdesign</field>
<field name="binding_model_id" ref="purchase.model_purchase_order"/>
<field name="report_name">purchase Order Birt pdf</field>
<field name="print_report_name">'purchase order - %s' % (object.name)</field>
</record>
BIRT 报表接收参数设置
使用 ids
接收 Odoo 网页传递的参数
注意事项
BIRT 服务和 Odoo 服务都需要配置 SSL(HTTPS),才能正常访问
BIRT report parameter reception settings
Use ids
to receive parameters passed from the Odoo web page
Notes
Both the BIRT service and the Odoo service need to be configured with SSL (HTTPS) to be accessed normally.
相关链接 / Related Links
- BIRT官方网站
- BIRT文档中心
- BIRT社区论坛
- BIRT GitHub仓库
Official Links: - BIRT Official Site - BIRT Documentation - BIRT Community Forum - BIRT GitHub Repository
Please log in to comment on this module