[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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user