| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Inventory (stock) • Invoicing (account) |
| Technical Name |
invodoo_hide_product_cost |
| License | LGPL-3 |
| Website | https://www.invodoo.com |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Inventory (stock) • Invoicing (account) |
| Technical Name |
invodoo_hide_product_cost |
| License | LGPL-3 |
| Website | https://www.invodoo.com |
| Versions | 18.0 19.0 |
🔒 InvOdoo Hide Product Cost Module
Version: 19.0.0.1.0.0 | Author: InvOdoo | Price: $20.00
📋 Overview
This module provides comprehensive cost information protection by hiding product costs, stock valuations, and related financial data from inventory users and sales staff. Only authorized accounting personnel can view sensitive cost and valuation information.
🎯 Purpose
Why hide product costs?
- Security: Prevent unauthorized access to sensitive pricing and cost data
- Role Separation: Ensure inventory users focus on stock management, not financials
- Data Protection: Protect profit margins and supplier pricing from unauthorized viewing
- Compliance: Meet organizational policies requiring cost information restrictions
✨ Key Features
- Hide product cost fields from non-accounting users
- Restrict access to stock valuation layers and reports
- Hide cost-related buttons and actions
- Control access at both view level and data model level
- Hide inventory valuation menus
- Protect stock quant value information
- Seamless integration with existing Odoo views
🔐 What Gets Hidden
| Location | Hidden Field/Element | Visible To |
|---|---|---|
| Product Template Form | Cost / Standard Price field | Accounting Users Only |
| Product Template Tree | Cost column | Accounting Users Only |
| Product Variant Form | Cost / Standard Price field | Accounting Users Only |
| Product Variant Tree | Unit Cost, Total Value columns | Accounting Users Only |
| Product Variant Tree | Valuation Report buttons | Accounting Users Only |
| Stock Quant Views | Value field and Valuation button | Accounting Users Only |
| Stock Valuation Layer | Entire model (all records) | Accounting Users Only |
| Menus | Stock Valuation menus | Accounting Users Only |
🚀 Getting Started
Prerequisites
stock_account- Inventory Accountingproduct- Product Management
These modules must be installed before installing InvOdoo Hide Product Cost.
Installation
- Ensure
stock_accountandproductmodules are installed - Go to
Appsmenu in Odoo - Remove the "Apps" filter to show all modules
- Search for "InvOdoo Hide Product Cost"
- Click Install
- Wait for installation to complete
👥 User Roles & Permissions
Who Can See Cost Information?
| User Group | View Product Cost | View Stock Valuation | Access Valuation Reports |
|---|---|---|---|
| Portal Users | ❌ No | ❌ No | ❌ No |
| Inventory Users | ❌ No | ❌ No | ❌ No |
| Sales Users | ❌ No | ❌ No | ❌ No |
| Purchase Users | ❌ No | ❌ No | ❌ No |
| Accounting Users | ✅ Yes | ✅ Yes | ✅ Yes |
| System Administrator | ✅ Yes | ✅ Yes | ✅ Yes |
Granting Access to Cost Information
To allow a user to view cost information:
- Go to
Settings → Users & Companies → Users - Select the user
- Go to Access Rights tab
- Under Accounting section, select at least:
- Billing or
- Billing Manager
- Save the user
📊 Visual Examples
Product Form View
❌ Before (All Users)
- Cost field visible
- Standard Price shown
- Anyone can see margins
✅ After (Non-Accounting Users)
- Cost field hidden
- Standard Price not visible
- Cost information protected
Stock Quant View
❌ Before (Inventory Users)
- Value column visible
- Valuation button accessible
- Total stock value shown
✅ After (Inventory Users)
- Value column hidden
- Valuation button removed
- Focus on quantities only
🎯 Usage Scenarios
Scenario 1: Inventory Manager
User: John (Inventory Manager)
Access Level: Inventory / User
What John Can Do:
- ✅ View product stock levels
- ✅ Manage inventory operations
- ✅ Create stock moves and transfers
- ✅ Perform stock counts
What John Cannot See:
- ❌ Product costs
- ❌ Stock valuation amounts
- ❌ Total inventory value
- ❌ Valuation reports
Scenario 2: Sales Manager
User: Sarah (Sales Manager)
Access Level: Sales / Manager
What Sarah Can Do:
- ✅ Create quotations and sales orders
- ✅ View sales prices
- ✅ Manage customer relationships
- ✅ Access sales reports
What Sarah Cannot See:
- ❌ Product purchase costs
- ❌ Actual profit margins
- ❌ Supplier pricing
- ❌ Stock valuation data
Scenario 3: Accountant
User: Mike (Accountant)
Access Level: Accounting / Billing
What Mike Can See:
- ✅ All product costs
- ✅ Stock valuation layers
- ✅ Total inventory value
- ✅ Valuation reports and buttons
- ✅ Cost analysis and margins
- ✅ All financial data
⚙️ Technical Information
Security Implementation
This module implements multi-layer security:
1. View-Level Security
Fields are hidden using the groups attribute in XML views:
<attribute name="groups">account.group_account_user</attribute>
2. Model-Level Security
Access to stock.valuation.layer model is restricted via ir.model.access.csv
3. Menu-Level Security
Valuation menus are restricted to accounting users only
Modified Views
product.product_template_form_view- Product template formproduct.product_template_tree_view- Product template listproduct.product_normal_form_view- Product variant formstock_account.product_product_stock_tree_inherit_stock_account- Product variant list with valuationstock_account.view_stock_quant_tree_inherit- Stock quant liststock_account.view_stock_quant_tree_editable_inherit- Stock quant editable list
Protected Fields
| Model | Field Name | Description |
|---|---|---|
| product.template | standard_price |
Product cost/standard price |
| product.product | standard_price |
Variant cost/standard price |
| product.product | avg_cost |
Average unit cost |
| product.product | total_value |
Total inventory value |
| stock.quant | value |
Stock on hand value |
❓ Frequently Asked Questions
Q: Can users bypass this restriction using developer mode?
A: No. The security is implemented at both the view and model level. Even with developer mode enabled, users without accounting rights cannot access the data through the API or database queries.
Q: Will this affect my existing reports?
A: No. Standard Odoo reports will continue to work. Users will only see cost data in reports if they have accounting access rights.
Q: Can I temporarily grant someone access to see costs?
A: Yes. Simply add the user to the "Accounting / Billing" group temporarily. Remove the access when no longer needed.
Q: Does this module affect data import/export?
A: Yes. Users without accounting rights cannot export or import cost-related fields. This maintains data security during import/export operations.
Q: What about API access?
A: The access restrictions apply to API calls as well. External applications using non-accounting user credentials cannot retrieve cost information.
Q: Can I customize which fields are hidden?
A: Yes, but it requires development work. You can inherit the module's views and modify the security attributes or create your own custom security group.
Q: Does this work in multi-company environments?
A: Yes. The security restrictions work correctly across all companies in multi-company setups.
🛠️ Troubleshooting
Issue: I'm an accountant but I still can't see costs
Solution:
- Check your user access rights: Settings → Users → Your User
- Verify you have "Accounting / Billing" or higher in the Accounting section
- Log out and log back in to refresh your access rights
- Clear your browser cache
Issue: Cost fields still visible to inventory users
Solution:
- Verify the module is properly installed (not just downloaded)
- Upgrade the module if you recently modified it
- Check that the user doesn't have accounting access rights
- Refresh the browser (Ctrl+F5 or Cmd+Shift+R)
Issue: Module installation fails
Solution:
- Ensure
stock_accountmodule is installed first - Check server logs for specific error messages
- Verify all dependencies are properly installed
- Contact your system administrator if issues persist
🔄 Uninstalling the Module
⚠️ Before Uninstalling
Important considerations:
- All users will regain access to cost information
- This may expose sensitive pricing data to unauthorized users
- Consider your security and compliance requirements
Uninstallation Steps:
- Go to
Appsmenu - Remove the "Apps" filter
- Search for "InvOdoo Hide Product Cost"
- Click Uninstall
- Confirm the uninstallation
- All cost fields will become visible to all users again
📞 Support & Contact
For technical support, questions, or feature requests:
- Module: invodoo_hide_product_cost
- Version: 19.0.0.1.0.0
- Author: InvOdoo
- Website: www.invodoo.com
- Price: $20.00 USD
- Category: Inventory
- License: LGPL-3
✨ Best Practices
- Regularly review user access rights to ensure proper security
- Only grant accounting access to users who truly need it
- Document which users have cost visibility access for audit purposes
- Train users on the importance of protecting cost information
- Periodically verify that cost fields remain hidden from non-accounting users
© 2026 InvOdoo Hide Product Cost Module | Odoo 19.0 | Protecting Your Cost Data
Please log in to comment on this module