Commit e6d5e474 authored by Jérome Perrin's avatar Jérome Perrin

officejs_support_request_ui: sort support request by modification date & start date

to get stable sort and prevent "random" test failures.
parent c75bdaef
if 'sort_on' in kw:
del kw['sort_on']
return context.searchFolder(sort_on=[('modification_date', 'descending')], **kw)
return context.searchFolder(sort_on=[
('modification_date', 'descending'),
# XXX to get stable test result, we also sort by start date (because modification date
# has a one second precision)
('delivery.start_date', 'descending'),
], **kw)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment