Skip to main content
 首页 » 编程设计

python之如何在 PDF 报告中显示二进制字段图像

2025年05月04日21leader

如何在 OpenERP 中的报表上显示二进制字段图像?我只是使用 .sxw 将其转换为 .rml。我想在 pdf 报告中显示该图像。

请您参考如下方法:

编辑您的 rml 文件。我使用“image_field”作为二进制字段。

<image>[[ obj.image_field or removeParentNode('image') ]]</image> 

也可以指定位置

<image x="21.3cm" y="47.6cm" height="40.0" >[[ obj.image_field or removeParentNode('image') ]]</image>