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

I desire to alter the first and last name field with write method. odoo15ce

S'inscrire

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

Cette question a été signalée
odooodooV8_database
2367 Vues
Avatar
Saif Alhourani

Hello All,


I am trying to change an element from a list of elements, but the correct syntax to access and modify that element internally using a typical controller is not yet available..


Code:

----------- ->

{ 

     "jsonrpc": "2.0",

     "id": null, 

     "result": 

          { 

            "code": 200, 

            "message": "Done", 

            "result": [ 

                 {

                     "name": "22", 

                     "active_app": true, 

                     "start_date": "2022-07-04 16:41:09",     

                     "end_date": false,

                     "url2": false, 

                     "zipcode": false, 

                     "country_ids": [ 

                            { 

                                "id": 233, 

                                "name": "United States",

                                "first name": [ 1, "John" ],

  •                                 "last_name": [ 1, "Mark" ],

                                "code": "US", 

                                "address_format": "%(street)s\n%(street2)s\n", 

                                "address_view_id": false, 

                                "currency_id": [ 2, "USD" ], 

                                "image_url": "/base/static/img/us.png", 

                                "phone_code": 1, "country_group_ids": [],

                                "name_position": "before", 

                                "vat_label": "EIN", 

                                "state_required": true, 

                                "zip_required": true,

                                "__last_update": "2022-01-12 01:02:51",

                                "display_name": "United States", 

                                "create_uid": [ 1, "Bot" ],

                                "create_date": "2022-01-12 01:02:51", 

                                "write_uid": [ 1, "Bot" ], 

                                "write_date": "2022-01-12 01:02:51"

                            } 

                    ], 

                   "partner_id": "res.partner()", 

                   "selected_page": "Sale", 

                   "image": false 

            }, 

            { 

                "active_app": true, 

                "start_date": "2022-08-09 13:56:15",

                "end_date": false, 

                "url2": false, 

                "zipcode": false

             } 

        ]

     }

}

----------------------


-> res_country.write({'country_ids''last_name': kwargs['name']}) 


ex.2:

----------- ->

beyonce = {

  "name" : "Beyoncé",

  "popularity" : 86,

  "type" : "artist",

  "uri" : "spotify:artist:6vWDO969PvNqNYHIOW5v0m",

  "external_urls" : {

    "spotify" : "https://open.spotify.com/artist/6vWDO969PvNqNYHIOW5v0m"

  },

  "followers" : {

    "href" : None,

    "total" : 3841151

  },

}


and i want to change update the total from 3841151 to 5000


I found this line to be ineffective.


Help me please.

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é
InternalError: current transaction is aborted, commands ignored until end of transaction block
odoo odoo8.0 odooV8_database
Avatar
Avatar
Avatar
Avatar
3
mars 22
30546
Embed JS code Odoo 8
odoo odooV8 odooV8_database
Avatar
0
mars 15
5592
(!!C-o-p-a!!)¿Cómo comunicarse con Copa Airlines en Panamá?
odoo
Avatar
0
nov. 25
211
How do I go about this error? I am trying to uninstall a module
odoo
Avatar
0
nov. 25
3333
(#iberia#)¿Cómo llamar a Iberia desde Panamá?
odoo
Avatar
0
oct. 25
399
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