openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #04031
[Bug 909239] [NEW] ORM Search Method is not working properly on model with property fields
Public bug reported:
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
** 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/909239
Title:
ORM Search Method is not working properly on model with property
fields
Status in OpenERP Server:
New
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
Follow ups
References