Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1356 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
6066
0
pro 24
1148
1
kvě 24
1988
0
led 24
7096
0
bře 21
2138