Ir al contenido
Menú
Se marcó esta pregunta

Uncaught (in promise) Error: QWeb2 - template['my_template']: Error evaluating template: SyntaxError: Unexpected identifier 'dict'

this error is caused by this line 

$('#my_container').append(qweb.render('my_template', {data: data}));

i want to replace a div(my_container) in website with a template that i've created

'assets': {
​'web.assets_frontend': [
​'my_module/static/src/js/my_js.js',
],
'web.assets_qweb': [
'my_module/static/src/xml/my_template.xml',
],
},
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
dic 22
5882
0
dic 24
1016
1
may 24
1850
0
ene 24
6977
0
mar 21
1985