Contributors mailing list archives
contributors@odoo-community.org
Browse archives
XML errors when upgrading modules, because of fields in unrelated modules
by
ClosingAp Open Source Integrators Europe, LDA, Daniel Reis
Hello,
I've been finding this weird issue for a while, but decided to take some tome to write about it.
I've seen frequently the case where:
1. A custom module adds a field to a model and view. For example. to res.company.
2. Later, another (unrelated) custom module also adds a new field to that same model (model and view).
When installing or upgrading that second module, I see errors loading the XML with the form view.
The error says that the field added by module 1 is missing in the view.
But a) module 1 is installed an the field exists and b) the XML for the view in module 2 doesn't have any reference to that "missing" field!
I found this frequently in Odoo 14.
Honestly I'm not sure if it if also happens in other versions.
Has anyone else experienced this?
Thank you
I've been finding this weird issue for a while, but decided to take some tome to write about it.
I've seen frequently the case where:
1. A custom module adds a field to a model and view. For example. to res.company.
2. Later, another (unrelated) custom module also adds a new field to that same model (model and view).
When installing or upgrading that second module, I see errors loading the XML with the form view.
The error says that the field added by module 1 is missing in the view.
But a) module 1 is installed an the field exists and b) the XML for the view in module 2 doesn't have any reference to that "missing" field!
I found this frequently in Odoo 14.
Honestly I'm not sure if it if also happens in other versions.
Has anyone else experienced this?
Thank you
--
DANIEL
REIS
MANAGING DIRECTOR
MANAGING DIRECTOR
M:
+351 919 991 307
E:
dreis@OpenSourceIntegrators.com
A:
Avenida da República 3000, Estoril Office B, #34
Follow-Ups
-
Re: XML errors when upgrading modules, because of fields in unrelated modules
byCamptocamp France SAS, Sébastien Alix -
Re: XML errors when upgrading modules, because of fields in unrelated modules
byMT Software, Michael Tietz -
Re: XML errors when upgrading modules, because of fields in unrelated modules
byClosingAp Open Source Integrators Europe, LDA, Daniel Reis -
Re: XML errors when upgrading modules, because of fields in unrelated modules
byVauxoo, Moisés López Calderón