コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2305 ビュー

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


アバター
破棄
関連投稿 返信 ビュー 活動
3
5月 25
2567
1
4月 25
1932
3
9月 24
15227
2
2月 24
2971
1
7月 23
3113