web/views/autoform.py
changeset 3483 feedfe5d4932
parent 3482 9a868f462fa4
child 3485 e867ae952fc0
--- a/web/views/autoform.py	Fri Sep 25 11:56:31 2009 +0200
+++ b/web/views/autoform.py	Fri Sep 25 11:57:06 2009 +0200
@@ -250,9 +250,11 @@
     def should_inline_relation_form(self, rschema, targettype, role):
         """return true if the given relation with entity has role and a
         targettype target should be inlined
+
+        At this point we now relation has inlined_attributes tag (eg is returned
+        by `inlined_relations()`. Overrides this for more finer control.
         """
-        return self.rinlined.etype_get(self.edited_entity.__regid__, rschema, role,
-                                       targettype)
+        return True
 
     def display_inline_edition_form(self, w, rschema, targettype, role,
                                      i18nctx):