[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
This commit is contained in:
parent
aa1c3946da
commit
7e162e8993
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue