İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

External API documentation (JSON-RPC)

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
documentationapijsonrpcExternalAPI
7 Cevaplar
32617 Görünümler
Avatar
Allan

I have a big pet peeve with Odoo documentation. I have previously worked with XML-RPC but is now switching to JSON-RPC. But I have always struggled to find good documentation. Only a few simple examples are to be found online - and often in some SDK of a certain language - not language-agnostic so that anyone can figure it out for their language. So I have a couple of core questions:


1. Why are there absolutely no instructions on how to find out which methods, fields and values are available in a JSON-RPC call? At the very minimum it could be stated that one can inspect the network requests in the browser to see examples...!


2. Why is there no explanation of the difference between the JSON-RPC API calls used in the browser and the JSON-RPC API meant for external use? This could help translating the browser requests into normal JSON-RPC requests.


This makes it very difficult (= very time consuming => waste of money) for people unfamiliar with Odoo to make integrations to it. A very undesirable effect.

2
Avatar
Vazgeç
MARCO FABIAN ARREOLA PEREZ

The same experience. However i had the task done thanks to some LLM. You can use claude or grok. Somehow they know how it works. I am not a chatgpt fan

Avatar
Ray Carnes (ray)
En İyi Yanıt

For Odoo 19 and higher, please review https://www.odoo.com/documentation/19.0/developer/reference/external_api.html

There is now a /doc endpoint that dynamically generates documentation on the models, fields and methods available for a specific database.



You might also want to know about the Odoo Language Server at https://github.com/odoo/odoo-ls that provides autocompletion, file validation, hover requests, go to definition, and more for VS Code, PyCharm, Vim and Zed.


1
Avatar
Vazgeç
Allan
Üretici

Finally! Now I just have to wait for my community server to be upgraded to 19....!

Avatar
Nikolaus Weingartmair
En İyi Yanıt

My 2 cents on the topic. 
Some tipps for beginners (which would have been very helpful for me:

If you want to create a simple interface for JSON RPC and are lucky enough to have python:


The plane request to create it in a different language (here in postman):
1) get Authentication (Then the Credentials get stored as cookies, standard web auth)

where newstart9 is your database name and admin admin are your username and password

2) Then you can, like in rest, create update(write in odoo), delete like in REST

http://localhost:8069/web/dataset/call_kw/forum.post/create
{

"id": 5,

"jsonrpc": "2.0",

"method": "call",

"params": {

"model": "forum.post",

"method": "create",

"args": [

{

"name": "PowerPoint Karaoke",

"subtitle": "Die besten Erfindungen der Neuzeit"

}

]

}


Why Json-RPC is cool:
The permission concept of odoo is honored, that means you don't have to worry about it, if the user has permissions he get's the data if he doesn't he won't get it.

And most importantly you are not limited to create, update, you basically can do everything your user has permission to do. So together with minor odoo developments it's very easy to achive complex workflows compared to the very limited cumbersome REST capabilites where you need a lot of development to do basic things.

But of course you can't get Swagger/OpenAPI interface files for JSON-RPC, correct em if I'm wrong.

You could use 
https://github.com/OCA/rest-framework than you get swagger/OpenAPI Interface but you still have to create everything yourself. 

There are also some commercial Products 
https://apps.odoo.com/apps/modules/18.0/muk_rest should be good, but never really used it myself.

As a Bonus: if you only need to get access to data have a look at web_search_read, it's a not well documented feature of odoo which they use heavily inhouse. It's basically graphql for odoo. So you tell him exactly what you need spanning multiple related models and he gives you just that. If you have to do some more complex requirements - you will save yourself a lot of tears and work compared to an REST based approach not speaking of speed as you need for the same request a lot REST requests ...

0
Avatar
Vazgeç
Avatar
Sébastien Feugère
En İyi Yanıt

NOTE: would have like to use the "commenting tool", but I don't have enough XP for that, so here is a non-answer :)

All the external ressources (tutorial, YouTube videos) are useful.

This is not enough, though: why the APIs does not have a clear auto-generated documentation? It makes it's usage overcomplicated. Also, the lack of examples makes things incredibly experimental. 

I had to rely on alternative documentation content from GitHub (created by the community, see link) to understand things. I think it could be reviewed by the Odoo team and merged to the existing doc. That would be very helpful for newcomers.

  • https://github.com/amlaksil/Odoo-JSON-RPC-API/

It's also confusing and not clear why the "External API" and "Web Services" docs are separated.

  • https://www.odoo.com/documentation/17.0/developer/reference/external_api.html#
  • https://www.odoo.com/documentation/master/developer/howtos/web_services.html


0
Avatar
Vazgeç
Avatar
Martin Krafft
En İyi Yanıt

(tried to use the "commenting tool", but that doesn't seem to work, so here is a non-answer:)

I can relate. We're migrating to Odoo DMS from Paperless, and this means I have to script the transfer of a couple tens of thousand documents, while preserving the metadata, such as tags, correspondents, notes, etc..

I've looked around but I cannot find a proper API description, nor any actual examples. It seems the external API is a simple wrapper around the models, but how do I get a list of models, and of the fields, and yes, it would really be useful to have an example of e.g. creating a DMS record with some tags and notes using the API.

0
Avatar
Vazgeç
Avatar
Niyas Raphy (Walnut Software Solutions)
En İyi Yanıt

Hi,
See this tutorial about json rpc in odoo:  Odoo JSON RPC

Thanks

0
Avatar
Vazgeç
Avatar
Sébastien Denis
En İyi Yanıt

Did you find any valuable documentation ? Looking for the same stuff without success

0
Avatar
Vazgeç
Niyas Raphy (Walnut Software Solutions)

see: https://www.youtube.com/watch?v=J61gRPVSex4

Avatar
Cybrosys Techno Solutions Pvt.Ltd
En İyi Yanıt

Hi,
Refer to the following documentation
https://www.cybrosys.com/blog/how-to-configure-the-json-rpc-api-in-odoo-15

https://www.cybrosys.com/blog/how-to-configure-json-rpc-and-xml-rpc-using-postman-for-sending-api-requests


Hope it helps

-1
Avatar
Vazgeç
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Odoo JSON-RPC API
api jsonrpc
Avatar
0
Şub 25
2881
Endpoint for external API
api ExternalAPI
Avatar
Avatar
1
May 24
7928
What is the syntax for Update in JSON External API?
jsonrpc ExternalAPI
Avatar
1
Kas 22
7174
What is the API endpoint for JSON-RPC?
api jsonrpc
Avatar
0
Eki 20
5819
jsonrpc bulk write
api odoo jsonrpc
Avatar
Avatar
1
Nis 25
1897
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now