We are using the Odoo Web site Builder to publish a Website.
Now we would like to hide or better remove the Sign In button which is added after the menu.
How can we do that with Odoo V8?
I'd recommend taking a look at the following posts to gain some understanding of how to edit templates:
If you are using the default/built-in bootswatch themes you'll need to look in this file:
and you are looking for the following snippet:
<li class="dropdown" t-ignore="true" t-if="website.user_id != user_id">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<ul class="dropdown-menu js_usermenu" role="menu">
<li><a href="/web" role="menuitem">My Account</a></li>
<li><a t-attf-href="/web/session/logout?redirect=/" role="menuitem">Logout</a></li>
However editing the base/core files is not recommended. It would be better to override it with a custom module. In theory you could just comment out that snippet for now, but that is not a recommended way of doing things as when you do an update for that module your changes will be wiped out.
You can see some examples of over-riding default snippets in some of the forum posts I mentioned above. If I figure out a way to do this with a module i'll post back here with instructions at a later date.
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
|Asked: 8/22/14, 6:03 AM|
|Seen: 2967 times|
|Last updated: 8/31/16, 6:18 PM|