summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2019-01-31 14:31:28 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2019-01-31 14:31:28 +0000
commitffca0b437151d4c4fa1b2d501b24d7c202b5fd5f (patch)
tree4c43181f55aa2666c95ff0c6193062a987760483
parent6a8ab26688293f441803ea180c22dc04f3e4687a (diff)
[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
-rw-r--r--addons/sale/models/sales_team.py2
1 files changed, 1 insertions, 1 deletions
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):