Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

Custom field to base field

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
fieldscustombase
3 Risposte
13953 Visualizzazioni
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
Abbandona
Eric

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

Panagiotis Bekiaris
Autore

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
Autore

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
Autore

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
Autore

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
Autore

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
Autore

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

Avatar
Gerard ONeill
Risposta migliore

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
Abbandona
Avatar
Panagiotis Bekiaris
Autore Risposta migliore

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

0
Avatar
Abbandona
Avatar
Ken Tong
Risposta migliore

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
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
Fixing a custom field and database implications?
fields custom
Avatar
Avatar
1
mag 16
6876
Adding custom fields by GUI?
fields custom
Avatar
Avatar
2
mar 15
9569
Odoo 15 Community: Use Inherited Views to show Custom Field from sale.order in account.move.form
fields models custom
Avatar
0
lug 22
3356
Add custom fields to product page on e-commerce website in an odoo.sh cloud setup
fields custom e-commerce
Avatar
Avatar
1
gen 24
7219
Add custom fields to search form of e-commerce on odoo.sh cloud setup
fields search custom
Avatar
0
mag 22
3240
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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