Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Remove Announcement Bar

By
asti dwitya
on 5/5/15, 11:51 AM 791 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

 

0
dbyo
On 1/26/16, 12:08 AM

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;
 }

0
Ajeng Shilvie
On 5/5/15, 11:46 PM

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 !

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/5/15, 11:51 AM
Seen: 791 times
Last updated: 1/26/16, 12:08 AM