Odoo Community
Odoo Enterprise
Salespeople sell without seeing your cost and margin
For business owners and sales managers who decide who reads product costs
Only users with product cost access see cost and margin on sales orders
Odoo Community · Odoo Enterprise · OPL-1 · English, Vietnamese
What changes for your team
Salespeople see the price, not the cost
Every internal user who opens an order can read the cost and margin of its lines.
→ Without product cost access, an order shows quantities, prices and the total. Cost and margin are not there.
Sales reports keep the margin private too
Anyone who opens the Sales Analysis can add up the margin by customer, product or salesperson.
→ A sales manager without the right keeps the report, and Margin is not among its measures.
You choose who sees them, person by person
Seeing the margin comes with access to sales orders.
→ One access right on the user decides. Being a sales manager does not grant it.
What you see as a manager
Which products earn, and which sell below cost?
The margin of confirmed sales orders, shown to the managers who have product cost access.
Features
Quotations and orders
- ✓ Cost, Margin and Margin (%) of each line, with the right only
- ✓ Margin of the whole order, with the right only
- ✓ Cost of a line changed by hand, with the right only
Sales reports
- ✓ Margin measure of the Sales Analysis, with the right only
- ✓ Revenue and quantity measures open to everyone who reads the report
Access rights
- ✓ Granted or withheld for each user
- ✓ Settings administrators always included
Built for daily use
- ✓ Cost and margin are calculated on every order, whoever creates it
- ✓ Hidden figures cannot be exported or read through the API
- ✓ Orders are created, confirmed and duplicated as usual
Ready on day one
Protected from the start
Once the module is installed, users without the right see no cost or margin. There is nothing to configure.
One decision for the administrator
Choose who needs the figures, starting with the salespeople who set the cost of a line by hand.
Before you decide
Who sees cost and margin after installation?
The users given the Product Cost access right, and the Settings administrators. With the matching extensions of Product Cost Access, purchase users, inventory administrators and accountants have the right as well.
Can a salesperson without the right still do the job?
Yes, with one limit: they cannot set the cost of an order line by hand. Give the right to the salespeople who do.
Do my margin figures stay complete?
Yes. Every order keeps its cost and margin, including the orders of salespeople who cannot see them.
Does it cover every report that shows a cost?
It covers quotations, sales orders and the Sales Analysis. Reports of other apps follow their own access rights.
What does it need to run?
Margins in Sales Orders and Product Cost Access. The module installs itself when both are installed.
Product Cost Access - Sales Margin
This guide is for administrators, who decide who sees cost and margin, and for sales managers, who rely on those figures.
Overview
A margin tells the cost of a product back: subtract it from the price and the cost is known. Margins in Sales Orders shows the Cost, the Margin and the Margin (%) of every quotation and sales order line, the Margin of the whole order and the Margin measure of the Sales Analysis to every internal user. This module gives these figures the same protection as the cost of a product: only the users granted a Product Cost access right see them.
Everyone else keeps working as before. They create, confirm and deliver quotations and sales orders, and the cost and the margin keep being computed in the background.
| Role |
What they do |
Access right to assign |
| Administrator |
Decides who sees cost and margin. Always sees them. |
Settings: Administrator |
| Salesperson or sales manager with cost access |
Sees the cost and the margin of every line and of the order, sets the cost of a line by hand and reads the margin in the Sales Analysis. |
Product Cost: Product Cost Access - Readonly (or Editable) |
| Other salespeople and sales administrators |
Work on quotations and sales orders without cost and margin. A sales administrator also opens the Sales Analysis, without the Margin measure. |
Sales right as needed; no Product Cost right |
Setup (for the Administrator)
Installation
The module installs itself as soon as the apps Margins in Sales Orders and Product Cost Access are both installed. There is nothing to configure.
- Navigate to Apps.
- Install Margins in Sales Orders and Product Cost Access, if they are not installed yet.
Granting cost and margin to a user
- Navigate to Settings ‣ Users & Companies ‣ Users and open a user.
- In the Access Rights tab, choose Product Cost Access - Readonly or Product Cost Access - Editable in the Product Cost field of the Sales section.
- Save the user.
Both access rights give the same result on quotations and sales orders. The editable right includes the readonly right, and users of the Settings Administrator role always have it. Leave the Product Cost field empty for a user who must not see cost and margin.
The Sales right does not include the Product Cost right: a user whose Sales right is Administrator still has to be granted Product Cost to see cost and margin.
Salesperson with cost access: see cost and margin
Read the cost and the margin of an order
- Navigate to Sales ‣ Orders ‣ Quotations (or Orders) and open a quotation or a sales order.
- In the Order Lines tab, open the column selector at the right end of the header of the lines and tick Cost, Margin and Margin (%).
- Read the Margin of the whole order, with its percentage, under the totals.
The Cost of a line is filled from the cost of the product. A user with cost access changes it in place when a line is sold on a special cost, and the margin follows.
Read the margin in the Sales Analysis
- Navigate to Sales ‣ Reporting ‣ Sales and switch to the pivot view.
- Open the Measures menu and choose Margin: a Margin column joins the table.
Users without cost access: work without cost and margin
For a user without cost access the quotations and sales orders look as if the margin were not installed:
- the Cost, Margin and Margin (%) columns are not on the order lines and are not offered in the column selector;
- the Margin under the totals of the order is not shown;
- the Cost of a line cannot be changed; give Product Cost Access - Readonly to the salespeople who set it by hand;
- the values cannot be read through the API either.
What such a user meets in the Sales Analysis depends on the Sales right:
- A salesperson limited to own documents has no Reporting menu, so there is no Sales Analysis to open.
- A user with the Sales right Administrator sees Sales ‣ Reporting ‣ Sales, and the Measures menu has no Margin.
Creating, confirming, delivering and invoicing orders work as usual for these users.
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.