[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user