Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4269 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Open View from Button แก้ไขแล้ว
2
ธ.ค. 23
18288
3
มิ.ย. 21
9342
1
ธ.ค. 18
5575
2
พ.ย. 18
7876
1
มิ.ย. 17
7512