Search Here

Hide or Remove Export Option From More Menu Button in Odoo

In this article I will show you how to hide export option from more menu in odoo. Follow below steps to hide export option from more menu.


Hide or Remove Export Option From More Menu Button in Odoo

Hide or Remove Export Option From More Menu Button in Odoo

1- Create XML file

In your module create a new XML file named "base.xml" under "static/src/base.xml" path, and past following code snippet.
Read More: How to Create Action and Menu in Odoo  


Code Description:

In above code if "widget.session.uid" is 1, its mean that "Export" option would be visible to admin only and no other user will be able to see the "Export" option from more menu.
Read More: How to Create Action and Menu Item in Odoo13

2- Register your newly create file in "__openerp.py__"

    'qweb': [ 
        "static/src/base.xml", 
    ],       
 

Now restart the odoo server/service and update your database and refresh the page.

Post a Comment

1 Comments