Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

Add a custom field (for storing domains owned) to a Customer record?

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
custom
13 Besvarelser
6161 Visninger
Avatar
Espoon Akvaariotukku Oy

I need to add a "Domains" tab to Company "Contacts" Form that can be used to list the domains company owns.

How do I do that?


Sam
Using odoo9

0
Avatar
Kassér
Avatar
Ray Carnes
Bedste svar

1. Make sure you are in Developer Mode.

2. Settings --> Technical --> Database Structure --> Models. 

  • You need to create a new model (table) to store the domain.

  • Click CREATE.

  • Enter Domains for the model description, x_domain for the model name.

  • Click Add an Item to add a field to store the URL:

          
  • Click Save and New to add a field to store the Customer the URL is related to:

       

          


  •  Save the model

3. Link the model to the Partner model, so Customers can have one or more domains:

  • Open the res.partner model

  • Add a new field x_domain_ids

          
  • Save this change.


4.   Settings --> Technical --> User Interface --> Views

Create a new View to add the x_domain_ids field to the User Interface:




This is the final result:


1
Avatar
Kassér
Espoon Akvaariotukku Oy
Forfatter

Thank you for your clear answer. I seem to be missing something though since the View can't be saved. The error message is... Invalid view definition Error details: Field `x_name` does not exist Error context: View `res.partner.form.custom` [view_id: 1678, xml_id: n/a, model: res.partner, parent_id: 123]

Espoon Akvaariotukku Oy
Forfatter

http://dl.dropbox.com/u/49702772/Selection_083.jpg

Ray Carnes

I think you made a mistake on step (3). Can you post a screenshot of how you added x_domain_ids to res.partner?

Espoon Akvaariotukku Oy
Forfatter

http://dl.dropbox.com/u/49702772/Selection_084.jpg

Espoon Akvaariotukku Oy
Forfatter

http://dl.dropbox.com/u/49702772/Selection_085.jpg

Espoon Akvaariotukku Oy
Forfatter

http://dl.dropbox.com/u/49702772/Selection_085.jpg

Ray Carnes

Your last two screenshots are the same. Can you post a screenshot of how you added x_domain_ids to res.partner?

Espoon Akvaariotukku Oy
Forfatter

This is the screenshot of res.partner... http://dl.dropbox.com/u/49702772/Selection_084.jpg And this is the screenshot of x_domain_ids it self... http://dl.dropbox.com/u/49702772/Selection_085.jpg Looks ok...

Ray Carnes

I don't see anything wrong with any of the screenshots you have shared. Can you share the screenshot of your VIEW res.partner.form.custom?

Espoon Akvaariotukku Oy
Forfatter

If I try to Save this it will give an error. http://dl.dropbox.com/u/49702772/Selection_087.jpg Here is the error... http://dl.dropbox.com/u/49702772/Selection_086.jpg

Ray Carnes

Sorry it isn't working for you. I repeated the steps I posted on a new database and it all worked fine. I am guessing you aren't saving everything but I don't know how else I can assist you - it has worked twice for me following exactly what I posted for you.

Avatar
Espoon Akvaariotukku Oy
Forfatter Bedste svar

Thx. This worked on a new odoo 9 installation.

0
Avatar
Kassér
Enjoying the discussion? Don't just read, join in!

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

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
Self hosting Odoo custom Løst
custom
Avatar
1
aug. 24
2792
When i try to print a custom report i get a InternalError: current transaction is aborted, commands ignored until end of transaction block
custom
Avatar
Avatar
1
sep. 15
6807
How do i utilize odoo's websocket connection ?
development custom
Avatar
Avatar
1
aug. 25
2771
How to Add a Custom Button in the Header of Kanban and List Views on the Contact Page in Odoo13?
custom Wizard
Avatar
0
aug. 24
2222
Add a personal icon
custom icon
Avatar
Avatar
2
aug. 24
3186
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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