diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-10-15 12:21:50 +0000 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-10-15 12:21:50 +0000 |
| commit | 900db95457f94853de3b651b61f2db794747071b (patch) | |
| tree | 0bc653e9525a6948ad598a2507a51158e75b6919 /addons/product_margin | |
| parent | 5c12a664d5d41edd3e4d768b763ef94f5cc47623 (diff) | |
| parent | f026255f12b98a75bcfd84b9ff3003f439e497ac (diff) | |
[MERGE] forward port branch saas-15 up to f026255f12b
closes odoo/odoo#27792
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 3dd735b26a4..04a4e74d07d 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) |
