如何为 odoo 10 中除管理员以外的所有用户从网站删除工具栏

How to remove toolbar from website for all users other than Admin in odoo 10

如何删除 public 用户的 odoo 默认工具栏?我的意思是我不希望任何用户(管理员除外)在登录后看到顶部的蓝色栏,其中包含讨论、员工等选项。

请参考下图:

经过3天的研究,终于实现了。任何想这样做的人都可以在您的视图中添加以下代码。

<template id="credirect.remove_header" inherit_id="website.user_navbar" name="Remove Header">
<xpath expr="//nav[@id='oe_main_menu_navbar']" position="attributes">
<attribute name="groups">base.group_erp_manager</attribute>
</xpath>
</template>