I have a fully working custom module (running in Eclipse in Odoo Server Installation in Ubuntu). However, when installing it in a my working company server (Odoo 8 in Ubuntu Sever 14.04), I get the following error:
Field(s) `arch` failed against a constraint: Invalid view definition
Field `x_tipocodigo` does not exist
View `product.template form`
[view_id: 686, xml_id: n/a, model: product.template, parent_id: 258]" while parsing /opt/odoo/addons/dblaboratorio/dblaboratorio_view.xml:6, near
<record id="product_template_dblaboratorio" model="ir.ui.view">
I got this error message in the past, and fixed the problem (the field was not well defined in the python file inheriting product.template), but keep getting the message and can not install. I do not get this error in fresh server installations.
I have logged out, restarted openerp server, and tried to install in new database. However, this error persists.
I have looked for the view with id=686, and apparently it does not exist.
Any help ?
I believe the view is well defined, as confirmed by module running with no errors in my local server. If you still would like to check, the code is available at https://github.com/fcanomar/dblaboratorio
I have checked view 258 (product.template.product.form) and the field x_tipocodigo is not defined there. I am not sure if it should be. I have compared with this same view in the database where the module is running and they are equivalent. These new fields are present, though, in 'product.template form', but this view is not created when the error pops.
I have also checked the versions of the module's dependencies in both servers and they are the same.
Is there any data that stays after uninstalling ? I still feel the problem is related to having installed a faulty version of the module in the past.
Any ideas ?
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
|Asked: 5/1/15, 5:54 AM|
|Seen: 811 times|
|Last updated: 5/1/15, 7:52 PM|