Skip to Content
Menu

Hide Product Cost per user

by
Odoo

25.33

v 17.0 Third Party
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Inventory (stock)
Invoicing (account)
Lines of code 72
Technical Name wm_hide_product_cost
LicenseOPL-1
Versions 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Inventory (stock)
Invoicing (account)
Lines of code 72
Technical Name wm_hide_product_cost
LicenseOPL-1
Versions 17.0 18.0
Community Enterprise Odoo.sh On-Promise

Hide Product Cost per User

This module enhances Odoo's access control by allowing administrators to selectively hide product cost prices (standard_price) from specific users. By utilizing a dedicated user group, you can ensure that only authorized personnel can view cost information on product and inventory report views, thereby improving data confidentiality and internal controls.

Features
  • Restrict visibility of the product 'Cost' field (standard_price).
  • Control access using a dedicated user group: "View Product Cost".
  • Hides the cost price in the Product Template views.
  • Hides the cost price in the Product Variant views.
  • Hides the cost price in the Lot and Serial Number views.
  • Hides the cost price in the Inventory repots (Stock, Locations and valuation reports) views including pivot views.
  • Hides the cost price and other related fields (Value, Unit Cost,..etc) from Export Wizard of the product and reports list views.
  • Simple to configure and manage through standard Odoo user and group settings.
  • Enhances data security and confidentiality for sensitive cost information.
  • How it works?

    This module introduces a new security group named "View Product Cost". Users who are NOT part of this group will have the 'Cost' field hidden from their view on product templates, product variants,Lot and serial number and inventory reports.

    1. Installation: Upon installing the module, the "View Product Cost" group is automatically created. By default, all users (except administrator) will not be part of this group, meaning the cost price will be hidden for them.
    2. Granting Access: To allow a user to see the product cost, an administrator needs to:
      • Enable developer mode.
      • Navigate to Settings > Users & Companies > Users.
      • Select the desired user.
      • Under the "Access Rights" tab (or similar, depending on Odoo version and other modules), find the application section for this module or the "Other Rights" section.
      • Check the box for "View Product Cost".
      • Save the changes.

      Users in this group will see the 'Cost' field on product forms and in product list views.

      User access rights configuration showing 'View Product Cost' group

      (Illustrative image: User settings showing the 'View Product Cost' group)

    3. Viewing Product Cost (User with Access): A user who is a member of the "View Product Cost" group will see the 'Cost' field as usual in the product template, product variant,Lot and Serial Number and inventory reports views. Product template list view with cost price visible

      (Illustrative image: Product template list view showing the 'Cost' field for an authorized user)

      Product template form view with cost price visible

      (Illustrative image: Product template form view showing the 'Cost' field for an authorized user)

      Product variant list view with cost price visible

      (Illustrative image: Product variant list view showing the 'Cost' field for an authorized user)

      Product variant form view with cost price visible

      (Illustrative image: Product variant form view showing the 'Cost' field for an authorized user)

      Product variant easy edit form view with cost price visible

      (Illustrative image: Product variant easy edit form view showing the 'Cost' field for an authorized user)

      Lot and Serial Number form view with cost price visible

      (Illustrative image: Lot and Serial Number form view showing the 'Cost' field for an authorized user)

      Stock report view with cost price visible

      (Illustrative image: Stock report view showing the 'Cost' field for an authorized user)

      Locations report view with cost price visible

      (Illustrative image: Locations report view showing the 'Cost' field for an authorized user)

      Valuation report view with cost price visible

      (Illustrative image: Valuation report view showing the 'Cost' field for an authorized user)

      Export wizard with cost price visible

      (Illustrative image: Export wizard showing the 'Cost' field for an authorized user)

    4. Cost Hidden (User without Access): A user who is NOT a member of the "View Product Cost" group will not see the 'Cost' field. The field will be entirely hidden from their view on product templates, product variants,Lot and serial number and inventory reports. Product template list view with cost price hidden

      (Illustrative image: Product template list view the 'Cost' field hidden for an authorized user)

      Product template form view with cost price hidden

      (Illustrative image: Product template form view the 'Cost' field hidden for an authorized user)

      Product variant list view with cost price hidden

      (Illustrative image: Product variant list view the 'Cost' field hidden for an authorized user)

      Product variant form view with cost price hidden

      (Illustrative image: Product variant form view the 'Cost' field hidden for an authorized user)

      Product variant easy edit form view with cost price hidden

      (Illustrative image: Product variant easy edit form view the 'Cost' field hidden for an authorized user)

      Lot and Serial Number form view with cost price hidden

      (Illustrative image: Lot and Serial Number form view the 'Cost' field hidden for an authorized user)

      Stock report view with cost price hidden

      (Illustrative image: Stock report view the 'Cost' field hidden for an authorized user)

      Locations report view with cost price hidden

      (Illustrative image: Locations report view the 'Cost' field hidden for an authorized user)

      Valuation report view with cost price hidden

      (Illustrative image: Valuation report view the 'Cost' field hidden for an authorized user)

      Export wizard with cost price hidden

      (Illustrative image: Export wizard with 'Cost' field hidden for an authorized user)

    This provides a straightforward way to manage who can see sensitive product cost information within your Odoo system.

    Changelogs

    Version:1.0.0 Date:15-May-2025

    • Initial Code.
    Odoo Proprietary License v1.0
    
    This software and associated files (the "Software") may only be used (executed,
    modified, executed after modifications) if you have purchased a valid license
    from the authors, typically via Odoo Apps, or if you have received a written
    agreement from the authors of the Software (see the COPYRIGHT file).
    
    You may develop Odoo modules that use the Software as a library (typically
    by depending on it, importing it and using its resources), but without copying
    any source code or material from the Software. You may distribute those
    modules under the license of your choice, provided that this license is
    compatible with the terms of the Odoo Proprietary License (For example:
    LGPL, MIT, or proprietary licenses similar to this one).
    
    It is forbidden to publish, distribute, sublicense, or sell copies of the Software
    or modified copies of the Software.
    
    The above copyright notice and this permission notice must be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
    DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
    ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    DEALINGS IN THE SOFTWARE.
    

    Please log in to comment on this module

    • The author can leave a single reply to each comment.
    • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
    • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.