[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
This commit is contained in:
Jorge Pinna Puissant
2019-01-31 14:31:28 +00:00
parent 6a8ab26688
commit ffca0b4371
+1 -1
View File
@@ -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):