From ffca0b437151d4c4fa1b2d501b24d7c202b5fd5f Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Thu, 31 Jan 2019 14:31:28 +0000 Subject: [PATCH] [FIX] sale: sales team dashboard invoiced progressbar Have a sales team with one or more orders to invoice. Open the 'Sales Channels' report in Sales. Before this commit, the 'Invoicing' progress bar of the report, showed the number of order to invoice and not the sum of the invoicing amount. Now, the 'Invoicing' progress bar of the report shown the sum of the invoicing amount; and the number of order to invoice are shown in their own field. OPW-1922438 closes odoo/odoo#30735 --- addons/sale/models/sales_team.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/models/sales_team.py b/addons/sale/models/sales_team.py index bdf6ca93a37..78e6773fa8c 100644 --- a/addons/sale/models/sales_team.py +++ b/addons/sale/models/sales_team.py @@ -54,7 +54,7 @@ class CrmTeam(models.Model): ('order_line.qty_to_invoice', '>', 0), ], ['team_id'], ['team_id']) for datum in sale_order_data: - self.browse(datum['team_id'][0]).invoiced = datum['team_id_count'] + self.browse(datum['team_id'][0]).sales_to_invoice_count = datum['team_id_count'] @api.multi def _compute_invoiced(self):