openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #15116
[Bug 1044341] Re: cannot search() entries with order "id DESC"
** Also affects: openobject-server/trunk
Importance: Low
Assignee: OpenERP Publisher's Warranty Team (openerp-opw)
Status: Confirmed
** Also affects: openobject-server/6.1
Importance: Undecided
Status: New
** Changed in: openobject-server/trunk
Assignee: OpenERP Publisher's Warranty Team (openerp-opw) => (unassigned)
** Changed in: openobject-server/6.1
Status: New => Confirmed
** Changed in: openobject-server/6.1
Importance: Undecided => Low
** Changed in: openobject-server/6.1
Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)
** Changed in: openobject-server/trunk
Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)
** Changed in: openobject-server/6.1
Status: Confirmed => Fix Committed
--
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 Committed
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