Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

error removing a module with custom fields

By
Fabio Canella
on 3/8/16, 6:18 AM 448 views

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

 

0
Diego Vázquez
On 3/8/16, 9:11 AM

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

Fabio Canella
on 3/9/16, 6:30 AM

That's all right

Diego Vázquez
on 3/9/16, 7:47 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/8/16, 6:18 AM
Seen: 448 times
Last updated: 3/9/16, 6:01 AM