diff options
| author | Jeremy Kersten <jke@odoo.com> | 2014-09-12 15:58:59 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2014-09-12 15:58:59 +0200 |
| commit | e049e56b3ffe43384bd9a0cac2a425e59911f96f (patch) | |
| tree | d6597c3375e52453f7e436102b7636eac8e8fb8b /addons/website_crm/controllers/main.py | |
| parent | 24bd1da15633ac28349722970f9fda371deedd0d (diff) | |
[IMP] website_crm: keep the new id from the created lead to allow another function which override this one to get the new lead.
Diffstat (limited to 'addons/website_crm/controllers/main.py')
| -rw-r--r-- | addons/website_crm/controllers/main.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/website_crm/controllers/main.py b/addons/website_crm/controllers/main.py index d8d437bc045..4aa76be4929 100644 --- a/addons/website_crm/controllers/main.py +++ b/addons/website_crm/controllers/main.py @@ -91,7 +91,11 @@ class contactus(http.Controller): post_description.append("%s: %s" % ("REFERER", environ.get("HTTP_REFERER"))) values['description'] += dict_to_str(_("Environ Fields: "), post_description) + + + lead_id = self.create_lead(request, dict(values, user_id=False), kwargs) + values.update(lead_id=lead_id) if lead_id: for field_value in post_file: attachment_value = { |
