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

How to add "Street 3" field in address?

S'inscrire

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

Cette question a été signalée
addressfieldcontactscustom
3 Réponses
7782 Vues
Avatar
Renz Isla

For example in Contacts module there are Street, Street 2, City, State, ZIP and Country fields. I want to add a Street 3 in the address. So my scenario is I will create a customer in CRM then I will create a quotation for that customer. I want the Street 3 will always show in the address (Example when I view the quotation or customer preview the shipping address will also show the street 3).

My problem: I created a custom field then add that field in res.partner.form but when I view a quotation or in customer preview my custom field does not show.

0
Avatar
Ignorer
Sehrish

See this to customize odoo modules: https://goo.gl/8HgnCF

Chris TRINGHAM

Hi Paresh,

If you view a quotation there is a field/link Customer and it has the name of customer and below is its address. It is not a usual field It is a widget so it is hard or even impossible to include a custom field.

In customer view, you cannot use the developer mode even if it is activated.

That is why I want to add a custom field in address so whenever the address used in different module the custom field always included?

I don't need to force to achieve it I just want to know if that is possible or if it is possible but I need to modify a lot in code.

Another challenge is that I don't customized directly in odoo source code instead I use separate repository and used that by odoo community. I'm using Odoo.sh that is why.

Thanks!

Paresh Wagh

Hi Renz: Please see the additional information I have added to my earlier response based on the clarification you provided. Hope this helps.

Avatar
Paresh Wagh
Meilleure réponse

Hi Renz: 

You will also need to add the new field (Street 3) to the views on which the Quotation and Customer preview forms are based for it to be displayed there.

EDIT (based on your clarification):

The res_partner_many2one widget gets the information from the list of address fields which is hard coded in the base code which is located here (for rel 13):

https://github.com/odoo/odoo/blob/13.0/odoo/addons/base/models/res_partner.py#L31

If you are familiar with how to customize the Odoo code you can extend the Partner class listed here and override the ​ _address_fields method to add your custom field to the list so that it gets picked up across the system. The ​ _address_fields method is located at the following line in the same script.

https://github.com/odoo/odoo/blob/13.0/odoo/addons/base/models/res_partner.py#L397

 

0
Avatar
Ignorer
Zartash Baig

Thanks.

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é
How to add a custom field in address?
address field custom
Avatar
Avatar
1
avr. 23
12417
I want to custom customer form field but the custom is also followed on the vendor form field
field custom vendor
Avatar
Avatar
1
juin 23
3032
STUDIO - Duplicate custom field from a sales order to the invoice
field custom Studio
Avatar
1
juin 22
3462
ERROR: Field does not exist Résolu
field custom odoo8
Avatar
Avatar
2
août 20
10416
How to pass custom field value from account.invoice to account.invoice.line on Create() method? Résolu
invoice field custom
Avatar
1
nov. 19
6651
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