diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-03-17 18:03:00 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-03-17 18:03:00 +0100 |
| commit | c8f01e3b62fb11baec4623d841960baac2284dd8 (patch) | |
| tree | c6465ccd97c958e3022cd623cf61a095337979b5 /addons/website_form/controllers | |
| parent | e3eefa093588f4ddfd6fb2a18645a31e1d1224aa (diff) | |
| parent | b2fa9f2ad1dac059c365e854cc1078b45eccdd85 (diff) | |
[MERGE] forward port branch saas-14 up to b2fa9f2ad1d
Diffstat (limited to 'addons/website_form/controllers')
| -rw-r--r-- | addons/website_form/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_form/controllers/main.py b/addons/website_form/controllers/main.py index 2f5f7ec2292..4ded7c4ddb7 100644 --- a/addons/website_form/controllers/main.py +++ b/addons/website_form/controllers/main.py @@ -159,7 +159,7 @@ class WebsiteForm(http.Controller): # def website_form_input_filter(self, values): # values['name'] = '%s\'s Application' % values['partner_name'] # return values - dest_model = request.env[model.model] + dest_model = request.env[model.sudo().model] if hasattr(dest_model, "website_form_input_filter"): data['record'] = dest_model.website_form_input_filter(request, data['record']) |
