Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

How to add "Street 3" field in address?

Odoberať

Get notified when there's activity on this post

This question has been flagged
addressfieldcontactscustom
3 Replies
7796 Zobrazenia
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
Zrušiť
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
Best Answer

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
Zrušiť
Zartash Baig

Thanks.

Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
How to add a custom field in address?
address field custom
Avatar
Avatar
1
apr 23
12430
I want to custom customer form field but the custom is also followed on the vendor form field
field custom vendor
Avatar
Avatar
1
jún 23
3042
STUDIO - Duplicate custom field from a sales order to the invoice
field custom Studio
Avatar
1
jún 22
3467
ERROR: Field does not exist Solved
field custom odoo8
Avatar
Avatar
2
aug 20
10433
How to pass custom field value from account.invoice to account.invoice.line on Create() method? Solved
invoice field custom
Avatar
1
nov 19
6666
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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