This question has been flagged
2 Replies
2173 Views

Hello all,

we are testing odoo 12 to manage our fleet but when we try to add any contract/cost/service/fuel... we got following error.

Hope somebody can help me to fix it.

Thank you


Odoo Server Error
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 654, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 312, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 696, in dispatch
    result = self._call_function(**self.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 344, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 337, in checked_call
    result = self.endpoint(*a, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 939, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 904, in search_read
    return self.do_search_read(model, fields, offset, limit, domain, sort)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 926, in do_search_read
    offset=offset or 0, limit=limit or False, order=sort or False)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 4525, in search_read
    records = self.search(domain or [], offset=offset, limit=limit, order=order)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 1561, in search
    res = self._search(args, offset=offset, limit=limit, order=order, count=count)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 4063, in _search
    order_by = self._generate_order_by(order, query)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 4037, in _generate_order_by
    order_by_elements = self._generate_order_by_inner(self._table, order_spec, query)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 4004, in _generate_order_by_inner
    raise ValueError(_("Sorting field %s not found on model %s") % (order_field, self._name))
ValueError: Camp d'ordenació license_plate no trobat al model fleet.vehicle.cost

Avatar
Discard
Author Best Answer

Fixed enabling "Developer mode" and then disabling it

Avatar
Discard
Best Answer

Hi,

Can you check the same in Odoo runbot and see whether you can reproduce the same over there, Upon checking the runbot we are not able to trace the issue you have posted.   If you are able to reproduce the issue in the runbot, please report it at https://github.com/odoo/odoo/issues


So if you are not able to reproduce the issue in runbot, get the latest version of the odoo12 and check once again in your local. Also, make sure that the custom module is not causing the issues.


Thanks

Avatar
Discard