Overview
Product cost, average cost and inventory value are sensitive figures that should not be visible to every employee who can open a product. This module adds a dedicated 'Show Product Cost' security group and hides the cost-related fields on both product template and product variant forms from anyone outside that group. Administrators simply grant the group to the staff who legitimately need cost visibility, keeping margins and valuations private from the rest of the team.
Key Features
- Adds a dedicated 'Show Product Cost' security group that gates visibility of cost data.
- Hides the standard Cost (standard_price) field and label on the product template form from unauthorized users.
- Hides Cost, Average Cost and Total Value fields on the product variant form from unauthorized users.
- Enforces the restriction dynamically at view-render time so it applies wherever the cost fields appear.
- Lets administrators grant cost visibility per user from the standard Users access-rights screen.
- Requires no configuration beyond assigning the group, and leaves cost data fully intact for authorized staff.