Skip to Content
Menu
This question has been flagged
2 Replies
3722 Views


Hi,

Thankyou for accept me to join this community.

My name is Asti Dwitya

i am a beginner and i want to know a lot of about odoo from all of you.

 i already install odoo v8, but i have a probllem, how to remove announcement bar “Your Odoo is not supported -> Upgrade or register your contact here” like as this picture below! please give me the solution.. thankyou

https://tutorialopenerp.files.wordpress.com/2014/09/announ.png

 

Avatar
Discard
Best Answer

work on odoo 9 


follow this link

https://www.odoo.com/nl_NL/forum/help-1/question/remove-announcement-bar-41934

customizing CSS of your own module or any module in your instance (you can add it most of the times in this file: static/src/css/base.css)

in my case file at  \server\openerp\addons\web\static\src\css\base.css

 .openerp .announcement_bar {
    display: none;
    visibility: hidden;
 }

Avatar
Discard
Best Answer

Hi , you have to  make JavaScript file like this  :

lets called it disable_openerp_online.js

openerp.disable_openerp_online = function(instance) {
    // Disabling the lookup of a valid OPW for the dbuuid,
    // resulting in 'Your OpenERP is not supported'
    instance.web.WebClient.include({
        show_annoucement_bar: function() {}
    });
};

and you have to declare it on XML like this :

lets called it disable_openerp_online.xml

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
        <template id="assets_backend" name="disable_openerp_online assets" inherit_id="web.assets_backend">
            <xpath expr="." position="inside">
                <script type="text/javascript" src="/your_module_name/disable_openerp_online.js"></script>
            </xpath>
        </template>
    </data>
</openerp>

hope it works !

Avatar
Discard
Related Posts Replies Views Activity
1
Aug 23
12547
1
Aug 23
11050
1
Jul 23
7228
4
Apr 23
8676
2
Feb 23
17597