Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1154 Vistas

Hi all,

One of our kiosks has stopped working correctly, when we click the 'Pay' button after adding products we receive an error message, 'An error has occurred.' It was working correctly yesterday.

As far as I am aware, no changes have been made to the setup.

Any help would be appreciated. 

We are using v18, in the 'Odoo.log' it has the following entries.


2024-11-19 14:16:44,705 8680 ERROR POS-MUK odoo.http: Exception during request handling.

Traceback (most recent call last):

  File "X:\Odoo-POS\Odoo 18.0.20241110\server\odoo\http.py", line 2363, in __call__

    response = request._serve_db()               ^^^^^^^^^^^^^^^^^^^

  File "X:\Odoo-POS\Odoo 18.0.20241110\server\odoo\http.py", line 1891, in _serve_db

    return self._transactioning(

           ^^^^^^^^^^^^^^^^^^^^^

  File "X:\Odoo-POS\Odoo 18.0.20241110\server\odoo\http.py", line 1954, in _transactioning

    return service_model.retrying(func, env=self.env)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "X:\Odoo-POS\Odoo 18.0.20241110\server\odoo\service\model.py", line 137, in retrying

    result = func()

             ^^^^^^

  File "X:\Odoo-POS\Odoo 18.0.20241110\server\odoo\http.py", line 1921, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "X:\Odoo-POS\Odoo 18.0.20241110\server\odoo\http.py", line 2168, in dispatch

    result = self.request.registry['ir.http']._dispatch(endpoint)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "X:\Odoo-POS\Odoo 18.0.20241110\server\odoo\addons\base\models\ir_http.py", line 329, in _dispatch

    result = endpoint(**request.params)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "X:\Odoo-POS\Odoo 18.0.20241110\server\odoo\http.py", line 727, in route_wrapper

    result = endpoint(self, *args, **params_ok)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "X:\Odoo-POS\Odoo 18.0.20241110\server\odoo\addons\pos_self_order\controllers\orders.py", line 20, in process_order

    sequence_number = re.findall(r'\d+', ir_sequence_session)[0]

                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "X:\Odoo-POS\Odoo 18.0.20241110\python\Lib\re\__init__.py", line 217, in findall

    return _compile(pattern, flags).findall(string)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

TypeError: expected string or bytes-like object, got 'bool'

Avatar
Descartar
Autor Mejor respuesta

I found the error, in the edit button someone had unticked the 'Log in with Employees' box.
I re-ticked it and the kiosk now works correctly.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
ago 25
657
1
jul 25
896
3
jul 25
3021
3
may 25
1626
1
jul 25
1106