跳至内容
菜单
此问题已终结
1 回复
2295 查看

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
2566
1
4月 25
1928
3
9月 24
15222
2
2月 24
2969
1
7月 23
3113