Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1966 Vizualizări

I get the following error after running odoo and accessing localhost:8069

   File "D:\Study\python_code\odoo_github\odoo-17.0\odoo\addons\base\models\ir_qweb.py", line 765, prints _generate_code

     raise QWebException("Error when compiling xml template",

odoo.addons.base.models.ir_qweb.QWebException: Error when compiling xml template

ValueError: forbidden opcode(s) in 'True': RETURN_CONST

Template: database_manager

Path: /html/body/div/div[4]/div/div/form/div[1]/t[1]

Node:


What is the cause and how to fix it?

Thanks

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

When Odoo encounters a False expression during evaluation, it may throw a forbidden opcode error (from safe_eval.py) due to the newly introduced opcode in Python 3.12: RETURN_CONST. To resolve this issue, you can consider downgrading the Python version to 3.11.


Hope it helps

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
ian. 25
929
1
apr. 24
1417
4
apr. 24
2653
5
apr. 24
2561
1
iun. 23
7508