Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
7513 Zobrazení

Hi All,


Can anyone help me to fix error 500. My logs is follow:


:~$ tail -n 20 /var/log/odoo//odoo-server.log

    r = d[key]

  File "/opt/odoo/odoo/odoo/tools/func.py", line 69, in wrapper

    return func(self, *args, **kwargs)

  File "/opt/odoo/odoo/odoo/tools/lru.py", line 44, in __getitem__

    a = self.d[obj].me

KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7ff0652b1670>, 255, ('vi_VN', None, None, None, False, 1))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/odoo/addons/base/models/qweb.py", line 315, in compile

    unsafe_eval(compile(astmod, '<template>', 'exec'), ns)

ValueError: Name node can't be used with 'None' constant


Error when compiling AST

ValueError: Name node can't be used with 'None' constant

Template: http_routing.http_error

Path: /t/t/div/t/t

Node: <t t-call="http_routing.http_error_debug"/> - - -

2020-10-17 00:56:03,280 20019 INFO XXXX.CO werkzeug: XX.XX.XX.XX - - [17/Oct/2020 00:56:03] "GET /favicon.ico HTTP/1.0" 200 - 10 0.008 0.017

----------------------------------------------------------------------------

:~$ tail -f /var/log/odoo//odoo-server.log
ValueError: Name node can't be used with 'None' constant
Template: http_routing.http_error
Path: /t/t/div/t/t
Node: <t t-call="http_routing.http_error_debug"/> - - -
2020-10-17 00:56:03,280 20019 INFO XXXX.CO werkzeug: XX.XXX.118.163 - - [17/Oct/2020 00:56:03] "GET /favicon.ico HTTP/1.0" 200 - 10 0.008 0.017
2020-10-17 01:01:09,215 20031 INFO XXXX.CO odoo.addons.base.models.ir_cron: Starting job `Post process payment transactions`.
2020-10-17 01:01:09,229 20031 INFO XXXX.CO odoo.addons.base.models.ir_cron: Job `Post process payment transactions` done.
2020-10-17 01:06:07,501 20029 INFO XXXX.CO odoo.addons.base.models.ir_cron: Starting job `Email Marketing: Process queue`.
2020-10-17 01:06:07,508 20029 INFO XXXX.CO odoo.modules.registry: Invalidating all model caches after database signaling.
2020-10-17 01:06:07,518 20029 INFO XXXX.CO odoo.addons.base.models.ir_cron: Job `Email Marketing: Process queue` done.

Avatar
Zrušit
Autor Nejlepší odpověď

@ Niyas Raphy

Thank you it works like charms.

Avatar
Zrušit
Nejlepší odpověď

Hi,

To resolve the issue, please update the odoo source code to its latest or run odoo with python version less than 3.8.


Thanks
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
pro 21
1595
4
dub 17
4766
2
bře 22
3693
4
zář 15
5405
1
pro 24
4030