[IMP] website_crm: keep the new id from the created lead to allow another function which override this one to get the new lead.

This commit is contained in:
Jeremy Kersten 2014-09-12 15:58:59 +02:00
parent 24bd1da156
commit e049e56b3f
1 changed files with 4 additions and 0 deletions

View File

@ -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 = {