| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) • Sales (sale_management) |
| Lines of code | 28 |
| Technical Name |
legion_product_hide_cost |
| License | AGPL-3 |
| Website | http://www.bytelegions.com |
| Versions | 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0 |
Days Free Support 365
Custom Apps 1350+
Top Seller Of Odoo Marketplace
Happy Customers 8987+
Years of Experience 10+
Countries 50+
Talented Healers 100+
Industries Served 45+
Why Legion Product Hide Cost?
In businesses, cost/margin information is sensitive. Sales representatives should not see product cost prices or profit margins — only managers should. This module restricts visibility of cost and margin fields based on user group membership.
Get Instant Personalized Demo
View Our Services
Odoo Customization 365
Odoo Implementation 1350+
Odoo Support Marketplace
Odoo Integration 8987+
Odoo Migration 100+
Odoo Consultancy 50+
Odoo Hosting 100+
Industries Served 45+
Cost and Margin showed
Admin again go to setting and click on Users then active checkbox Show Sale Price.
Cost and Margin hidden
User go to search bar and search legion_product_hide_cost then click on and install
After install Admin go to setting and click on Users then access Show Sale Price to User
Cost and Margin showed
Admin again go to setting and click on Users then active checkbox Show Sale Price.
Cost and Margin hidden
Product Hide Cost.
The legion_product_hide_cost module provides role-based visibility for sensitive pricing data, such as product costs and margins, within the sale order view. It enables businesses to restrict access to this information, ensuring that only authorized users, like managers or finance teams, can view critical cost details.
Key Features:
- Hide Margin Field from Sales Reps: The margin field on sale orders is hidden from regular sales users and only visible to users assigned to the "Show Sale Price" security group, protecting sensitive profitability data from front-line staff.
- Role-Based Cost Visibility: Managers and authorized personnel can be granted access to cost information by adding them to the custom security group, while regular sales staff see a clean order form without any cost or margin data.
- Security Group Management: A dedicated show_sale_price security group is created within the module, giving administrators fine-grained control over exactly which users can view pricing cost data across the organization.
- Scalable Access Control: As the business grows, new managers or authorized users can be added to the security group through standard Odoo user management without any code changes required.
- Non-Intrusive Integration: The module works by adding groups attributes to existing fields rather than removing them, meaning the fields still exist in the system and authorized users see everything normally without any UI disruption.
Frequently Asked Questions
Will hiding margin affect sales rep workflow?
No. Sales reps can still create orders, add products, set prices, and confirm orders normally. Only the margin and cost fields are hidden — all other functionality remains unchanged.
Can I hide cost on the product form too?
Yes, the same approach can be extended to product.template and product.product forms by adding similar xpath overrides targeting the standard_price field with the same security group.
What is the difference between margin and purchase_price?
margin shows the profit percentage/amount on the whole order, while purchase_price on order lines shows the cost of each individual product. Both reveal sensitive business data that this module protects.
How do I grant a user access to see costs?
Go to Settings → Users → select the user → under Application Groups or custom groups, assign them to "Show Sale Price" group defined by this module.
Does this module work with Odoo's standard reporting?
Yes. The restriction only applies to UI views. Backend data, reports accessible to authorized users, and system computations are completely unaffected.
Latest release
Top Contributors
Mr. Kamran Yasin
Senior Full Stack Odoo Developer
Miss Rubab Khalil
Senior Odoo Functional Consultant
Mr. Muneeb
Senior Full Stack Odoo Developer
Mr. Wasif Yasin
Senior Full Stack Odoo Developer
Mr. Hamza Khalil
Senior Full Stack Odoo Developer
Please log in to comment on this module