[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
This commit is contained in:
Denis Ledoux 2014-04-28 13:00:42 +02:00
parent a2536d5e32
commit 93ba7cc575
1 changed files with 1 additions and 1 deletions

View File

@ -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),