Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2306 Visualizzazioni

Odoo v12
For example, one model inherit 'my.model' and adds a field 'color', and at the same time the second model inherit the model 'my.model' and adds the same field 'color'. How to check on inheritance if this field exists in the model 'my.model', and if not, create it?  

Avatar
Abbandona
Risposta migliore

If you inherit model and again declare the same field as you say then in your inherited model that field override and work like inherited field and if this field does not exist in the main model then it creates for this model


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
mag 25
2567
1
apr 25
1932
3
set 24
15227
2
feb 24
2971
1
lug 23
3113