Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2296 มุมมอง

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
2566
1
เม.ย. 25
1929
one2one relational field แก้ไขแล้ว
3
ก.ย. 24
15223
2
ก.พ. 24
2970
1
ก.ค. 23
3113