콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
10379 화면

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
3709
1
5월 16
3632
1
2월 16
5584
2
3월 15
4455
0
7월 25
327