web/views/autoform.py
branchstable
changeset 6725 6e6d1d19f341
parent 6630 f516ee1ef36c
child 7063 b07ee816bffb
equal deleted inserted replaced
6722:3341521d857b 6725:6e6d1d19f341
   548         """
   548         """
   549         entity = form.edited_entity
   549         entity = form.edited_entity
   550         pending_inserts = set(get_pending_inserts(form._cw, form.edited_entity.eid))
   550         pending_inserts = set(get_pending_inserts(form._cw, form.edited_entity.eid))
   551         for pendingid in pending_inserts:
   551         for pendingid in pending_inserts:
   552             eidfrom, rtype, eidto = pendingid.split(':')
   552             eidfrom, rtype, eidto = pendingid.split(':')
       
   553             pendingid = 'id' + pendingid
   553             if typed_eid(eidfrom) == entity.eid: # subject
   554             if typed_eid(eidfrom) == entity.eid: # subject
   554                 label = display_name(form._cw, rtype, 'subject',
   555                 label = display_name(form._cw, rtype, 'subject',
   555                                      entity.__regid__)
   556                                      entity.__regid__)
   556                 reid = eidto
   557                 reid = eidto
   557             else:
   558             else: