Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Error when fetching client details through API

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
pythonclientapi
2 Replies
3672 Tampilan
Avatar
Pelle Brakkee

When I'm trying to fetch the client details though the API i get an error. I updated the base of Odoo to the newest files. Running Odoo 16 on a windows platform:

Traceback (most recent call last): File "F:\Odoo\server\odoo\addons\base\controllers\rpc.py", line 150, in xmlrpc_2 response = self._xmlrpc(service) File "F:\Odoo\server\odoo\addons\base\controllers\rpc.py", line 130, in _xmlrpc result = dispatch_rpc(service, method, params) File "F:\Odoo\server\odoo\http.py", line 366, in dispatch_rpc return dispatch(method, params) File "F:\Odoo\server\odoo\service\model.py", line 35, in dispatch res = execute(db, uid, *params[3:]) File "F:\Odoo\server\odoo\service\model.py", line 65, in execute res = execute_cr(cr, uid, obj, method, *args, **kw) File "F:\Odoo\server\odoo\service\model.py", line 50, in execute_cr result = retrying(partial(odoo.api.call_kw, recs, method, args, kw), env) File "F:\Odoo\server\odoo\service\model.py", line 133, in retrying result = func() File "F:\Odoo\server\odoo\api.py", line 457, in call_kw result = _call_kw_model(method, model, args, kwargs) File "F:\Odoo\server\odoo\api.py", line 430, in _call_kw_model result = method(recs, *args, **kwargs) File "F:\Odoo\server\odoo\models.py", line 1512, in search res = self._search(domain, offset=offset, limit=limit, order=order, count=count) File "F:\Odoo\server\odoo\addons\base\models\res_partner.py", line 911, in _search return super(Partner, self)._search(args, offset=offset, limit=limit, order=order, File "F:\Odoo\server\odoo\models.py", line 4655, in _search if expression.is_false(self, domain): File "F:\Odoo\server\odoo\osv\expression.py", line 226, in is_false elif token[1] == 'in' and not (isinstance(token[2], Query) or token[2]): IndexError: string index out of range


Does anyone have an idea what is going wrong?
Thanks in advance ​

0
Avatar
Buang
Mehjabin Farsana

Hi,
Please add relevant part of written api along with the question.
thanks

Pelle Brakkee
Penulis

Hi Mehjabin,


I'm using a external party for controlling the API functions (apicenter.io). The only code i get to see is:


{"Exception":{"fault":{"value":{"struct":{"member":[{"name":"faultCode","value":{"int":"1"}},{"name":"faultString","value":{"string":"Traceback (most recent call last): File "F:\Odoo\server\odoo\addons\base\controllers\rpc.py", line 150, in xmlrpc_2 response = self._xmlrpc(service) File "F:\Odoo\server\odoo\addons\base\controllers\rpc.py", line 130, in _xmlrpc result = dispatch_rpc(service, method, params) File "F:\Odoo\server\odoo\http.py", line 366, in dispatch_rpc return dispatch(method, params) File "F:\Odoo\server\odoo\service\model.py", line 35, in dispatch res = execute(db, uid, *params[3:]) File "F:\Odoo\server\odoo\service\model.py", line 65, in execute res = execute_cr(cr, uid, obj, method, *args, **kw) File "F:\Odoo\server\odoo\service\model.py", line 50, in execute_cr result = retrying(partial(odoo.api.call_kw, recs, method, args, kw), env) File "F:\Odoo\server\odoo\service\model.py", line 133, in retrying result = func() File "F:\Odoo\server\odoo\api.py", line 457, in call_kw result = _call_kw_model(method, model, args, kwargs) File "F:\Odoo\server\odoo\api.py", line 430, in _call_kw_model result = method(recs, *args, **kwargs) File "F:\Odoo\server\odoo\models.py", line 1512, in search res = self._search(domain, offset=offset, limit=limit, order=order, count=count) File "F:\Odoo\server\odoo\addons\base\models\res_partner.py", line 911, in _search return super(Partner, self)._search(args, offset=offset, limit=limit, order=order, File "F:\Odoo\server\odoo\models.py", line 4655, in _search if expression.is_false(self, domain): File "F:\Odoo\server\odoo\osv\expression.py", line 226, in is_false elif token[1] == 'in' and not (isinstance(token[2], Query) or token[2]): IndexError: string index out of range "}}]}}}},"data":{"startTag":"methodCall","methodName":"execute","params":{"param":[{"value":{"string":"MYDATABASE"}},{"value":{"int":2}},{"value":{"string":"MYPASSWORD"}},{"value":{"string":"res.partner"}},{"value":{"string":"search"}},{"value":{"array":{"data":{"value":[]}}}},{"offset":{"value":{"int":0}},"limit":{"value":{"int":10}}}]}}}


Avatar
shubham shiroya
Jawaban Terbai

you can take to diagnose and resolve this issue:

  1. Check the Domain Expression:

    • Review the code where you are constructing the domain for the search operation. Look for any places where you might be using the "in" operator incorrectly or passing incorrect data types in the domain.
  2. Examine the Data:

    • Check the data in your Odoo database, specifically the records related to the search operation. Ensure that there are no data inconsistencies or unexpected values that could be causing this error.

Review Custom Code:

  • If you have any custom code or modules that modify the behavior of Odoo's search operations, review them carefully. Check for any custom domain expressions that might be causing the issue.


0
Avatar
Buang
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Jawaban Terbai

Hi,

The error message you provided indicates an issue with the search operation on the res.partner model in Odoo. Specifically, it seems to be related to a problem with the domain expression. Check the domain expression you're using in your API request. And also check If you have any custom code or modules that interact with the res.partner model, review them to see if there might be any logic or expressions causing the issue.

It may helps you

0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Error when passing information through API Diselesaikan
python api
Avatar
Avatar
1
Sep 23
3190
Search a production order that is planned for today on python with an api
python api
Avatar
Avatar
3
Apr 19
3814
Error with call to external API
python api odoo
Avatar
Avatar
1
Agu 25
2415
Develop API and Test API in postman
python api odoo12
Avatar
Avatar
Avatar
Avatar
Avatar
5
Mei 25
35564
Auto generate invoice attachment
python invoice api
Avatar
Avatar
1
Mar 23
3089
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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