调整二维码内容

This commit is contained in:
mgw
2025-03-14 17:58:22 +08:00
parent 5d703b8b73
commit 67f3c29af3

View File

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