[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user