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

Hello.

Now in the search_read function I have to pass field by field to get the item.

foreach($partnerlist as $partner){

     $user = $odoo->search_read('res.partner', [[['id', '=', $partner->id]]], ['fields' => $fields, 'limit' => 1]);

}

But this produce a slow process if I have to get a lot of partners.

So, if you see a SQL query you can do the 'in' clausule for multiples ids. So, exists something like this in XMLRPC?

If I could do something like [[['id', 'in', $arrayids]]] must be great.

Thanks.

아바타
취소
작성자

Excellent Sudhir Arya!! It works!! Thank you!!
베스트 답변

Hi Ferran,

Yes, you can use "in" operator in the domain condition to fetch the data of all the partner IDs.

[[['id', 'in', $array_partner_ids]]]


아바타
취소
관련 게시물 답글 화면 활동
1
3월 15
4905
1
8월 24
5001
1
11월 19
6800
1
3월 15
11628
1
3월 15
4967