Remove Odoo Support from Odoo chat

来源:互联网 发布:mac mini双系统切换 编辑:程序博客网 时间:2024/05/22 08:20

来自: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!

0 0
原创粉丝点击