openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23663
[Bug 1128997] [NEW] search a many2one field for > 0 returns an empty list
Public bug reported:
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
** Affects: openobject-server
Importance: Undecided
Status: New
--
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:
New
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
Follow ups
References