Skip to Content
Menu
This question has been flagged

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>

Avatar
Discard
Author

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

Related Posts Replies Views Activity
1
Dec 20
4007
Theme Solved
2
Nov 24
183
0
Oct 24
103
1
Aug 24
238
1
Aug 24
431