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

Hello I create a custom bpartner module with a custom field x_note2 extending also the view res.partner.form using an xml file

Now I would like to remove this custom module but I got an error:

File "/opt/odoo/openerp/addons/base/ir/ir_ui_view.py", line 360, in raise_view_error
    raise AttributeError(message)
AttributeError: Field `x_note2` does not exist

Error context:
View `res.partner.form`
[view_id: 126, xml_id: base.view_partner_form, model: res.partner, parent_id: n/a]

How can I clean the database ?


Best regards

 

الصورة الرمزية
إهمال
أفضل إجابة

Hello,

the problem seems that res.partner.form view is searching for x_note2 on view, but doesn't exist on model. If you want to delete the custom, first i would try commenting on xml lines that overwrite the base.view_partner_form and update the module, and after updating (with no field on model neither view), uninstall the module.

If you prefer doing on database, you must go to ir_ui_view table and search for record that overwrite this view and delete it

الصورة الرمزية
إهمال
الكاتب

Thank you very much

That's all right

المنشورات ذات الصلة الردود أدوات العرض النشاط
8
نوفمبر 24
30363
1
سبتمبر 16
3832
0
أبريل 22
2527
1
مارس 15
5059
3
يوليو 18
4356