mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: adapt navbar view to v11
This commit is contained in:
parent
3d71619dcd
commit
297d502afd
@ -12,11 +12,14 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- remove black bar with switcher d'apps -->
|
||||
<!-- remove black bar with app switcher -->
|
||||
<template id="inherits_no_black_bar" inherit_id="website.user_navbar" name="Inherits No black user_navbar">
|
||||
<xpath expr="//nav[@id='oe_main_menu_navbar']" position="attributes">
|
||||
<attribute name="groups">base.group_website_publisher</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//t[@t-set='body_classname']" position="attributes">
|
||||
<attribute name="t-value">'o_connected_user' if env['ir.ui.view'].user_has_groups('base.group_website_publisher') else None</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
<!-- Frontend repository block -->
|
||||
<template id="runbot.repo">
|
||||
@ -158,4 +161,4 @@
|
||||
</t>
|
||||
</template>
|
||||
</data>
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
Loading…
Reference in New Issue
Block a user