diff options
| author | Olivier Dony <odo@openerp.com> | 2014-07-05 01:04:19 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2014-07-05 01:04:19 +0200 |
| commit | 5ceded9d69b3c261e501500e760b9b345bb77ecc (patch) | |
| tree | de463b8dcfacc82c559381c91ad57f978a48e724 /addons/website_crm/controllers | |
| parent | e19256b062105a8656f0f776b5f9a8bda232cab9 (diff) | |
| parent | 4fa30f556929fb5c11d835f5ef0af68cd8acb6d8 (diff) | |
[MERGE] Forward-port saas-3 up to 4fa30f5
Diffstat (limited to 'addons/website_crm/controllers')
| -rw-r--r-- | addons/website_crm/controllers/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/website_crm/controllers/main.py b/addons/website_crm/controllers/main.py index 043abcf5898..2331225919c 100644 --- a/addons/website_crm/controllers/main.py +++ b/addons/website_crm/controllers/main.py @@ -52,6 +52,8 @@ class contactus(http.Controller): elif field_name not in _TECHNICAL: # allow to add some free fields or blacklisted field like ID post_description.append("%s: %s" % (field_name, field_value)) + if "name" not in kwargs and values.get("contact_name"): # if kwarg.name is empty, it's an error, we cannot copy the contact_name + values["name"] = values.get("contact_name") # fields validation : Check that required field from model crm_lead exists error = set(field for field in _REQUIRED if not kwargs.get(field)) |
