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

lost login ability on webpage after theme edit

By
Barry Smoke
on 10/31/15, 4:47 AM 537 views

following up on my theme inheritance post, by replacing the wrapwrap/header with a custom section, the theme layout no longer adds the additional login option.  I logged out, now I can't log back in.

I can reset the installation, since this is development, but how would I avoid this?  is there a t-call I can do, to add that to my custom header section(nav menu)?


here is my replaced header xml code:

<header id="navigation" class="navbar navbar-inverse"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-top-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a href="/" class="navbar-brand logo"> <img src="/theme_sanpliance/static/src/img/sanpliance_logo.png"/> </a> </div> <div class="collapse navbar-collapse navbar-top-collapse"> <ul class="nav navbar-nav navbar-right" id="top_menu"> <t t-foreach="website.menu_id.child_id" t-as="submenu"> <t t-call="website.submenu"/> </t> <li class="divider" t-ignore="true" t-if="website.user_id != user_id"/> <li class="dropdown" t-ignore="true" t-if="website.user_id != user_id"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <b> <span t-esc="(len(user_id.name)&gt;25) and (user_id.name[:23]+'...') or user_id.name"/> <span class="caret"></span> </b> </a> <ul class="dropdown-menu js_usermenu" role="menu"> <li id="o_logout"><a t-attf-href="/web/session/logout?redirect=/" role="menuitem">Logout</a></li> </ul> </li> </ul> </div> </div> </header> <header id="navigation" class="navbar navbar-inverse">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-top-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/" class="navbar-brand logo">
<img src="/theme_sanpliance/static/src/img/sanpliance_logo.png"/>
</a>
</div>
<div class="collapse navbar-collapse navbar-top-collapse">
<ul class="nav navbar-nav navbar-right" id="top_menu">
<t t-foreach="website.menu_id.child_id" t-as="submenu">
<t t-call="website.submenu"/>
</t>
<li class="divider" t-ignore="true" t-if="website.user_id != user_id"/>
<li class="dropdown" t-ignore="true" t-if="website.user_id != user_id">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<b>
<span t-esc="(len(user_id.name)&gt;25) and (user_id.name[:23]+'...') or user_id.name"/>
<span class="caret"></span>
</b>
</a>
<ul class="dropdown-menu js_usermenu" role="menu">
<li id="o_logout"><a t-attf-href="/web/session/logout?redirect=/" role="menuitem">Logout</a></li>
</ul>
</li>
</ul>
</div>
</div>
</header>

luckily I was able to find a backend kanban url, that redirected to a login prompt. now I can continue fixing the theme.

Barry Smoke
on 10/31/15, 4:51 AM

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: 10/31/15, 4:47 AM
Seen: 537 times
Last updated: 10/31/15, 4:51 AM