diff --git a/addons/account/report/account_invoice_report.py b/addons/account/report/account_invoice_report.py index df6c4c5c2f86165c97cba0cd59691138d1f8cdf7..7c6bf726a3817689ea618a4363a5fca2f33c5eb3 100644 --- a/addons/account/report/account_invoice_report.py +++ b/addons/account/report/account_invoice_report.py @@ -141,7 +141,7 @@ class AccountInvoiceReport(models.Model): JOIN ( -- Temporary table to decide if the qty should be added or retrieved (Invoice vs Refund) SELECT id,(CASE - WHEN ai.type::text = ANY (ARRAY['out_refund'::character varying::text, 'in_invoice'::character varying::text]) + WHEN ai.type::text = ANY (ARRAY['in_refund'::character varying::text, 'in_invoice'::character varying::text]) THEN -1 ELSE 1 END) AS sign