summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-09-14 12:21:26 +0200
committerXavier Morel <xmo@odoo.com>2017-09-14 12:21:26 +0200
commitfccbe4ff4faa668782e36a7033b9593a8c042176 (patch)
tree587f743f99360002352b683d3ff5362a37a23488
parent97a9384c3eb426d123968c1ebad60fdf11b63fb4 (diff)
[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...
-rw-r--r--addons/website_form/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
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