Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sehrishnaz/e237c3038b4b6cc06ee1908bbc37659d to your computer and use it in GitHub Desktop.
Save sehrishnaz/e237c3038b4b6cc06ee1908bbc37659d to your computer and use it in GitHub Desktop.
Hide or Remove Export Option From More Menu Button in Odoo
<templates>
<t t-extend="Sidebar">
<t t-jquery="a.oe_sidebar_action_a" t-operation="replace">
<t t-if="widget.session.uid !== 1">
<a t-if="item.label !== 'Export'" class="oe_sidebar_action_a" t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url" target="_blank">
<t t-raw="item.label"/>
</a>
</t>
<t t-if="widget.session.uid === 1">
<a class="oe_sidebar_action_a" t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url" target="_blank">
<t t-raw="item.label"/>
</a>
</t>
</t>
</t>
</templates>
@sehrishnaz
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment