From fccbe4ff4faa668782e36a7033b9593a8c042176 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 14 Sep 2017 12:21:26 +0200 Subject: [PATCH] [FIX] website_form: custom field thing blows up in P3 Custory reading seems to denote that field names are probably already text in the normal case, and thus should not need decoding? It only blows up in a tour so... --- addons/website_form/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_form/controllers/main.py b/addons/website_form/controllers/main.py index 978692e894a..fd42ef8da0b 100644 --- a/addons/website_form/controllers/main.py +++ b/addons/website_form/controllers/main.py @@ -142,7 +142,7 @@ class WebsiteForm(http.Controller): # If it's a custom field elif field_name != 'context': - data['custom'] += "%s : %s\n" % (field_name.decode('utf-8'), field_value) + data['custom'] += u"%s : %s\n" % (field_name, field_value) # Add metadata if enabled environ = request.httprequest.headers.environ