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

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
8319
0
2月 25
1187
0
12月 24
999
0
9月 24
1119
0
1月 25
1323