Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
2092 Weergaven

After upgrading our odoo environment to version 16. we can't seem to access the helpdesk.team app anymore when swedish language is set. It works if the lang is set to english. 

Here is the full error:

Traceback (most recent call last):
  File "/home/odoo/odoo/lib/odoo/odoo/tools/cache.py", line 85, in lookup
    r = d[key]
  File "", line 2, in __getitem__
  File "/home/odoo/odoo/lib/odoo/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "/home/odoo/odoo/lib/odoo/odoo/tools/lru.py", line 34, in __getitem__
    a = self.d[obj]
KeyError: ('helpdesk.team', , (False, 'form', None, 'sv_SE'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/odoo/lib/odoo/odoo/http.py", line 1583, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/home/odoo/odoo/lib/odoo/odoo/service/model.py", line 134, in retrying
    result = func()
  File "/home/odoo/odoo/lib/odoo/odoo/http.py", line 1610, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/home/odoo/odoo/lib/odoo/odoo/http.py", line 1807, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
  File "/home/odoo/odoo/lib/odoo/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
    result = endpoint(**request.params)
  File "/home/odoo/odoo/lib/odoo/odoo/http.py", line 696, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/home/odoo/odoo/lib/odoo/addons/web/controllers/dataset.py", line 42, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/odoo/odoo/lib/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/odoo/odoo/lib/odoo/odoo/api.py", line 457, in call_kw
    result = _call_kw_model(method, model, args, kwargs)
  File "/home/odoo/odoo/lib/odoo/odoo/api.py", line 430, in _call_kw_model
    result = method(recs, *args, **kwargs)
  File "/home/odoo/odoo/lib/odoo/odoo/addons/base/models/ir_ui_view.py", line 2494, in get_views
    for [v_id, v_type] in views
  File "/home/odoo/odoo/lib/odoo/odoo/addons/base/models/ir_ui_view.py", line 2494, in 
    for [v_id, v_type] in views
  File "/home/odoo/odoo/lib/odoo/odoo/addons/base/models/ir_ui_view.py", line 2674, in get_view
    result = dict(self._get_view_cache(view_id, view_type, **options))
  File "", line 2, in _get_view_cache
  File "/home/odoo/odoo/lib/odoo/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/home/odoo/odoo/lib/odoo/odoo/addons/base/models/ir_ui_view.py", line 2637, in _get_view_cache
    arch, models = view.postprocess_and_fields(arch, model=self._name, **options)
  File "/home/odoo/odoo/lib/odoo/odoo/addons/base/models/ir_ui_view.py", line 1036, in postprocess_and_fields
    name_manager = self._postprocess_view(node, model or self.model, **options)
  File "/home/odoo/odoo/lib/odoo/odoo/addons/base/models/ir_ui_view.py", line 1181, in _postprocess_view
    transfer_node_to_modifiers(node, node_info['modifiers'])
  File "/home/odoo/odoo/lib/odoo/odoo/addons/base/models/ir_ui_view.py", line 84, in transfer_node_to_modifiers
    modifiers.update(ast.literal_eval(attrs.strip()))
  File "/usr/lib/python3.7/ast.py", line 46, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
  File "/usr/lib/python3.7/ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "", line 1
    ”{’invisible’:
    ^
SyntaxError: invalid character in identifier

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
    at makeErrorFromResponse (https://odoo.w4r.se/web/assets/debug/web.assets_backend.js:10529:19) (/web/static/src/core/network/rpc_service.js:34)
    at XMLHttpRequest. (https://odoo.w4r.se/web/assets/debug/web.assets_backend.js:10582:27) (/web/static/src/core/network/rpc_service.js:87)


Any help would greatly be appreciated and upvoted!

Avatar
Annuleer

Hi
Please verify that the Helpdesk Team app you're using is compatible with Odoo version 16. Ensure that you have the latest version of the app installed, specifically designed for Odoo 16. Double-check the language settings in your Odoo instance. Make sure that the Swedish language is properly configured and activated. You can navigate to the Language settings in Odoo and ensure that Swedish (or its corresponding code) is enabled.

Hope it helps

Beste antwoord

Hi,

There is something wrong with the translation in the db, if you have used odoo migration service for the upgrade process, create a support ticker under migration here:  https://www.odoo.com/help

Thanks

Avatar
Annuleer
Auteur

The arch_db xml record in the database for helpdesk had these incorrect character, thanks!

Beste antwoord

you can check following steps:

  1. Identify the View: The error traceback indicates that the issue is related to the view with the identifier "helpdesk.team" and the language code "sv_SE". Locate the XML view file associated with this identifier.

  2. Check for Syntax Errors: Open the XML view file and carefully review the contents for any syntax errors. Pay attention to the line mentioned in the error message: ”{’invisible’:. It appears that there is an invalid character or incorrect syntax in this line.

  3. Correct the Syntax Error: Once you have identified the syntax error, correct it by replacing the invalid character or fixing the syntax. Ensure that the XML view is properly formatted with correct opening and closing tags, attribute values, and other required elements.

  4. Restart the Odoo Server: After making the necessary changes to the XML view file, restart the Odoo server to apply the updates.

  5. Test the Helpdesk Team App: Access the Helpdesk Team app again, set the language to Swedish (sv_SE), and verify if the error is resolved.


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
sep. 24
1242
1
jan. 24
987
1
jan. 24
1650
1
nov. 23
1310
0
okt. 23
91