|
@ -23,9 +23,11 @@ def _get_rec_names(self): |
|
|
|
|
|
|
|
|
def _extend_name_results(self, domain, results, limit): |
|
|
def _extend_name_results(self, domain, results, limit): |
|
|
result_count = len(results) |
|
|
result_count = len(results) |
|
|
if result_count < limit: |
|
|
|
|
|
|
|
|
if not limit or result_count < limit: |
|
|
domain += [('id', 'not in', [x[0] for x in results])] |
|
|
domain += [('id', 'not in', [x[0] for x in results])] |
|
|
recs = self.search(domain, limit=limit - result_count) |
|
|
|
|
|
|
|
|
recs = self.search( |
|
|
|
|
|
domain, limit=limit - result_count if limit else limit |
|
|
|
|
|
) |
|
|
results.extend(recs.name_get()) |
|
|
results.extend(recs.name_get()) |
|
|
return results |
|
|
return results |
|
|
|
|
|
|
|
|