Skip to content
DevMarket
Odoo ModulesWordPress PluginsWordPress ThemesShopify ThemesApp TemplatesScripts & UtilitiesBlogSell on DevMarket
ModuleOdooNew

Hide Product Cost & Margins from Salespersons for Odoo 19 – Screens, Reports and API

Take product cost and order margins away from salespersons everywhere: in the screens, in the reports and in the JSON-RPC API. One group decides who still sees them.

No reviews yet0 salesby TAQNIXUpdated Oct 22, 2026

Description

Salespersons do not need to know what the goods cost

Odoo shows the product Cost and the order Margin to every internal user. A salesperson who can see that a chair costs 55 and sells for 70 negotiates differently, and may tell the customer.

Hide Product Cost & Margins from Salespersons takes cost and margin away from the people you choose, everywhere: in the screens, in the reports, and in the API. One security group decides who still sees them.

Salesperson order without cost and margin

What disappears

  • The Cost on product forms and on the product and variant lists
  • The Cost, Margin and Margin % columns on order lines
  • The Margin line under the order totals
  • The Margin measure in the sales analysis, and Margin and Inventory value in the invoice analysis
  • The same fields in filters, group-bys and exports
Group that decides who still sees cost

Not only the screen

Hiding a field in a view is not enough: Odoo has an open JSON-RPC and XML-RPC API. This module protects the model itself, so a salesperson who asks the server for the cost gets an access error. Reading, searching, grouping, exporting and writing are all refused, and the fields are not even announced to the client.

JSON-RPC calls refused for a salesperson

Nobody has to be edited one by one

The group See Product Cost & Margins is given through the roles Odoo already has: sales managers, accountants, inventory managers, purchase users and administrators keep seeing everything the moment you install. Salespersons lose it. Add or remove anyone later with a role or the group.

Salespersons keep quoting, confirming and invoicing

Salespersons keep selling

They still quote, confirm, deliver and invoice. Odoo keeps computing the margin in the background for the people who may see it. Nothing is changed or lost when you install or remove the module.

Features of Hide Product Cost and Margins

Honest about the limits

Vendor prices, stock valuation, manufacturing cost and Point of Sale reports belong to other apps and are protected by those apps' rights: do not give them to salespersons. The documentation lists exactly what is and is not covered.

Documented and tested

Illustrated documentation in English and Arabic, an Arabic translation of the module and 12 automated tests, including the API calls.

What's included

  • taqnix_hide_cost_margin.zip: the Odoo 19 module (with Arabic translation)
  • Illustrated documentation in English and Arabic (HTML and PDF)
  • Automated tests, licence file (OPL-1) and changelog

Requirements

Odoo 19.0 with Sales (Margins in Sales Orders), Invoicing and Inventory.

What's in the download

The files in the archive you can download after you buy.

  • Full source code
  • Documentation
  • Installation guide
  • Automated tests
  • Licence file
  • Changelog

Customer reviews

Write a review

No reviews yet. Bought this item? Be the first to review it.

Usage

Install and use it in a few lines.

my_secret_price = fields.Float(groups='taqnix_hide_cost_margin.group_see_cost')

Documentation

Setup, settings and troubleshooting, written by the author.

Open the documentation

Changelog

Every release, newest first.

v1.0.1

1.0.1 – Translation fix

  • Fixed the Arabic translation file, which could not be loaded

v1.0.0

1.0.0 – Initial release

  • Product cost, order line cost and margin, order margin, sales analysis margin and invoice analysis margin and inventory value restricted to one security group
  • Fields removed from every view, filter, group-by and export, and refused over JSON-RPC and XML-RPC
  • Group granted through sales, accounting, inventory, purchase and settings administrators
  • Order lines still precompute cost and margin for salespersons, orphan margin block hidden, Arabic translation, automated tests

Frequently asked questions

Does it only hide the fields in the screens?

No. It protects the fields on the model itself, so JSON-RPC and XML-RPC reads, searches, group-bys and exports by a salesperson are refused as well.

Who still sees the cost and the margin?

Everyone with the group “See Product Cost & Margins”. It is given automatically through sales administrators, accountants, inventory administrators, purchase users and settings administrators. You can add anyone else.

Can salespersons still create, confirm and invoice orders?

Yes. The margin is still computed in the background for the people who may see it, and the workflow does not change.

Which fields are hidden?

The product cost, the cost, margin and margin % of order lines, the margin of orders, the margin in the sales analysis, and the margin and inventory value in the invoice analysis.

What is not covered?

Vendor prices, purchase orders, stock valuation, manufacturing cost and Point of Sale reports belong to other apps and are protected by those apps' access rights. Do not give them to salespersons.

Is any data changed when I install or remove it?

No. Nothing is changed or deleted. Removing the module makes cost and margin visible to all internal users again, as in standard Odoo.

Will my custom modules break?

Code that reads the cost as a salesperson gets an access error. Use sudo() for the cost in that code, or give the user the group. The documentation shows how.

Does it support Arabic?

Yes. The module ships an Arabic translation, and the documentation is available in Arabic with right-to-left layout.

More from TAQNIX

  • ModuleNew

    Customer Outstanding Balances Widget for Odoo 19 – Overdue Amount Banner on the Sales Order, Both Directions

    See what a customer owes you, what is overdue and what you owe them, in a banner at the top of the sales order. Red when the delay is serious. Live from your accounting, Arabic included.

    by TAQNIX
    No reviews yet
    Sales:0$34.00
  • ModuleNew

    Digital File Sales & Secure Token Downloader for Odoo 19 – Personal Time-Limited Links with Download Counter

    Sell PDFs, templates and any file from Odoo. When the sales order is confirmed the customer gets a personal download link by email, valid for N days and N downloads, with a full download log.

    by TAQNIX
    No reviews yet
    Sales:0$49.00
  • ModuleNew

    Advanced POS Receipt & Invoice Customizer for Odoo 19 – 5 Styles Each, Amount in Words, Barcode

    Choose the look of your invoices, quotations and Point of Sale receipts in the company settings: five styles each, accent colour, amount in words (Arabic too), signature boxes, order barcode and small print.

    by TAQNIX
    No reviews yet
    Sales:0$39.00
  • ModuleNew

    IP Address & Time-Based Login Restrictions for Odoo 19 – Office-Only Sign-In and Working Hours

    Let people sign in only from your office or VPN addresses and only at working hours, per user or user group. Covers the login page, the API and open sessions, with a lock-out guard and an off switch.

    by TAQNIX
    No reviews yet
    Sales:0$39.00

Similar items

  • ModuleNew

    Digital File Sales & Secure Token Downloader for Odoo 19 – Personal Time-Limited Links with Download Counter

    Sell PDFs, templates and any file from Odoo. When the sales order is confirmed the customer gets a personal download link by email, valid for N days and N downloads, with a full download log.

    by TAQNIX
    No reviews yet
    Sales:0$49.00
  • ModuleNew

    Advanced POS Receipt & Invoice Customizer for Odoo 19 – 5 Styles Each, Amount in Words, Barcode

    Choose the look of your invoices, quotations and Point of Sale receipts in the company settings: five styles each, accent colour, amount in words (Arabic too), signature boxes, order barcode and small print.

    by TAQNIX
    No reviews yet
    Sales:0$39.00
  • ModuleNew

    Customer Outstanding Balances Widget for Odoo 19 – Overdue Amount Banner on the Sales Order, Both Directions

    See what a customer owes you, what is overdue and what you owe them, in a banner at the top of the sales order. Red when the delay is serious. Live from your accounting, Arabic included.

    by TAQNIX
    No reviews yet
    Sales:0$34.00
  • ModuleNew

    IP Address & Time-Based Login Restrictions for Odoo 19 – Office-Only Sign-In and Working Hours

    Let people sign in only from your office or VPN addresses and only at working hours, per user or user group. Covers the login page, the API and open sessions, with a lock-out guard and an off switch.

    by TAQNIX
    No reviews yet
    Sales:0$39.00