【发布时间】:2020-08-06 04:42:34
【问题描述】:
我正在尝试将 QR 图像添加到 POS 的收据中。我在正常发票中使用的代码如下:
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s'%('QR', o.qr_code_string, 150, 150)"/>
对于收据,我将我的字符串导出为receipt.qr_string,并将以下行添加到收据的继承XML文件中:
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s'%('QR', receipt.qr_string, 150, 150)"/>
但图像看起来像一个断开的链接。我如何做到这一点?
【问题讨论】:
标签: odoo customization pos odoo-13