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

Dear all , I am looking for an example how I can execute a "search" on a model "product.product" by using json-rpc with API KEY on Odoo 17. So far I  have seen examples only with "password" authentication. In the code on github at "model.py" I have not seen that API-KEYs are supported? 

e.g.

{"jsonrpc":"2.0","method":"call","id":"123","params":{"service":"object","method":"execute_kw","args":["db_odoo17",2,"password","product.product","search_read",[],{"fields":["name"],"limit":2,"offset":1,"order":"name asc"}]}}


아바타
취소
작성자 베스트 답변

I tried this but it does not work, I am using the community edition.

아바타
취소
베스트 답변

When an API KEY has been created, it is used instead of the password.

Just use the API KEY where you would normally use the PASSWORD.


Note

You cannot use the External API with databases that are on the following pricing plans

  • One App FREE
  • Standard


References

아바타
취소

Can an API only be created and tied to a regular internal user, or can we have a "system" user which holds the API key?

관련 게시물 답글 화면 활동
3
9월 24
8558
0
2월 25
1207
0
12월 24
1011
0
9월 24
1142
0
1월 25
1352