Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

✅ [Odoo Studio][API] – x_name value different from Odoo and API

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
fieldsapinamestudio
1 Rispondi
1593 Visualizzazioni
Avatar
Thomas Aonzo

You changed a x_name field value in Odoo Studio and it looks fine in the interface...

But when you call the API, you still get the original value set at creation?

The likely cause: the field option is marked as "Translatable".

When a field is translatable, you are only modifying the translated version for your current UI language, not the actual value stored in the database.

So what happens:

  • The interface displays: "Product A"
  • But the API still returns: "Prod-" (the original value in the default language)

How to fix it:

Go to the field properties in Studio and uncheck "Translatable".

Your field will now behave correctly and show the updated value consistently across the UI and API.

Important: you'll need to manually update existing records to correct the value stored in the original (untranslated) field.

---------

Le champ x_name ne se met pas à jour dans l’API versus l'affichage Odoo ?Voici pourquoi.


Vous avez modifié la valeur d’un champ x_name dans Odoo Studio et tout semble correct dans l’interface…

Mais en appelant l’API, vous récupérez toujours la première valeur saisie lors de la création de l’enregistrement ?

La cause probable : l’option “Traduisible” est activée sur ce champ.

Lorsqu’un champ est traduisible, vous ne modifiez que la version traduite dans la langue de l’interface, pas la valeur réelle stockée dans la base de données.

Résultat :

  • L’interface affiche : "Produit A"
  • Mais l’API renvoie toujours : "Prod-" (la valeur d’origine non traduite)

Solution :

Dans Studio, accédez aux propriétés du champ et décochez “Traduisible”.

La valeur sera alors cohérente dans l’interface et dans l’API.

Attention : il faudra corriger manuellement les enregistrements existants, car la vraie valeur de x_name reste inchangée jusqu’à modification explicite.

0
Avatar
Abbandona
Avatar
D Enterprise
Risposta migliore

Quick recap of the issue and fix:

  • What’s happening:
    When a field is marked Translatable, the value you change via the UI only affects the current user’s language translation.
    The original (default) value in the database remains unchanged, so API calls (which usually fetch the default language) return the old/original value.
  • How to fix:
    1. In Odoo Studio, edit the field properties and uncheck “Translatable”.
    2. After that, the field will have a single value stored and shown everywhere (UI + API).
    3. For existing records, you might need a script to update the default language value manually, because it remains outdated.
0
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
unbild decimail place
fields studio
Avatar
Avatar
1
feb 25
1510
Remove (studio) custom field Risolto
fields studio
Avatar
Avatar
1
mar 23
5912
Editing Fields Risolto
fields studio
Avatar
Avatar
2
nov 20
4080
Editing Fields Risolto
fields studio
Avatar
Avatar
2
nov 20
8911
[8.0] [API] Computed Fields - Using the Search Function
fields api
Avatar
0
giu 15
7111
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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