总数量问题

This commit is contained in:
mgw
2025-03-18 15:58:05 +08:00
parent b211ffdff9
commit 242f9c9050

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 = ''