openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23901
[Bug 1128997] Re: search a many2one field for > 0 returns an empty list
Hey, what's wrong here?
What are happing here?
Why not use the committed branch by user Jignesh?
What's wrong with this branch?
--
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:
Fix Committed
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