Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2287 Widoki

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?  

Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
maj 25
2564
1
kwi 25
1928
3
wrz 24
15222
2
lut 24
2969
1
lip 23
3113