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

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 22
5888
0
pro 24
1028
1
kvě 24
1860
0
led 24
6982
0
bře 21
1993