web/views/autoform.py
changeset 4467 0e73d299730a
parent 4387 4aacd6492ef4
child 4518 5690bf6d6081
equal deleted inserted replaced
4466:8b0ca7904820 4467:0e73d299730a
   447     def build_unrelated_select_div(self, entity, rschema, role,
   447     def build_unrelated_select_div(self, entity, rschema, role,
   448                                    is_cell=False, hidden=True):
   448                                    is_cell=False, hidden=True):
   449         options = []
   449         options = []
   450         divid = 'div%s_%s_%s' % (rschema.type, role, entity.eid)
   450         divid = 'div%s_%s_%s' % (rschema.type, role, entity.eid)
   451         selectid = 'select%s_%s_%s' % (rschema.type, role, entity.eid)
   451         selectid = 'select%s_%s_%s' % (rschema.type, role, entity.eid)
   452         if rschema.symetric or role == 'subject':
   452         if rschema.symmetric or role == 'subject':
   453             targettypes = rschema.objects(entity.e_schema)
   453             targettypes = rschema.objects(entity.e_schema)
   454             etypes = '/'.join(sorted(etype.display_name(self._cw) for etype in targettypes))
   454             etypes = '/'.join(sorted(etype.display_name(self._cw) for etype in targettypes))
   455         else:
   455         else:
   456             targettypes = rschema.subjects(entity.e_schema)
   456             targettypes = rschema.subjects(entity.e_schema)
   457             etypes = '/'.join(sorted(etype.display_name(self._cw) for etype in targettypes))
   457             etypes = '/'.join(sorted(etype.display_name(self._cw) for etype in targettypes))