コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
9827 ビュー

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).

アバター
破棄
関連投稿 返信 ビュー 活動
2
10月 21
3108
1
5月 16
3099
1
2月 16
4950
2
3月 15
3883
0
11月 24
479