diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-10-16 17:53:26 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-10-16 17:53:26 +0200 |
| commit | 41bf8ce6d900cd247c4adf33cc75e3d018c89ffb (patch) | |
| tree | a248bfe02d5b1e1495ad274bbc3c2b33f87d0b82 /addons/product_margin | |
| parent | a9f11fb4772f2862ca5806baee38cf6a043b5143 (diff) | |
| parent | b29b545fe8464610ce04ac8be11e0356962d10d9 (diff) | |
[MERGE] forward port branch 11.0 up to b29b545fe84
Diffstat (limited to 'addons/product_margin')
| -rw-r--r-- | addons/product_margin/models/product_product.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/product_margin/models/product_product.py b/addons/product_margin/models/product_product.py index 46adfc5118b..9fc94ea6310 100644 --- a/addons/product_margin/models/product_product.py +++ b/addons/product_margin/models/product_product.py @@ -107,7 +107,7 @@ class ProductProduct(models.Model): select sum(l.price_unit * l.quantity)/nullif(sum(l.quantity),0) as avg_unit_price, sum(l.quantity) as num_qty, - sum(l.quantity * (l.price_subtotal/(nullif(l.quantity,0)))) as total, + sum(l.quantity * (l.price_subtotal_signed/(nullif(l.quantity,0)))) as total, sum(l.quantity * pt.list_price) as sale_expected from account_invoice_line l left join account_invoice i on (l.invoice_id = i.id) |
