From 85b347ea482336019c52607b02ae5c448ff96f19 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Thu, 13 Dec 2018 19:54:44 +0000 Subject: [PATCH] [11.0] sale_crm: opportunity sale_count is displayed as quotations count so it should match the number of open quotations (excluding orders) closes odoo/odoo#29530 --- addons/sale_crm/models/crm_lead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_crm/models/crm_lead.py b/addons/sale_crm/models/crm_lead.py index b4eeb43f565..2e62e818905 100644 --- a/addons/sale_crm/models/crm_lead.py +++ b/addons/sale_crm/models/crm_lead.py @@ -20,7 +20,7 @@ class CrmLead(models.Model): nbr = 0 company_currency = lead.company_currency or self.env.user.company_id.currency_id for order in lead.order_ids: - if order.state in ('draft', 'sent', 'sale'): + if order.state in ('draft', 'sent'): nbr += 1 if order.state not in ('draft', 'sent', 'cancel'): total += order.currency_id.compute(order.amount_untaxed, company_currency)