← Back to team overview

openerp-india team mailing list archive

[Bug 1044341] Re: cannot search() entries with order "id DESC"

 

** Changed in: openobject-server/6.1
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1044341

Title:
  cannot search() entries with order "id DESC"

Status in OpenERP Server:
  Confirmed
Status in OpenERP Server 6.1 series:
  Fix Released
Status in OpenERP Server trunk series:
  Confirmed

Bug description:
  Hello,

  I've experienced this bug both with 6.1 and with trunk.
  When using the optional argument "order" for the osv method search(), the choice "id DESC" will sort ascending (like "id ASC" or plain "id").
  It is not possible to sort by "id DESC".

  The issue is in openerp.osv.orm.BaseModel._generate_order_by(...).

  When the field is "id", the direction is not taken into account.
  http://bazaar.launchpad.net/~openerp/openobject-server/trunk/view/head:/openerp/osv/orm.py#L4616

  Please fix it for the supported branch 6.1 and for trunk.

  -- 
  Florent

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1044341/+subscriptions


References