From 589395d7d07f3db1ff37b0c22b8c8254fed8fdd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 25 Apr 2008 17:23:50 +0200 Subject: [PATCH] Add clause to not search for inheriting view in fields_view_get --- trytond/osv/orm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trytond/osv/orm.py b/trytond/osv/orm.py index b189490753..1132a5d3e5 100644 --- a/trytond/osv/orm.py +++ b/trytond/osv/orm.py @@ -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: