projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24bd1da
)
[IMP] website_crm: keep the new id from the created lead to allow another function...
author
Jeremy Kersten
<jke@odoo.com>
Fri, 12 Sep 2014 13:58:59 +0000
(15:58 +0200)
committer
Jeremy Kersten
<jke@odoo.com>
Fri, 12 Sep 2014 13:58:59 +0000
(15:58 +0200)
addons/website_crm/controllers/main.py
patch
|
blob
|
history
diff --git
a/addons/website_crm/controllers/main.py
b/addons/website_crm/controllers/main.py
index
d8d437b
..
4aa76be
100644
(file)
--- 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 = {