Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Odoo External API

Subscriure's

Get notified when there's activity on this post

This question has been flagged
developmentfunction
2 Respostes
121 Vistes
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
Descartar
Avatar
CandidRoot Solutions
Best Answer

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

1
Avatar
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

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

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

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

Registrar-se
Related Posts Respostes Vistes Activitat
POS print ticket on demand.
development function
Avatar
Avatar
2
de febr. 25
1616
I want to create sub-menu under a sub-menu
development function
Avatar
Avatar
1
de gen. 25
1453
Sekcja opinii i komentarz
action development function
Avatar
0
de març 25
1439
Need: One2Many Field Customisation
development function workflow
Avatar
0
de nov. 24
29
Integration of Odoo with Dynamics 365 Online Solved
development
Avatar
Avatar
1
de des. 25
3698
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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