Add select=1 on res and field of ir.property

It is the two fields on which get/set functions make search
This commit is contained in:
Cédric Krier committed 2010-01-03 19:45:29 +01:00
1 parent d2bb2ffc5b
commit 2604eba72a
1 file changed
+2 -2
+2 -2
View File
@@ -11,9 +11,9 @@ class Property(ModelSQL, ModelView):
_description = __doc__
name = fields.Char('Name')
value = fields.Reference('Value', selection='models_get')
res = fields.Reference('Resource', selection='models_get')
res = fields.Reference('Resource', selection='models_get', select=1)
field = fields.Many2One('ir.model.field', 'Field',
ondelete='CASCADE', required=True)
ondelete='CASCADE', required=True, select=1)
def models_get(self, cursor, user, context=None):
cursor.execute('SELECT model, name FROM ir_model ORDER BY name ASC')