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

Hi, all

While creating my first module for odoo 10.0, I initially specified the _inherits attribute for some new model classes. I subsequently found that I don't need it for my purposes. However, despite upgrading the module, removing the _inherits attribute and, later, even specifying 

_inherits = {}

the inherited model fields still appears in my new model.

How can I remove the link between my model field and the inherited model?

อวตาร
ละทิ้ง
ผู้เขียน

The simplest way I can see to do this is to run the following query in in the database:

delete from ir_model_fields where model = 'model.name' and relation is not null and relation_field is null and relation_table is null and related is not null

Is this viable?

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 23
2630
4
ก.พ. 25
2701
1
ส.ค. 24
2233
2
พ.ย. 24
3370
Self hosting Odoo custom แก้ไขแล้ว
1
ส.ค. 24
2046