summaryrefslogtreecommitdiff
path: root/addons/portal
diff options
context:
space:
mode:
authorBenjamin Vray <bvr@odoo.com>2020-10-09 11:48:05 +0000
committerqsm-odoo <qsm@odoo.com>2020-10-12 15:21:23 +0000
commit59584974aa891b1182164adac3d3563d882bcfd7 (patch)
tree3f5a2cf100d5b18e89bcf147062745176d474868 /addons/portal
parent969aa3dc11061254c52cf06f0b96d36192d61d40 (diff)
[FIX] website, *: keep logged user buttons outside the autohide menu
*: portal The dividers were removed with the new header templates but we still needed them to know which items do not need to be folded in the auto-hide menu. Instead of adding these dividers again, we added a new class for these elements. part-of: #59640 task-2312878 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/portal')
-rw-r--r--addons/portal/views/portal_templates.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/portal/views/portal_templates.xml b/addons/portal/views/portal_templates.xml
index 75827fe8ac9..ef6876b1a0b 100644
--- a/addons/portal/views/portal_templates.xml
+++ b/addons/portal/views/portal_templates.xml
@@ -68,7 +68,7 @@
<template id="user_dropdown" name="Portal User Dropdown">
<t t-set="is_connected" t-value="not user_id._is_public()"/>
- <li t-if="is_connected" t-attf-class="#{_item_class}">
+ <li t-if="is_connected" t-attf-class="#{_item_class} o_no_autohide_item">
<a href="#" role="button" data-toggle="dropdown" t-attf-class="dropdown-toggle #{_link_class}">
<img t-if="_avatar" t-att-src="image_data_uri(user_id.image_256)" t-attf-class="rounded-circle #{_avatar_class}" width="24" height="24" alt="" loading="eager"/>
<i t-if="_icon" t-attf-class="fa fa-1x fa-fw fa-user-circle-o #{_icon_class}"/>
@@ -147,7 +147,7 @@
<template id="user_sign_in" name="User Sign In" inherit_id="portal.placeholder_user_sign_in">
<xpath expr="." position="inside">
- <li groups="base.group_public" t-attf-class="#{_item_class}">
+ <li groups="base.group_public" t-attf-class="#{_item_class} o_no_autohide_item">
<a t-attf-href="/web/login" t-attf-class="#{_link_class}">Sign in</a>
</li>
</xpath>