← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 683558] Re: XML-RPC search doesn't work for functional fields

 

Nick,

For any field to be searchable,it either has to be a field of database
or it should have an attribute fnct_search(if its a fields.function).

Thanks.

** Changed in: openobject-server
       Status: New => Invalid

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/683558

Title:
  XML-RPC search doesn't work for functional fields

Status in OpenObject Server:
  Invalid

Bug description:
  I would expect an XML-RPC call an a functional field would work exactly as on a non-functional field. However, it appears that it is simply ignored in a search, not restricting things at all. I appreciate that this is tricky to do on a code level, but it would make the XML-RPC interface more usable and consistent.

To clarify, I'd like the following XML-RPC call to restrict the ids returned to only those which have qty_available > 0:

sock.execute(db, uid, passwd, 'product.product', 'search', [('qty_available','>',0.0)])

Whereas at present it appears to simply return all ids regardless of their computed qty_available value.

This is with the latest bzr checkout (2156) of http://bazaar.launchpad.net/~openerp/openobject-server/5.0/





References