summaryrefslogtreecommitdiff
path: root/addons/sale_crm
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-02-20 17:37:22 +0100
committerChristophe Simonis <chs@odoo.com>2019-02-20 17:37:22 +0100
commitdb1c7765cba0692cfc4eda34ead000b048da4dae (patch)
tree34e351e1714858f9b607e216f505b3e4ce453115 /addons/sale_crm
parent7151f98358fc3cab13c1cc7400c5e0b58d662978 (diff)
parent2c495502aa37374f3748d9ff4ab7cf9e8d9a6d6e (diff)
[MERGE] forward port branch saas-11.3 up to 2c495502aa3
Diffstat (limited to 'addons/sale_crm')
-rw-r--r--addons/sale_crm/models/crm_lead.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale_crm/models/crm_lead.py b/addons/sale_crm/models/crm_lead.py
index 7982d7c3e4d..c01ef48d96a 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._convert(