[FIX] orm.search: fix ordering when multiple order columns are used
Original refactoring forgot to properly fix the split, in revision 3143.1.2 revid:odo@openerp.com-20101221192344-87d7ajnfsn5unm9p bzr revid: odo@openerp.com-20110117200837-h2ynvbqngp0pb3za
This commit is contained in:
parent
dd73fb1cac
commit
2298231380
|
@ -3891,7 +3891,7 @@ class orm(orm_template):
|
|||
else:
|
||||
# extract the field names, to be able to qualify them and add desc/asc
|
||||
m2o_order_list = []
|
||||
for order_part in m2o_order.split(",",1):
|
||||
for order_part in m2o_order.split(","):
|
||||
m2o_order_list.append(order_part.strip().split(" ",1)[0].strip())
|
||||
m2o_order = m2o_order_list
|
||||
|
||||
|
|
Loading…
Reference in New Issue