Merge lp:~camptocamp/openobject-addons/7.0_fix-document-search-order-by_rde into lp:openobject-addons/7.0
Proposed by
Alexandre Fayolle - camptocamp
Status: | Needs review |
---|---|
Proposed branch: | lp:~camptocamp/openobject-addons/7.0_fix-document-search-order-by_rde |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
25 lines (+7/-1) 1 file modified
document/document.py (+7/-1) |
To merge this branch: | bzr merge lp:~camptocamp/openobject-addons/7.0_fix-document-search-order-by_rde |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Yannick Vaucher @ Camptocamp (community) | code review, no test | Approve | |
Leonardo Pistone (community) | code review | Approve | |
OpenERP Core Team | Pending | ||
Review via email: mp+214483@code.launchpad.net |
Description of the change
[FIX] document: preserve the order in search()
To post a comment you must log in.
Unmerged revisions
- 9957. By Romain Deheele - Camptocamp
-
[FIX] document: search method overload should take into account order by clause
Thanks for pointing out the performance problems of list.remove, good catch.
I suppose the list comprehension at the end is necessary because there is no "intersection" method between sets and lists that preserves order.