~numerigraphe/openobject-server/6.0-search-doc-parent-operators

« back to all changes in this revision

Viewing changes to bin/osv/orm.py

  • Committer: Olivier Dony
  • Author(s): Anup(OpenERP)
  • Date: 2011-01-17 20:08:37 UTC
  • Revision ID: odo@openerp.com-20110117200837-h2ynvbqngp0pb3za
[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

Show diffs side-by-side

added added

removed removed

Lines of Context:
3891
3891
        else:
3892
3892
            # extract the field names, to be able to qualify them and add desc/asc
3893
3893
            m2o_order_list = []
3894
 
            for order_part in m2o_order.split(",",1):
 
3894
            for order_part in m2o_order.split(","):
3895
3895
                m2o_order_list.append(order_part.strip().split(" ",1)[0].strip())
3896
3896
            m2o_order = m2o_order_list
3897
3897