equal
deleted
inserted
replaced
219 # in other cases, use vocabulary functions |
219 # in other cases, use vocabulary functions |
220 entities = [] |
220 entities = [] |
221 form = self.vreg['forms'].select('edition', self._cw, rset=self.cw_rset, |
221 form = self.vreg['forms'].select('edition', self._cw, rset=self.cw_rset, |
222 row=self.cw_row or 0) |
222 row=self.cw_row or 0) |
223 field = form.field_by_name(self.rtype, get_role(self), entity.e_schema) |
223 field = form.field_by_name(self.rtype, get_role(self), entity.e_schema) |
224 for _, eid in form.form_field_vocabulary(field): |
224 for _, eid in field.choices(form): |
225 if eid is not None: |
225 if eid is not None: |
226 rset = self._cw.eid_rset(eid) |
226 rset = self._cw.eid_rset(eid) |
227 entities.append(rset.get_entity(0, 0)) |
227 entities.append(rset.get_entity(0, 0)) |
228 return entities |
228 return entities |
229 |
229 |