Remove Odoo Support from Odoo chat

来自:http://www.odoo.yenthevg.com/remove-odoo-support-odoo-chat/

Today I’ll learn you how to remove the ‘Odoo Support’ user from the Odoo chat. Most of us do not want this to show up in our list of people to chat with and especially not when you’re selling Odoo to customers.
Originally in Odoo you will get this:




So how do you remove this user?
1. Go to your addons folder and search for the addon im_odoo_support. Open this folder up, you’ll now see this structure:


2. Open up the folder views and then open the XML file im_odoo_support.xml. In this file you can directly see that there is a function and it looks to Odoo Support. So go ahead and comment this block out, like this:




<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>


       <!-- <template id="assets_backend" name="im_odoo_support assets" inherit_id="web.assets_backend">
            <xpath expr="." position="inside">
               <script type="text/javascript" src="/im_odoo_support/static/src/js/im_odoo_support.js"></script>
                <script type="text/javascript">
                    (function() {
                        openerp.im_odoo_support.support = new openerp.im_odoo_support.OdooSupport(
                            "<t t-esc="request.session.login"/>",
                            "<t t-esc="request.registry['ir.config_parameter'].get_param(request.cr, request.uid, 'database.uuid')"/>"
                        );
                    })();
                </script>
            </xpath>
        </template>-->


    </data>
</openerp>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
 
       <!-- <template id="assets_backend" name="im_odoo_support assets" inherit_id="web.assets_backend">
            <xpath expr="." position="inside">
               <script type="text/javascript" src="/im_odoo_support/static/src/js/im_odoo_support.js"></script>
                <script type="text/javascript">
                    (function() {
                        openerp.im_odoo_support.support = new openerp.im_odoo_support.OdooSupport(
                            "<t t-esc="request.session.login"/>",
                            "<t t-esc="request.registry['ir.config_parameter'].get_param(request.cr, request.uid, 'database.uuid')"/>"
                        );
                    })();
                </script>
            </xpath>
        </template>-->
 
    </data>
</openerp>
2. Go to im_odoo_support/static/src/xml/ and open the file im_odoo_support.xml. You’ll see an li class here for Odoo Support too. Comment it out like this:




<?xml version="1.0" encoding="UTF-8"?>


<templates xml:space="preserve">
    <t t-extend="UserMenu">
        <t t-jquery=".dropdown-menu li:eq(3)" t-operation="after">
<!--
            <li class="odoo_support_contact">
                <a data-menu="odoo_support" href="#">Odoo Support</a>
            </li>-->
        </t>
    </t>
</templates>
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0" encoding="UTF-8"?>
 
<templates xml:space="preserve">
    <t t-extend="UserMenu">
        <t t-jquery=".dropdown-menu li:eq(3)" t-operation="after">
<!--
            <li class="odoo_support_contact">
                <a data-menu="odoo_support" href="#">Odoo Support</a>
            </li>-->
        </t>
    </t>
</templates>
3. Now restart your Odoo server and update your module. You can do it with this command:
./odoo.py -u im_odoo_support
4. Open Odoo in your browser and you’ll see there is no more ‘Odoo Support’ user in the list!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值