Skip to Content

Hide cost and margin in Sale Order

by

4.54

14.0 0
Live Preview
Required Apps Sales (sale_management)
Discuss (mail)
Invoicing (account)
Technical Name access_sale_margin
License OPL-1
You bought this module and need support ? Click here!
Technical Name access_sale_margin
License OPL-1

Introduction

The Hide Cost & Margin module for Odoo is designed to protect sensitive financial information by hiding product cost prices and profit margins in sale orders for most users. With this extension, only users who have the appropriate access rights can view the cost and margin fields. It’s ideal for sales teams where you want to prevent visibility into behind-the-scenes pricing structures while still retaining margin calculations for authorized users. This ensures pricing strategies remain confidential and internal margins are safeguarded.

Key Features

  • Hide the product cost price in sale order lines from users without the proper rights

  • Hide the margin (profit) field in sale orders unless the user is granted visibility rights

  • Access control toggle: administrators can check a box in the user’s access rights to allow them to see cost & margin

  • Seamless integration with the standard sales workflow—no major UI changes, only conditional visibility

Benefits

  • Maintains confidentiality of cost prices from most sales staff

  • Prevents conflicts or misunderstandings arising from margin visibility

  • Ensures internal pricing strategies are protected

  • Simplifies role separation by limiting financial visibility to authorized users

  • Keeps the sales process clean and focused for general users

Compatibility & Technical Details

  • Technical Name: likely something akin to access_sale_margin (as per similar modules)

  • Required Modules: Sales / Sale (sale_management), Invoicing / Accounting (account), Discuss / Mail (mail)

  • License: Odoo Proprietary License (as seen in analogous modules)

  • Installation Steps:
     1. Install the module in your Odoo instance.
     2. Activate developer mode and update the app list.
     3. Go to Users & Companies → Users and open a user.
     4. Enable a “Show Cost & Margin” access right checkbox (or similar) for users who should see cost/margin.
     5. Log in as a restricted user to confirm that cost and margin fields are hidden in sale orders.
     6. Test with a user that has permission to ensure they can view cost/margin as intended.

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.