Odoo BIRT 集成基础模块 / Odoo BIRT Integration Base Module
演示访问 / Demo Access
- 演示网站: https://demo.qianxunman.top/web
- 账号: demo
- 密码: demo
- Demo Site: https://demo.qianxunman.top/web
- Username: demo
- Password: demo
功能特性 / 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 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
-
作者: 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
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module