diff --git a/sale_report_delivered_subtotal/reports/sale_report.py b/sale_report_delivered_subtotal/reports/sale_report.py index 52f30b17e..8d59e0d14 100644 --- a/sale_report_delivered_subtotal/reports/sale_report.py +++ b/sale_report_delivered_subtotal/reports/sale_report.py @@ -14,9 +14,7 @@ def _query(self, with_clause="", fields=None, groupby="", from_clause=""): if fields is None: fields = {} select_str_price = """ , - sum((l.price_subtotal / - coalesce(nullif(l.product_uom_qty, 0), 1) - ) * l.qty_delivered) + sum(l.price_reduce * l.qty_delivered) as price_subtotal_delivered """ select_str_weight = """ ,