[FIX]: evaluate one2many domains instead of using them as string.

lp bug: https://launchpad.net/bugs/715654 fixed

bzr revid: vmt@openerp.com-20110406150525-hnmq4wsfbmfwgxpl
This commit is contained in:
Olivier Dony
2011-04-06 17:05:25 +02:00
committed by Vo Minh Thu
parent 86bc2a6451
commit 3ea48a453d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -303,10 +303,10 @@ class ir_model_fields(osv.osv):
# static table of properties
model_props = [ # (our-name, fields.prop, set_fn)
('field_description', 'string', lambda a: a),
('field_description', 'string', str),
('required', 'required', bool),
('readonly', 'readonly', bool),
('domain', '_domain', lambda a: a),
('domain', '_domain', eval),
('size', 'size', int),
('on_delete', 'ondelete', str),
('translate', 'translate', bool),
+1 -1
View File
@@ -2821,7 +2821,7 @@ class orm(orm_template):
'string': field['field_description'],
'required': bool(field['required']),
'readonly': bool(field['readonly']),
'domain': field['domain'] or None,
'domain': eval(field['domain']) if field['domain'] else None,
'size': field['size'],
'ondelete': field['on_delete'],
'translate': (field['translate']),