From 7e162e899318410e836a08907a51070ba21014f4 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sat, 14 May 2016 18:15:40 +0200 Subject: [PATCH] [FIX] account: total_invoiced field should be only for customer "total_invoiced" must only take customer invoices into account because when you click on the button "invoiced" in the partner view form you just see the customer invoices. Adaptation for 8.0 of 9.0 fix made at 37569695 Closes #12044 --- addons/account/partner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/partner.py b/addons/account/partner.py index 36011714cdf..ca2a4d73fe2 100644 --- a/addons/account/partner.py +++ b/addons/account/partner.py @@ -276,6 +276,7 @@ class res_partner(osv.osv): AND cr.currency_id = %%s AND (COALESCE(account_invoice_report.date, NOW()) >= cr.date_start) AND (COALESCE(account_invoice_report.date, NOW()) < cr.date_end OR cr.date_end IS NULL) + AND account_invoice_report.type in ('out_invoice', 'out_refund') """ % where_clause # price_total is in the currency with rate = 1