Hi. I got an error while importing a custom module in odoo SaaS. The custom module basically contains reports and adds 2 new fields in res.partner and hr.employee. Qweb reports are installed correctly but I have an error in the models. I've uninstalled the module I got the same error 'ValueError: Invalid Field '' in both models res.partner and hr.employee after uninstalling. The uninstallation was successful 'cause the reports were deleted. The problem is within the models.
This is the log error.
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File
"/home/odoo/src/odoo/saas-15.2/odoo/addons/base/models/ir_http.py",
line 237, in _dispatch
result = request.dispatch()
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 687,
in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 359,
in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/saas-15.2/odoo/service/model.py",
line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 348,
in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 915,
in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 535,
in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/saas-15.2/addons/web/controllers/main.py",
line 1360, in call_kw
return self._call_kw(model, method, args, kwargs)
File
"/home/odoo/src/odoo/saas-15.2/addons/web/controllers/main.py", line
1352, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/saas-15.2/odoo/api.py", line 461, in
call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/saas-15.2/odoo/api.py", line 448, in
_call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/src/odoo/saas-15.2/odoo/models.py", line
3232, in read
raise ValueError("Invalid field %r on model %r" %
(name, self._name))
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 643,
in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 301,
in _handle_exception
raise exception.with_traceback(None) from new_cause
ValueError: Invalid field 'document_nit' on model 'res.partner'
Same problem wit another model product.template. Did you fix this?