调整二维码内容
This commit is contained in:
@@ -11,13 +11,15 @@
|
||||
<h2>出厂检验报告</h2>
|
||||
</div>
|
||||
<div class="float-right" style="text-align: right;">
|
||||
<!-- 使用完整URL的二维码生成方式 -->
|
||||
<t t-set="base_url" t-value="request.env['ir.config_parameter'].sudo().get_param('web.base.url')"/>
|
||||
<t t-set="report_url" t-value="'%s/web#id=%s&model=quality.check&view_type=form' % (base_url, o.id)"/>
|
||||
<img t-att-src="'/report/barcode/QR/%s' % report_url" style="width:80px;height:80px"/>
|
||||
<!-- 使用公开访问URL的二维码 -->
|
||||
<img t-att-src="'/report/barcode/QR/%s' % o.get_report_url()" style="width:80px;height:80px"/>
|
||||
<div style="font-size: 20px;">
|
||||
<strong>报告编号: </strong><span t-field="o.name"/>
|
||||
</div>
|
||||
<!-- 添加扫码提示 -->
|
||||
<div style="font-size: 12px; margin-top: 5px;">
|
||||
<strong>扫描二维码查看PDF报告</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user