调整名称及总数量逻辑
This commit is contained in:
@@ -151,7 +151,8 @@ class QualityCheck(models.Model):
|
||||
if record.picking_id:
|
||||
total_qty = 0
|
||||
for move in record.picking_id.move_ids_without_package:
|
||||
total_qty += int(move.product_uom_qty)
|
||||
if move.product_id == record.product_id:
|
||||
total_qty = int(move.product_uom_qty)
|
||||
record.total_qty = total_qty if total_qty > 0 else ''
|
||||
else:
|
||||
record.total_qty = ''
|
||||
|
||||
Reference in New Issue
Block a user