Hi,
How to fix this server error, please :)
Error:
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/14.0/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/home/odoo/src/odoo/14.0/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/14.0/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/14.0/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/14.0/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/14.0/odoo/http.py", line 912, in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo/14.0/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/14.0/addons/web/controllers/main.py", line 1335, in search_read
return self.do_search_read(model, fields, offset, limit, domain, sort)
File "/home/odoo/src/odoo/14.0/addons/web/controllers/main.py", line 1354, in do_search_read
return Model.web_search_read(domain, fields, offset=offset, limit=limit, order=sort)
File "/home/odoo/src/odoo/14.0/addons/web/models/models.py", line 53, in web_search_read
records = self.search_read(domain, fields, offset=offset, limit=limit, order=order)
File "/home/odoo/src/odoo/14.0/odoo/models.py", line 4837, in search_read
result = records.read(fields)
File "/home/odoo/src/odoo/14.0/odoo/models.py", line 3012, 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/14.0/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/14.0/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
ValueError: Invalid field 'line_ids' on model 'x_points_de_collecte'
Please use a meaningful title refering to your error message and provide the necessary context and code.
Hi Robert,
Can you please tell a little more about the issue like at what time you are getting the error, what are the customisation you made etc.
Coming to the error, I can see there is a custom model x_points_de_collecte' and a one2many field line_ids. Please do check the line_ids related code in both xml and py files. Also check the line_ids model to which it is related to.