← Back to team overview

credativ team mailing list archive

[Bug 909239] Re: ORM Search Method is not working properly on model with property fields

 

** Changed in: openobject-server
   Importance: Undecided => Low

** 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
Framework Experts, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/909239

Title:
  ORM Search Method is not working properly on model with property
  fields

Status in OpenERP Server:
  Confirmed

Bug description:
  when doing searches on a model which has property fields it returns
  the whole record for that model

  Do this single test and you will realize about this bug.

  # I will set id to a value which even doesnt exist and it will return the whole set of values for the model res.partner,
  # the valid return value should be an empty list 
  id = 300000000
  if context is None: context = {}
  print self.pool.get('res.partner').search(cr, uid, [('property_account_payable','=', id)],context=context)

  
  working on server revno. 3558.
  Thanks for you help in advance

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/909239/+subscriptions


References