[FIX] runbot: adapt navbar view to v11

This commit is contained in:
Julien Legros 2018-03-15 13:38:02 +01:00
parent 3d71619dcd
commit 297d502afd
No known key found for this signature in database
GPG Key ID: 05AABD5397BF114D

View File

@ -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>