This question has been flagged
2 Replies
3898 Views

Hello everyone

Got this error message in Odoo: 

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.


I had updated a file and was upgrading the module when I got this error:

ParseError: "ValidateError

Field(s) `arch` failed against a constraint: Invalid view definition


Error details:

Field `labels_id` does not exist


Error context:

View `vetclinic.animal.form.view`

[view_id: 643, xml_id: n/a, model: vetclinic.animal, parent_id: n/a]" while parsing file:///C:/Odoo/server/openerp/addons/devTrain/devtrain_view.xml:16, near

<record id="vetclinic_animal_form_view" model="ir.ui.view">

<field name="name">vetclinic.animal.form.view</field>

<field name="view_type">form</field>

<field name="model">vetclinic.animal</field>

<field name="arch" type="xml">

<form string="Animal">

<field name="name"/>

<field name="birthdate"/>

<field name="breed_id"/>

<field name="classification_id"/>

<field name="labels_id"/>

</form>

</field>

</record>


When I clicked "OK" I got internal server error and now I can't get back into Odoo. I tried stop/start on both Odoo and Postgre server but still nothing. This has happened twice today (on my local and my remote machine). 

Can anyone help me?

Avatar
Discard
Best Answer


you'll have to fix your view (vetclinic.animal.form.view) and/or your datamodel (vetclinic.animal), depending on what you have changed. And if your installation is on windows, you should restart the odoo service.

Does your model still contain the labels_id field?

with kind regards,

Sven
www.conexus.at

Avatar
Discard
Author Best Answer

Hello Sven

Thank you for your answer. I found what is wrong... I have labels.ids  not label.id

Silly mistake but took me ages to find

Avatar
Discard