web/views/magicsearch.py
changeset 3720 5376aaadd16b
parent 3469 1e28876c4b55
parent 3689 deb13e88e037
child 4045 f4a52abb6f4f
--- a/web/views/magicsearch.py	Thu Oct 15 11:20:26 2009 +0200
+++ b/web/views/magicsearch.py	Mon Oct 19 15:16:41 2009 +0200
@@ -279,7 +279,7 @@
         eschema = self._cw.schema.eschema(etype)
         rtype = self._get_attribute_name(word2, eschema)
         # expand shortcut if rtype is a non final relation
-        if not self._cw.schema.rschema(rtype).is_final():
+        if not self._cw.schema.rschema(rtype).final:
             return self._expand_shortcut(etype, rtype, word3)
         if '%' in word3:
             searchop = 'LIKE '