openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #10837
[Bug 909239] Re: ORM Search Method is not working properly on model with property fields
Hello hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha),
The "fields.property" class has the super class "fields.function". Hence
it is necessary to define a member attribute "fnct_search" for the field
definition to make it searchable. In case you have defined store=True,
you won't need to define attribute "fnct_search".
Thank You,
Regards,
Kalpana Hemnani,
Serpent Consulting Services.
--
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:
Invalid
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