تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1443 أدوات العرض

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
ديسمبر 22
6192
0
ديسمبر 24
1224
1
مايو 24
2088
0
يناير 24
7190
0
مارس 21
2237