Skip to Content
Menu

49.87

v 17.0 Third Party
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Purchase (purchase)
Invoicing (account)
Discuss (mail)
Community Apps Dependencies
Lines of code 303
Technical Name odoo_birt_example
LicenseLGPL-3
Websitehttps://freedoo.qianxunman.top
Versions 12.0 13.0 14.0 15.0 16.0 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Purchase (purchase)
Invoicing (account)
Discuss (mail)
Community Apps Dependencies
Lines of code 303
Technical Name odoo_birt_example
LicenseLGPL-3
Websitehttps://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

  1. 直接嵌入BIRT报表到Odoo网页中
  2. 通过iframe方式嵌入报表查看器

Directly embed BIRT reports into Odoo pages - Embed report viewer via iframe

  1. 支持多种报表导出格式
  2. PDF
  3. Excel (.xlsx)
  4. Word (.docx)
  5. 其他常见格式 Support multiple export formats
  6. PDF
  7. Excel (.xlsx)
  8. Word (.docx)
  9. Other common formats

  10. 与Odoo原生打印功能无缝集成

  11. 保持与原生打印相同的用户体验
  12. 支持批量打印 Seamless integration with native Odoo printing
  13. Maintain same user experience as native printing
  14. 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

  1. views/views.xml中配置报表URL
  2. 设置报表格式和绑定模型
  3. 配置菜单项显示位置
  4. Configure report URLs in views/views.xml
  5. Set report formats and binding models
  6. Configure menu item display locations

使用示例 / Usage Examples

  1. 销售订单打印预览
  2. 路径: Reports > Metabase > 销售订单打印预览 Sales Order Print Preview
  3. Path: Reports > Metabase > Sales Order Print Preview

  4. 采购订单导出Excel

  5. 通过打印菜单选择"purchase Order Birt xlsx" Purchase Order Export to Excel
  6. 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 Parameter passing

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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.