Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5191 Widoki

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"}]}}


Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć

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?

Powiązane posty Odpowiedzi Widoki Czynność
3
wrz 24
7546
0
lut 25
1037
0
gru 24
886
0
wrz 24
1008
0
sty 25
1198