Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I had to recreate the public user in one server.
How could I hide this menu item public user - AS when nobody is logged on the website?
Thanks to help.
Our answer. hanks everybody.
<template id="layout_iv" inherit_id="website.layout" >
<xpath expr="//li[@class='dropdown']" position="replace">
<t t-if="request.uid != %(base.public_user)d">
<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">
<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>
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 platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/6/16, 5:00 PM|
|Seen: 441 times|
|Last updated: 6/7/16, 1:46 PM|