跳至内容
菜单
此问题已终结

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',
],
},
形象
丢弃
相关帖文 回复 查看 活动
2
12月 22
5902
0
12月 24
1034
1
5月 24
1867
0
1月 24
6986
0
3月 21
1999