コンテンツへスキップ
メニュー
この質問にフラグが付けられました
917 ビュー

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
5567
0
12月 24
725
1
5月 24
1691
0
1月 24
6688
0
3月 21
1841