Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2304 Переглядів

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?  

Аватар
Відмінити
Найкраща відповідь

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


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
трав. 25
2567
1
квіт. 25
1932
3
вер. 24
15226
2
лют. 24
2971
1
лип. 23
3113