Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2286 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
mei 25
2564
1
apr. 25
1928
3
sep. 24
15222
2
feb. 24
2969
1
jul. 23
3113