2017-02-02 37 views
0

如何在网站主题布局中添加odoo live chat javascripts?如何在网站主题布局中添加odoo live chat 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> 

回答

-1

把你的*.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> 

文件希望它会帮助你。

0

继承了website.layout模板并粘贴标签内的脚本代码。希望这会起作用,同时加载主页您可以看到聊天向导。