Add clause to not search for inheriting view in fields_view_get

This commit is contained in:
Cédric Krier committed 2008-04-25 17:23:50 +02:00
1 parent 608bca2228
commit 589395d7d0
1 file changed
+2 -1
+2 -1
View File
@@ -1922,7 +1922,8 @@ class ORM(object):
cursor.execute('SELECT arch, name, field_childs, id, type, ' \
'inherit ' \
'FROM ir_ui_view ' \
'WHERE model = %s AND type = %s ORDER BY priority',
'WHERE model = %s AND type = %s AND inherit IS NULL ' \
'ORDER BY priority',
(self._name,view_type))
sql_res = cursor.fetchone()
if not sql_res: