diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-02-25 14:08:24 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-02-25 14:12:12 +0100 |
| commit | e7ca2ca3daecedccd0e7bcc608665311ef59d7d5 (patch) | |
| tree | 37b41380ffb2efa9cde6c54341e43fce990bb83d | |
| parent | b848745c4577e9e19e8b36fefb5f0358a1e1352f (diff) | |
[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
0923d1609ded4121f09a4a7ff9a9bba41dc2afb9
opw-670502
| -rw-r--r-- | addons/purchase/purchase.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index be5a5edecda..0189f0bc16e 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -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: |
