From 93ba7cc5755b9fc27f0edc9dc6c6bada140c6409 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 28 Apr 2014 13:00:42 +0200 Subject: [PATCH] [FIX] base: ir.model.fields, write, use tools.ustr instead of str so it handle if the string is already unicode Writing special chars in the field label resulted in a traceback (write only, no problem with creation) bzr revid: dle@openerp.com-20140428110042-qeaswuwsquy1612h --- openerp/addons/base/ir/ir_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/addons/base/ir/ir_model.py b/openerp/addons/base/ir/ir_model.py index ec89fe8bc70..d71622727c5 100644 --- a/openerp/addons/base/ir/ir_model.py +++ b/openerp/addons/base/ir/ir_model.py @@ -385,7 +385,7 @@ class ir_model_fields(osv.osv): # static table of properties model_props = [ # (our-name, fields.prop, set_fn) - ('field_description', 'string', str), + ('field_description', 'string', tools.ustr), ('required', 'required', bool), ('readonly', 'readonly', bool), ('domain', '_domain', eval),