Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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 ?
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/1/15, 5:54 AM|
|Seen: 1058 times|
|Last updated: 5/1/15, 7:52 PM|