Skip to content

Commit

Permalink
Merge pull request #82 from sayatul/ch2417
Browse files Browse the repository at this point in the history
Fix result order of search_read_all
  • Loading branch information
sharoonthomas authored Sep 23, 2020
2 parents 270c0c2 + 72439f9 commit 42eaaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fulfil_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def search_read_all(self, domain, order, fields, batch_size=500,
context = {}

# Fetch all the ids first
ids = self.search(domain, offset, limit, None, context=context)
ids = self.search(domain, offset, limit, order, context=context)

for sub_ids in chunked(ids, batch_size):
for record in self.read(sub_ids, fields, context=context):
Expand Down

0 comments on commit 42eaaf2

Please sign in to comment.