[FIX] purchase: delivery quantities with BOMs, expected singleton

`self` is the variable with all the purchase order lines,
`line` is the variable with the current line in the loop iteration.

This is expected to get the line quantity. Having written
`self` instead of `line` is an oversight of the revision
0923d1609d

opw-670502
This commit is contained in:
Denis Ledoux
2016-02-25 14:12:12 +01:00
parent b848745c45
commit e7ca2ca3da
+1 -1
View File
@@ -457,7 +457,7 @@ class PurchaseOrderLine(models.Model):
continue
bom_delivered = self.sudo()._get_bom_delivered(line.sudo())
if bom_delivered and any(bom_delivered.values()):
total = self.product_qty
total = line.product_qty
elif bom_delivered:
total = 0.0
else: