Hide farm tab if user is not Farm Admin
This commit is contained in:
parent
d9208fd944
commit
0423d757a4
1
user.xml
1
user.xml
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue