Skip to Content
Menu
This question has been flagged
1 Atsakyti
2297 Rodiniai

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?  

Portretas
Atmesti
Best Answer

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


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
geg. 25
2566
1
bal. 25
1929
3
rugs. 24
15223
2
vas. 24
2970
1
liep. 23
3113