Hide farm tab if user is not Farm Admin

This commit is contained in:
Guillem Barba 2015-01-23 13:02:16 +01:00
parent d9208fd944
commit 0423d757a4
2 changed files with 1 additions and 3 deletions

View File

@ -5,7 +5,6 @@
<data>
<record model="ir.ui.view" id="res_user_form_view">
<field name="model">res.user</field>
<field name="type">form</field>
<field name="inherit" ref="res.user_view_form"/>
<field name="name">res_user_form</field>
</record>

View File

@ -3,8 +3,7 @@
copyright notices and license terms. -->
<data>
<xpath expr="//notebook" position="inside">
<!-- TODO: only show the tab if you are farm admin -->
<page id="farm" string="Farm">
<page name="farms">
<field name="farms" colspan="4"/>
</page>
</xpath>