تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3044 أدوات العرض

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?

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
فبراير 23
2478
4
فبراير 25
2272
1
أغسطس 24
1942
2
نوفمبر 24
3093
1
أغسطس 24
1754