openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23664
[Bug 1128997] Re: search a many2one field for > 0 returns an empty list
** Changed in: openobject-server
Importance: Undecided => Medium
** Changed in: openobject-server
Status: New => Confirmed
** Changed in: openobject-server
Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)
--
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/1128997
Title:
search a many2one field for > 0 returns an empty list
Status in OpenERP Server:
Confirmed
Bug description:
We experienced a wrong behavior when searching for a many2one field
with (..., '>', 0).
self.pool.get("res.partner").search(cr, uid, [('company_id', '>', 0)])
# ==> zero result
self.pool.get("res.partner").search(cr, uid, [('company_id', '>=', 0)])
# ==> zero result
self.pool.get("res.partner").search(cr, uid, [('company_id', '>', -1)])
# ==> 55 results
self.pool.get("res.partner").search(cr, uid, [('company_id', '>=', 1)])
# ==> 55 results
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1128997/+subscriptions
References