Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4229 Vizualizări

Hi guys,

i am begin in odoo platform and i need get some data from third party API.

How work with API i understand, but can you explaine me please how to do better create odoo view, where i can see needed data. 

Now i understand that button must be with action that сauses method in model. Some method must be with decorator @api.model, where through library requests i get needed data in json format. Getted data must not saved in data base... May be better will create other model and then by button click view needed data?

Explane please, how to do better?

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

If you have python code to get 3rd party API, you can call a python method in button click and inside the method you can use your code. You can import json in Odoo. So using it you can get data.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
dec. 23
18247
3
iun. 21
9305
1
dec. 18
5531
2
nov. 18
7855
1
iun. 17
7484