diff --git a/addons/website_form/controllers/main.py b/addons/website_form/controllers/main.py index 1e3614bf3d5..c6708b2fac6 100644 --- a/addons/website_form/controllers/main.py +++ b/addons/website_form/controllers/main.py @@ -182,7 +182,7 @@ class WebsiteForm(http.Controller): model_name = model.sudo().model if model_name == 'mail.mail': values.update({'reply_to': values.get('email_from')}) - record = request.env[model_name].sudo().with_context(mail_create_nosubscribe=True).create(values) + record = request.env[model_name].with_user(SUPERUSER_ID).with_context(mail_create_nosubscribe=True).create(values) if custom or meta: _custom_label = "%s\n___________\n\n" % _("Other Information:") # Title for custom fields