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:
ParseError: "ValidateError
Field(s) `arch` failed against a constraint: Invalid view definition
Error details:
Field `x_tipocodigo` does not exist
Error context:
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 ?
You need to check that view 258 (product.template.form) have field x_tipocodigo... You probably use this field to specify the position in the inherited template... View 686 is probably the view which are roolbacked due to the invalid view definition. Let us know...