Skip to Content
Menu
This question has been flagged
3 Replies
5809 Views

While trying to set Pos met with an error.. now cant go to settings


Error:



Traceback:

TypeError: field_utils.format[(formatType || this.formatType)] is not a function

    at Class._formatValue (https://mustore-v14.odoo.com/web/content/2603-d11bb70/web.assets_backend.js:907:1237)

    at Class.init (https://mustore-v14.odoo.com/web/content/2603-d11bb70/web.assets_backend.js:1093:1195)

    at Class.prototype.<computed> [as init] (https://mustore-v14.odoo.com/web/content/2524-a43dbd1/web.assets_common.js:4619:488)

    at new Class (https://mustore-v14.odoo.com/web/content/2524-a43dbd1/web.assets_common.js:4620:65)

    at Class._renderEdit (https://mustore-v14.odoo.com/web/content/2603-d11bb70/web.assets_backend.js:1140:15)

    at Class._render (https://mustore-v14.odoo.com/web/content/2603-d11bb70/web.assets_backend.js:908:36)

    at https://mustore-v14.odoo.com/web/content/2603-d11bb70/web.assets_backend.js:905:1417


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 1377, in call_kw

    return self._call_kw(model, method, args, kwargs)

  File "/home/odoo/src/odoo/14.0/addons/web/controllers/main.py", line 1369, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/home/odoo/src/odoo/14.0/odoo/api.py", line 396, in call_kw

    result = _call_kw_multi(method, model, args, kwargs)

  File "/home/odoo/src/odoo/14.0/odoo/api.py", line 383, in _call_kw_multi

    result = method(recs, *args, **kwargs)

  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 'is_table_management' on model 'pos.config'

Avatar
Discard
Best Answer

did anyone find a solution for this error I'm facing the same error and I can't access to odoo settings?

Avatar
Discard
Best Answer

It is complaining about the 'is_table_management' field which is obviously part of pos.config model from the pos_restaurant module.

Try upgrading point_of_sale,pos_restaurant from either the command line level or database level and that should correct these discrepancies.

Though, Can you provide exact reproducible steps to regenerate this error?


Thanks


Avatar
Discard
Best Answer

From the TypeError: field_utils.format[(formatType || this.formatType)] is not a function


You need to define this as a function in your code for the  installed custom module. To get rid of this error, uninstall the custom module. 

Avatar
Discard