| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 43 |
| Technical Name |
se_hide_pivot_download_xlsx_button |
| License | LGPL-3 |
| Website | http://www.sprinterp.com |
| Versions | 16.0 17.0 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 43 |
| Technical Name |
se_hide_pivot_download_xlsx_button |
| License | LGPL-3 |
| Website | http://www.sprinterp.com |
| Versions | 16.0 17.0 18.0 19.0 |
Hide Pivot Download xlsx Button
Enhance data security by restricting Excel exports in Pivot views. Give administrators full control over who can download sensitive business reports.
Module Highlights
How the Export Restriction Works
Our module provides a security-centric approach to data management. By utilizing Odoo's internal session information and a specialized JavaScript Patch, the system checks each user's permission in real-time. When the "Hide Pivot Download" option is enabled for a user, the module dynamically injects a CSS class that removes the Excel download button from all Pivot views. This ensures that while analysts can still interact with data inside Odoo, the ability to perform bulk offline exports is completely restricted, ensuring maximum data confidentiality.
Individual User Configuration
Navigate to Settings > Users & Companies > Users and select the specific employee (e.g., Mitchell Admin). Under the Access Rights tab, locate the "Action Restrictions" group at the bottom. Simply enable the "Hide Pivot Download xlsx Button" checkbox to restrict that user from exporting pivot data.
Granular Security: This setting allows you to control data export permissions on a user-by-user basis, ensuring that only authorized personnel can download offline copies of your business reports.
Secured Pivot View Analysis
Once the restriction is enabled, the "Download xlsx" icon (as highlighted in the screenshot) is automatically hidden for the restricted user. Users can still perform deep data analysis using the Pivot View interface, but they are prevented from exporting this sensitive information into external Excel files.
UI Enforcement: The module doesn't just disable the click; it completely removes the download element from the UI, providing a clean and secure user experience without any confusing dead buttons.
Activating the Restriction
Once you tick the checkbox as shown in the screenshot, the security policy is immediately applied to the user's session. The module passes this configuration to Odoo's web client, which then triggers the JavaScript patch to remove the export functionality for this specific user across all modules.
Real-time Enforcement: No server restart is required. Simply saving the user record will enforce the Action Restriction, providing an instant layer of security to your Odoo environment.
Final Result: Button Successfully Hidden
As shown in the final view, the "Download xlsx" button is completely removed from the Pivot controller. Restricted users can still expand, flip, and analyze the data within Odoo, but the option to export this data to an external file is no longer available, ensuring 100% data security within the system.
Data Protection Verified: The UI remains clean and professional. The removal of the button acts as a strong deterrent against unauthorized data extraction while maintaining full analytical capabilities for the user.
Module Capabilities & Features
A specialized security extension for Odoo that empowers administrators to protect sensitive business intelligence by controlling data export permissions.
Granular Access Control
Enables administrators to toggle the Excel download privilege for specific users directly from the User settings, ensuring a personalized security layer.
Smart UI Patching
Uses advanced JS Patching and CSS classes to dynamically hide the 'Download xlsx' button from the Pivot Controller without affecting the overall interface.
Export Leak Protection
Prevents unauthorized bulk data extraction from reporting views, protecting your company's sensitive financial and operational data from leaving the system.
Session-Aware Logic
Seamlessly integrates with Odoo's ir.http to pass restriction flags via session
info,
ensuring real-time permission enforcement across all apps.
Performance Optimized
Designed with minimal overhead, ensuring that Pivot view rendering and system performance remain lightning-fast even with active restrictions.
Ease of Management
Adds a clear 'Action Restrictions' group in the User Form View, making it intuitive for HR or System Admins to manage export rights.
Need Any Help?
Installation, Configuration & Bug Fixing support from our experts.
© 2017 SprintERP Technologies. All Rights Reserved.
Please log in to comment on this module