summaryrefslogtreecommitdiff
path: root/addons/crm/controllers/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/crm/controllers/main.py')
-rw-r--r--addons/crm/controllers/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/crm/controllers/main.py b/addons/crm/controllers/main.py
index 4f1a6960645..f9d12a6c236 100644
--- a/addons/crm/controllers/main.py
+++ b/addons/crm/controllers/main.py
@@ -4,6 +4,7 @@ import logging
from odoo.addons.mail.controllers.main import MailController
from odoo import http
+from odoo.http import request
_logger = logging.getLogger(__name__)
@@ -15,7 +16,7 @@ class CrmController(http.Controller):
comparison, record, redirect = MailController._check_token_and_record_or_redirect('crm.lead', int(res_id), token)
if comparison and record:
try:
- record.action_set_won()
+ record.action_set_won_rainbowman()
except Exception:
_logger.exception("Could not mark crm.lead as won")
return MailController._redirect_to_messaging()