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

Custom field to base field

Tilmeld

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

Dette spørgsmål er blevet anmeldt
fieldscustombase
3 Besvarelser
13944 Visninger
Avatar
Panagiotis Bekiaris

Hello,

I'm experiencing a strange functionality when I create a custom field. I use Openerp v.7. Either the field is created from Technical->Database Structure->Fields or inside the related Model, sometimes it is converted to a base field. I can't figure out how this is done, the name of the field starts with an x_ as it should and at the creation field form I can see it is of type Custom Field before saving. After saving and reloading the page I just see that the type has changed. Moreover, I can't delete that field or use it in a view because it throws xml validation error.

Does anyone know why this is happening or how can I deal with this?

1
Avatar
Kassér
Eric

Are you saying that the field is changing from a Custom Field to a Base Field after its saved?

Panagiotis Bekiaris
Forfatter

Yes, that's what I'm saying. The Type of the field changes without being able to control it.

Eric

That is strange. So does it still have the x_ appended to the front of the name after it's saved? Or is it cropped off once the field is saved? Does the xml view have that name spelled the same way on it? Because I know it will cause that xml validation error if the view doesn't recognize another field because the name is spelled differently.

Panagiotis Bekiaris
Forfatter

No, it still has the x_. However, I'm not able to use it in the view at all. It throws xml validation error. This is how I noticed the problem the first time. I created a field inside a model and then went to edit the view and it caused validation error. I also searched the database to see if there was a column with that name but nothing. It's like that I can see the field in the field list but it doesn't really exist. I also restarted the service but nothing changed.

Eric

What message do you get when you try deleting the field?

Panagiotis Bekiaris
Forfatter

On Delete I get this:Error This column contains module data and cannot be removed! On edit I get:Error!

Properties of base fields cannot be altered in this manner! Please modify them through Python code, preferably through a custom addon!

Eric

On Delete, does the error tell you what table the module data exists in?

Panagiotis Bekiaris
Forfatter

Do you mean on the delete pop-up window? No, there it doesn't say anything else. If it helps, I had created the field inside the res.partner model and I can see it in the model's field list and in form view of the field it also says model:Partner

Eric

if you open your Postgres database, and look up the table ir_model_fields, do you see the field exist in there?

Panagiotis Bekiaris
Forfatter

Yes, I can see it there. On state it says "base". Should I deleted from there?

Eric

Yes I would delete it from there. Then restart your service and clear your browsing history also. This way you should get a fresh start

Panagiotis Bekiaris
Forfatter

It is really weird how this has happened at first.Thanks a lot for your help!

Avatar
Gerard ONeill
Bedste svar

FYI, I have this same issue.  It looks like the field became available on different models, and in those models, the type was set to "Base Field".  In the original model I put it in, it still had "Custom Field".  I was able to delete that field.  So perhaps  there is some kind of propagation error where the field is copied to other models where it can be used, and during the copy process it set's Base Field.  This might be a bug.


0
Avatar
Kassér
Avatar
Panagiotis Bekiaris
Forfatter Bedste svar

Yes, that's what I'm saying. The Type of the field changes without being able to control it.

0
Avatar
Kassér
Avatar
Ken Tong
Bedste svar

Dear All,

I encountered this problem when trying to set "required" for custom field. The error did not prompt when I did not key into the field.

For the default field (base), the erir will prompt if  I did not key in the field.

Anyone know what is the problem?? Thanks in advance.

https://dl.dropboxusercontent.com/u/42025188/default_field.png

https://dl.dropboxusercontent.com/u/42025188/custom_field.png

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
Fixing a custom field and database implications?
fields custom
Avatar
Avatar
1
maj 16
6869
Adding custom fields by GUI?
fields custom
Avatar
Avatar
2
mar. 15
9566
Odoo 15 Community: Use Inherited Views to show Custom Field from sale.order in account.move.form
fields models custom
Avatar
0
jul. 22
3349
Add custom fields to product page on e-commerce website in an odoo.sh cloud setup
fields custom e-commerce
Avatar
Avatar
1
jan. 24
7217
Add custom fields to search form of e-commerce on odoo.sh cloud setup
fields search custom
Avatar
0
maj 22
3235
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