如何在网站主题布局中添加odoo实时聊天javascripts?
我想在我的odoo网站页面的文档说明中添加以下内容:
将此代码复制并粘贴到您的网站的标签中:但问题是当我将其粘贴到那里时,它不能工作。我在想,也许有一种合适的方法可以做到这一点。
<link href="http://localhost:8069/web/css/im_livechat.external_lib" rel="stylesheet"/>
<script src="http://localhost:8069/web/js/im_livechat.external_lib" type="text/javascript"></script>
<script src="http://localhost:8069/im_livechat/loader/mydb/4" type="text/javascript"></script>发布于 2017-03-22 19:04:44
继承website.layout模板并将脚本代码粘贴到head标记中。希望这将工作,同时加载主页,您可以看到聊天向导。
发布于 2017-02-02 22:12:07
把你的*.js files under /your_module/static/src/js and *.css /static/src/css放进去。
然后,将该文件添加到模板中
<template id="id">
<link href="/you_module/static/src/css/your_css.css" rel="stylesheet"/>
<link href="/web/static/src/css/your_css.css" rel="stylesheet"/>
</template>希望能对你有所帮助。
https://stackoverflow.com/questions/41993948
复制相似问题