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
    • Discuss
    • 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

Odoo External API

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
developmentfunction
2 Replies
104 Tampilan
Avatar
elijah

Hello. I recently customized the authentication endpoint on the back end of odoo to return the  users group via a group key returned in the JSON response ,but now when I am log in in Via postman the group key is in the response but if I am too login via flutter mobile app, it doesn't show the group key in the response . I am wondering what could be  the cause? Thabkyou

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

Hi,

Since the group key appears correctly when you log in via Postman, the Odoo backend is working as expected and the issue is almost certainly on the Flutter side. In most cases, this happens because the Flutter app is parsing the response into a Dart model that does not include the new group_key field, or it is only reading a nested part of the JSON (for example, result) where the field is not being accessed. As a result, the value is silently dropped even though it exists in the raw response. It can also occur if the app is using cached or outdated code due to hot reload, or if a response wrapper/interceptor strips unknown fields. Printing the raw response body in Flutter and updating the model or parsing logic to explicitly include group_key will resolve the issue.


Hope it helps

0
Avatar
Buang
Avatar
CandidRoot Solutions
Jawaban Terbai

Hello Elijah,

This behavior is actually expected and is related to how authentication responses are handled on different clients, not an issue with your backend logic itself.

In Odoo, when you customize the authentication endpoint (for example /web/session/authenticate) to return additional data such as a user group key, the response structure depends on how the request is made and how the client parses the response.

Why it works in Postman but not in Flutter:

Postman

  • Shows the raw JSON response exactly as returned by Odoo.

  • You can see all custom keys added in the response.

Flutter mobile app

  • Most Flutter Odoo integrations (or HTTP clients) deserialize only specific fields from the response.

  • If your Flutter code or authentication service is mapping the response to a model (e.g. Session, User, etc.), any extra/custom keys are ignored unless explicitly handled.

  • In some cases, the app may only read result or session_id and discard the rest.

Common causes:
  1. Flutter model does not include the custom field

    • The group_key exists in the JSON, but your Dart model does not map it.

  2. Response parsing is limited

    • The login logic may only extract a subset of the response (e.g. user ID, token).

  3. Different endpoint usage

    • Postman may be calling /web/session/authenticate

    • Flutter may be using another endpoint or a wrapper that does not expose custom response fields.

Recommended solution:
  • Verify that the exact same endpoint is being called from Flutter.

  • Log and inspect the raw response body in Flutter before parsing.

  • Update your Dart model / response parser to explicitly read and store the group_key.

  • If using a third-party Odoo Flutter SDK, check whether it supports custom response fields.

From the Odoo side, no additional changes are required if the key is already visible in Postman — the backend is working correctly.

If you need help reviewing the backend customization or aligning it with a mobile-friendly API response, CandidRoot would be happy to assist.

If you found this explanation helpful, kindly upvote this answer.

Best Regards,


CandidRoot Solutions Pvt. Ltd.
Mobile: (+91) 8849036209
Whatapp: (+91) 8849036209

Email: info@candidroot.com
Web: https://www.candidroot.com

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
POS print ticket on demand.
development function
Avatar
Avatar
2
Feb 25
1616
I want to create sub-menu under a sub-menu
development function
Avatar
Avatar
1
Jan 25
1453
Sekcja opinii i komentarz
action development function
Avatar
0
Mar 25
1437
Need: One2Many Field Customisation
development function workflow
Avatar
0
Nov 24
29
Integration of Odoo with Dynamics 365 Online Diselesaikan
development
Avatar
Avatar
1
Des 25
3683
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