Skip to Content
Menu
This question has been flagged
1448 Rodiniai

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',
],
},
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
gruod. 22
6198
0
gruod. 24
1230
1
geg. 24
2090
0
saus. 24
7198
0
kov. 21
2237