Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
10256 Переглядів

On the API doc there is :
search_read(cr, uid, domain=None, fields=None, offset=0, limit=None, order=None, context=None)

I try with XML-RPC.

fields = ['email', 'phone', 'name', 'country_id'] 
args = [('is_company', '=', '1')] 
myresult = sock.execute(dbname, uid, pwd, 'res.partner', 'search_read',args, fields)

I receive an error message :

 AttributeError: 'res.partner' object has no attribute 'search_read'

(i tried with "search.read" as well. Same error)

However, my webservice queries are working fine with "search" and "read". So is there a problem with the documentation ?

Аватар
Відмінити
Найкраща відповідь

search_read is part of the openerp client lib , which is a layer above xmlrpc. (sorry can't give you the link because my karma is too low, but you will find it easily on github).

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
жовт. 21
3530
1
трав. 16
3455
1
лют. 16
5406
2
бер. 15
4302
0
лип. 25
206