Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2291 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
3
Mei 25
2564
1
Apr 25
1928
3
Sep 24
15222
2
Feb 24
2969
1
Jul 23
3113