Skip to Content
Menu
This question has been flagged
5 Replies
5620 Views

Hello. I need to hide the Import button for project module. How can i do this? Thanks.

Avatar
Discard
Best Answer

Hi, Luis

You can define "create='0' " inside the tree view of the model in order to hide import button like below,

<tree string="My Model" create="0">  
    <field name="state" invisible="1"/>
</tree>
NOTE: It will hide import as well as create button.

So in case you only want to hide the "IMPORT" button then you can define "import=0" inside the tree view of the model.
e.g:
<tree string="My Model" import="0">  
    <field name="state" invisible="1"/>
</tree>

Thanks,
Ashish Singh (Team Lead)
Webkul Software Private Limited
Avatar
Discard
Author Best Answer

Hello. I need to hide import but not create button.

Avatar
Discard

Hi, Luis

Thanks for clarifying your query.

It that case, you can define "import='0' " inside the tree view of the model in order to hide import button like below,

<tree string="My Model" import="0">

<field name="state" invisible="1"/>

</tree>

Now I am updating my existing answer that's for your response.

Thanks,

Ashish Singh (Team Lead)

Webkul Software Private Limited

Best Answer

hello, i hide this by user groups. eliminating from user group: 

Avatar
Discard