Closed satriani-vai closed 6 years ago
Also ich habe es bis dato nicht geschafft dieses Fehler zu reproduzieren. Auch auf unserem Demo Server sind die neuen Versionen installiert. Hast du bereits gecheckt, ob du die neuersten Versionen aller Dependencies hast und anschließende den Server restartet vor dem Update.
Ich habe extra alles aus dem github geholt. Anschließend den Server neugestartet, doch leider mit gleichem Ergebnis.
Error: Odoo Server Error
Traceback (most recent call last): File "/opt/odoo/odoo/models.py", line 1033, in _validate_fields check(self) File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 335, in _check_xml self.postprocess_and_fields(view.model, view_doc, view.id) File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1042, in postprocess_and_fields self.raise_view_error(message, view_id) File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 503, in raise_view_error raise ValueError(message) ValueError: El campo inherit_groups no existe
Contexto del error: Vista muk_dms_directory.form [view_id: 1881, xml_id: muk_dms_access.view_dms_directory_form, model: muk_dms.directory, parent_id: 1871]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/tools/convert.py", line 741, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/opt/odoo/odoo/tools/convert.py", line 651, in _tag_record
id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
File "/opt/odoo/odoo/addons/base/ir/ir_model.py", line 1437, in _update
record.write(values)
File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 414, in write
return super(View, self).write(self._compute_defaults(vals))
File "/opt/odoo/odoo/models.py", line 3094, in write
field.determine_inverse(records)
File "/opt/odoo/odoo/fields.py", line 1071, in determine_inverse
getattr(records, self.inverse)()
File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 266, in _inverse_arch
view.write(data)
File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 414, in write
return super(View, self).write(self._compute_defaults(vals))
File "/opt/odoo/odoo/models.py", line 3076, in write
self._write(old_vals)
File "/opt/odoo/odoo/models.py", line 3242, in _write
self._validate_fields(vals)
File "/opt/odoo/odoo/models.py", line 1037, in _validatefields
raise ValidationError("%s\n\n%s" % (("Error while validating constraint"), tools.ustr(e)))
odoo.exceptions.ValidationError: ('Error mientras se validaban las restricciones\n\nEl campo inherit_groups no existe\n\nContexto del error:\nVista muk_dms_directory.form
\n[view_id: 1881, xml_id: muk_dms_access.view_dms_directory_form, model: muk_dms.directory, parent_id: 1871]', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/odoo/odoo/http.py", line 692, in dispatch
result = self._call_function(self.params)
File "/opt/odoo/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, *kwargs)
File "/opt/odoo/odoo/service/model.py", line 97, in wrapper
return f(dbname, args, kwargs)
File "/opt/odoo/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, kw)
File "/opt/odoo/odoo/http.py", line 936, in call
return self.method(*args, *kw)
File "/opt/odoo/odoo/http.py", line 515, in response_wrap
response = f(args, kw)
File "/opt/odoo/OCB/addons/web/controllers/main.py", line 930, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/OCB/addons/web/controllers/main.py", line 922, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, *kwargs)
File "
El campo inherit_groups no existe
Contexto del error: Vista muk_dms_directory.form [view_id: 1881, xml_id: muk_dms_access.view_dms_directory_form, model: muk_dms.directory, parent_id: 1871] None" while parsing /opt/odoo/otros_modulos/muk_dms_access/views/dms_directory_view.xml:22, near
We have a problem, the new versions of the modules to update give us the error described. Attached image in previous message. From the local and remote version we get the same version, but we can not update them.
It could be that the DMS modules are up-to-date but not the dependencies. With the 2.0 update, not only the DMS but also almost all dependencies have changed. Especially the modules MuK Utils and MuK Security. Are you testing the update on a fresh database or on an existing one? With an existing database it can happen that Odoo does not update the tables correctly and then the postgres database has to be changed manually. So you may have to add the field manually.
I can not solve this error, has anyone succeeded? Thank you!
Have your tried to add the field manually?
I will continue trying for now I can not solve it. Could another solution be to return to the previous version of the module? Thank you!
Hi,
can someone who has this problem and can share his screen or similar write us an e-mail as we can't reproduce this bug. We would then post the answer.
email: office@mukit.at
Regards, Kerrim
A problem seems to exist if one or both obsolete modules muk_dms_connector and muk_dms_access_connector are inside the addons folder. These were discarded in the 2.0 rework and are no longer required. However, since these two modules were not adapted to the 2.0 versions this seems to lead to problems if they are still in the addon folder.
Please make sure that these modules have been removed accordingly.
Can anyone confirm that this has solved the error?
Effectively, this solves the error... Thank you!! :))