Hide Product Sales & Cost Price (Restriction Based)
by SprintERP Technologies https://sprinterp.com$ 8.00
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Sales (sale_management)
• Discuss (mail) • Invoicing (account) |
| Technical Name |
se_hide_product_price |
| License | AGPL-3 |
| Website | https://sprinterp.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Sales (sale_management)
• Discuss (mail) • Invoicing (account) |
| Technical Name |
se_hide_product_price |
| License | AGPL-3 |
| Website | https://sprinterp.com |
Hide Product Sales & Cost Price
Advanced security tool to restrict specific users from viewing sensitive Sales and Cost prices using a "Restriction-First" approach.
Module Highlights
How the Price Restriction Works
Our module uses a "Restriction-First" approach powered by Odoo's negative security groups. By simply assigning a user to the restriction group, the system dynamically modifies the UI to strip away sensitive pricing fields. This ensures that while administrators and managers can see the full financial data, restricted personnel only see the operational information they need to perform their jobs.
Configure User Access Rights
Navigate to Settings > Users & Companies > Users and select the specific user you want to restrict. In the Extra Rights section, you will find two new options: "Hide sale price in product" and "Hide cost price in product". Simply check these boxes to instantly remove price visibility for that user.
Role-Based Security: This granular control allows you to hide only Sales prices, only Cost prices, or both, depending on the user's specific role in your company.
Kanban View Price Restriction
Once the restriction is applied, the Sales Price will be completely removed from the Kanban View for the restricted users. This ensures that even while browsing products in a card-based layout, sensitive pricing information remains protected and invisible to unauthorized personnel.
Seamless UI Experience: The layout automatically adjusts to hide the price tag, maintaining a clean and professional look for restricted users without breaking the design.
List View Price Protection
The module extends its security to the Product List (Tree) View. When a user is restricted, the Sales Price and Cost columns are completely removed from the table. This prevents unauthorized users from performing mass price comparisons or viewing sensitive margin data across the entire product catalog.
Data Privacy: By hiding these columns, you ensure that high-level financial data is only accessible to those who need it for their specific operational tasks.
Product Form View Restrictions
The core restriction applies directly to the Product Form View. For restricted users, the Sales Price and Cost fields, along with their respective labels, are completely hidden from the General Information tab. This ensures that sensitive financial details are not visible even when a user opens the full product record.
Complete Field Masking: The module doesn't just hide the value; it removes the entire field and label from the UI, leaving no trace of the pricing information for restricted individuals.
Product Variant Security
Security is also maintained at the granular level in the Product Variants list view. Restricted users will not be able to see the Sales Price or Cost for individual variants. This ensures that even if products have multiple attributes (like size or color), their specific pricing remains protected across the entire system.
Granular Control: The module ensures consistent behavior across both Product Templates and Variants, leaving no loopholes for unauthorized price viewing.
Product Variant Kanban Security
In the Product Variants Kanban View, the module ensures that the price information for each specific variant is completely hidden for restricted users. Whether the product has different colors, sizes, or materials, the Sales Price remains secure and invisible across all card layouts.
Complete UI Protection: The restriction is robust enough to cover all visual representations of the product, ensuring a consistent security policy throughout the system.
Product Variant Form View Restrictions
Even within the detailed Product Variant Form View, the security remains airtight. Unauthorized users are restricted from viewing the Sales Price and Cost fields. This ensures that sensitive financial data is protected at every level of the product hierarchy, from the main template down to each individual variant.
Airtight Security: By covering both Template and Variant forms, the module eliminates any possibility of a restricted user finding pricing information in sub-menus or detailed records.
Activating Pricing Restrictions
To enforce security, simply enable the "Hide sale price in product" and "Hide cost price in product" options under the user's Extra Rights. Once these boolean fields are checked and the user record is saved, the pricing data will be instantly restricted across all product views for that specific user.
Instant Enforcement: The "Restriction-First" logic ensures that security is applied immediately without requiring a system restart or complex server-side configuration.
Restricted Kanban View (Result)
This is the final result for a restricted user. As shown in the image, the Price information is completely hidden from the product cards in Kanban view. This ensures that unauthorized staff can browse the product catalog and manage other details without ever seeing sensitive pricing data.
Verified Privacy: The price tag is dynamically removed, confirming that the security group logic is working perfectly across the user interface.
Restricted List View (Result)
In the List View, the protection is absolute. As you can see, the columns for Sales Price and Cost have been entirely removed from the interface. Restricted users can see the Product Name and Internal Reference but are blocked from accessing any financial columns, ensuring total data confidentiality.
Clean Interface: The table structure dynamically adjusts to the missing columns, providing a seamless and professional experience for the restricted user without any broken UI elements.
Restricted Form View (Result)
In the Product Form View, the restriction is seamlessly integrated. As shown in the result, both the Sales Price and Cost fields, including their labels, are completely removed from the General Information tab. This ensures that unauthorized users cannot view sensitive financial details even when accessing the full product record.
Zero Visibility: The module ensures that there is no empty space or broken layout; the remaining fields (Taxes, Category, etc.) adjust naturally to provide a clean user interface.
Restricted Variant List (Result)
The pricing restriction is also strictly enforced in the Product Variants List View. Even when viewing detailed variant attributes like color or size, the Sales Price and Cost columns remain completely invisible to restricted users, ensuring consistent data security across all variant-level records.
Consistent Protection: By removing financial columns from the variant list, the module prevents any unauthorized data leakage that could occur through variant-specific pricing views.
Restricted Variant Kanban (Result)
The final security layer is applied to the Product Variant Kanban View. As shown in the result, the prices are completely stripped from the variant cards. This ensures a uniform security policy across all visual layouts, making it impossible for restricted users to see pricing data while browsing through different product attributes.
Uniform Security: Whether it's a main product or a specific variant, our module guarantees that pricing information is hidden globally for targeted users.
Restricted Variant Form (Result)
Even when a user navigates deep into a specific Product Variant Form, the pricing information remains inaccessible. As seen in the image, the Sales Price and Cost fields are completely masked, ensuring that sensitive data is protected across all layers of the Odoo product structure.
Deep Security: The restriction logic is applied to every sub-view, preventing any "backdoor" access to pricing data through variant records.
Module Capabilities & Features
A specialized security utility for Odoo that empowers administrators to protect sensitive financial data through smart pricing restrictions.
Sales Price Security
Specifically targets and hides the Sales Price (list_price) from unauthorized users, maintaining price confidentiality within your sales team.
Cost Price Protection
Completely masks the sensitive Cost Price (standard_price) to prevent internal data leaks regarding profit margins and purchase rates.
Negative Access Logic
Uses Odoo's advanced "!" group operator. Simply assign a user to the "Hide" group to instantly remove their access to pricing fields.
Complete UI Blackout
Ensures fields are hidden across all interfaces including Product Form, Tree (List), and Kanban views for total security coverage.
Robust XPath Structure
Built with precise XPath attributes to ensure the module remains stable and compatible even after standard Odoo updates or migrations.
Strategic Access Control
Perfect for large organizations that need to restrict price visibility for specific interns, vendors, or junior staff members effortlessly.
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