Accept Merge Request #1922: (feature/制造功能优化 -> develop)

Merge Request: 调整报告逻辑

Created By: @马广威
Accepted By: @马广威
URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1922
This commit is contained in:
马广威
2025-03-18 16:29:24 +08:00
committed by Coding
2 changed files with 2 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ class QualityCheck(models.Model):
if record.picking_id:
total_qty = 0
for move in record.picking_id.move_ids_without_package:
total_qty += move.quantity_done
total_qty += move.product_uom_qty
record.total_qty = total_qty if total_qty > 0 else ''
else:
record.total_qty = ''

View File

@@ -14,7 +14,7 @@
<!-- 使用公开访问URL的二维码 -->
<img t-att-src="'/report/barcode/QR/%s?width=100&amp;height=100' % o.get_report_url()" style="width:80px;height:80px"/>
<div style="font-size: 14px;">
<strong>报告编号: </strong><span t-field="o.name"/>
<strong>报告编号: </strong><span t-if="o.report_number_id" t-field="o.report_number_id"/> <span t-else="">ceshi</span>
</div>
<!-- 添加扫码提示 -->
<div style="font-size: 12px;">