跳至内容
菜单
此问题已终结
1 回复
4239 查看

Hi everyone, is there a way to use an external javascript in my website? I'm trying to use model-viewer but if I copy the script to a local folder and extend website.assets_frontend it shows an error in the console.

Version: Odoo 14

Uncaught SyntaxError: Unexpected token 'export'


For reference:
https://modelviewer.dev/

Thanks
形象
丢弃
编写者 最佳答案

Adding the script to other view different from website.assets_frontend do the trick, in my case I extend the footer with the script tag.

形象
丢弃
相关帖文 回复 查看 活动
2
12月 22
6079
0
3月 15
4591
0
12月 24
1154
0
11月 24
1361
0
1月 24
7098