Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

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

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
fieldsapinamestudio
1 Répondre
1595 Vues
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
Ignorer
Avatar
D Enterprise
Meilleure réponse

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
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
unbild decimail place
fields studio
Avatar
Avatar
1
févr. 25
1510
Remove (studio) custom field Résolu
fields studio
Avatar
Avatar
1
mars 23
5912
Editing Fields Résolu
fields studio
Avatar
Avatar
2
nov. 20
4080
Editing Fields Résolu
fields studio
Avatar
Avatar
2
nov. 20
8911
[8.0] [API] Computed Fields - Using the Search Function
fields api
Avatar
0
juin 15
7111
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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