web/views/autoform.py
changeset 3485 e867ae952fc0
parent 3483 feedfe5d4932
child 3503 06bced8edddf
equal deleted inserted replaced
3484:52e6c8d62ac6 3485:e867ae952fc0
   129             if len(targettypes) != 1:
   129             if len(targettypes) != 1:
   130                 continue
   130                 continue
   131             targettype = targettypes[0]
   131             targettype = targettypes[0]
   132             if self.should_inline_relation_form(rschema, targettype, role):
   132             if self.should_inline_relation_form(rschema, targettype, role):
   133                 entity = self._cw.vreg['etypes'].etype_class(targettype)(self._cw)
   133                 entity = self._cw.vreg['etypes'].etype_class(targettype)(self._cw)
   134                 subform = self._cw.vreg['forms'].select('edition', self._cw, entity=entity)
   134                 subform = self._cw.vreg['forms'].select('edition', self._cw,
       
   135                                                         entity=entity)
   135                 if subform.form_needs_multipart:
   136                 if subform.form_needs_multipart:
   136                     return True
   137                     return True
   137         return False
   138         return False
   138 
   139 
   139     def action(self):
   140     def action(self):