[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:
parent
a2536d5e32
commit
93ba7cc575
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue