← Back to team overview

openerp-india team mailing list archive

[Bug 1128997] Re: search a many2one field for > 0 returns an empty list

 

** Branch linked: lp:~openerp-dev/openobject-server/trunk-
bug-1128997-sunil

-- 
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:
  In Progress

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