Skip to Content
Menu
This question has been flagged

Hi,

I noticed there was a change in the Odoo Transifex module (v16), and ever since this I have an error when trying to translate my email templates.

It seems like the config file that was updated didn't come through correctly. Any idea how I could fix that?

I'm on Odoo.sh

Error:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/odoo/http.py", line 1583, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/home/odoo/src/odoo/odoo/service/model.py", line 134, in retrying
    result = func()
  File "/home/odoo/src/odoo/odoo/http.py", line 1612, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/home/odoo/src/odoo/odoo/http.py", line 1810, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 149, in _dispatch
    result = endpoint(**request.params)
  File "/home/odoo/src/odoo/odoo/http.py", line 698, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 42, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/odoo/src/user/printnode_base/controllers/main.py", line 65, in _call_kw
    result = super(DataSetProxy, self)._call_kw(model, method, args, kwargs)
  File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/odoo/src/odoo/odoo/api.py", line 461, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/home/odoo/src/odoo/odoo/api.py", line 448, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/home/odoo/src/odoo/addons/transifex/models/models.py", line 30, in get_field_translations
    self.env['transifex.translation']._update_transifex_url(translations)
  File "/home/odoo/src/odoo/addons/transifex/models/transifex_translation.py", line 61, in _update_transifex_url
    projects = self._get_transifex_projects()
  File "", line 2, in _get_transifex_projects
  File "/home/odoo/src/odoo/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/home/odoo/src/odoo/addons/transifex/models/transifex_translation.py", line 38, in _get_transifex_projects
    _, _, _, tx_project, _, tx_mod = sec.split(':')
ValueError: not enough values to unpack (expected 6, got 1)


Avatar
Discard
Best Answer

Hi,

Upon trying to reproduce the same in odoo runbot, i am not to able to re generate it. Can you try from your side in odoo runbot and see if it is reproducible there ?

If yes, please provide steps to reproduce it. Else as in the log, there is third party module named: printnode_base , can you try in your local with out this module and see if the issue still happens.

Thanks

Avatar
Discard
Author

Hey Niyas,
Thanks for the reply!

I haven't been able to reproduce anywhere else, but here is what I think is happening:

Through odoo.sh's webshell I've been able to confirm that the config file in .tx is correctly updated to the new version (with ':' instead of '.').

It seems however, that the transifex module still sees it as the old file, because when it splits the header it returns 1 thing instead of the expected 6. Which would make sense because the old config file didn't have ':'s.

So it might be a caching thing within odoo? I've tried in different browsers/pcs so it's not anything local

Related Posts Replies Views Activity
2
Oct 19
5867
0
Aug 17
1873
1
Jul 20
3116
1
Dec 24
1500
0
Jul 18
2581