Skip to content

Commit

Permalink
Fix result order of search_read_all
Browse files Browse the repository at this point in the history
  • Loading branch information
sayatul committed Sep 22, 2020
1 parent 270c0c2 commit 72439f9
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 72439f9

Please sign in to comment.