Odoo Community
Odoo Enterprise
Keep product costs with the people who need them
For business owners and finance managers who keep margins private
Who may see the cost of a product
Odoo Community · Odoo Enterprise · OPL-1 · English, Vietnamese
What changes for your team
Salespeople stop seeing your margins
Every internal user who opens a product reads its cost.
→ The cost disappears from product forms, variants and lists for everyone outside the two cost groups.
You decide who reads and who edits
Reading the cost and changing it go together.
→ A readonly group and an editable group, chosen in one field of the user.
Vendor prices stay with purchasing
The price of every vendor pricelist line is open to anyone who opens the line.
→ The unit price is hidden from the users outside the groups.
Features
Product cost
- ✓ Cost hidden on the product form
- ✓ Cost hidden on the product variant form
- ✓ Cost hidden on product lists
- ✓ Cost read-only for the readonly group
Vendor prices
- ✓ Unit price hidden on the vendor pricelist form, list and kanban
- ✓ Unit price editable by cost editors only
Access rights
- ✓ Two groups: readonly and editable
- ✓ The editable group includes the readonly group
- ✓ One field on the user to grant either
Built for daily use
- ✓ Settings administrators always edit the cost
- ✓ The values stay in the database for valuation and margins
Ready on day one
Two access groups
Readonly and editable, ready to assign from any user.
Administrator accounts
The built-in administrator accounts already hold both groups.
Extend it
Accountants read product costs with no per-user setup.
Purchase users read product costs with no per-user setup.
Stock valuation costs show only to the cost groups.
The vendor price leaves the name of a vendor pricelist line.
Before you decide
Who sees the cost after I install it?
The members of the two cost groups, the built-in administrator accounts and the Settings administrators. Everyone else loses the field.
Can someone read the cost without changing it?
Yes. The readonly group reads; the editable group reads and edits.
Does it change my data?
No. It changes what the screens show. Costs stay in the database for valuation.
Do reports and exports follow it?
The module controls the product, variant and vendor pricelist screens. A report or an export that reads the cost follows its own access rules.
How do accountants and buyers get access?
Install the matching extension: it grants the readonly access to them by default.
Product Cost Access
Overview
The cost of a product shows the margin of the business, so only the people who need it should see it. This module limits the Cost of a product and of a product variant, and the Unit Price of a vendor pricelist line, to the users of two Product Cost access groups. Everyone else works with the same screens without these values.
| Role |
What they do |
Access right to assign |
| Administrator |
Decides who sees the cost and who maintains it. Always edits the cost. |
Settings: Administrator |
| Cost editor |
Sees and edits the cost of products, variants and the vendor price. |
Product Cost: Product Cost Access - Editable |
| Cost reader |
Sees the cost and the vendor price, without changing them. |
Product Cost: Product Cost Access - Readonly |
| Other users |
Work with products and vendor pricelists without the cost and the vendor price. |
None |
Setup (for the Administrator)
Installation
- Navigate to Apps.
- Search with keyword to_product_standard_price_access.
- Press Install.
Granting the cost access 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.
The editable group includes the readonly group. Users of the Settings Administrator role always have the editable access. Leave the Product Cost field empty for a user who must not see the cost.
The accountants, the purchase users and the warehouse managers receive the readonly access from the modules Product Cost Access - Accounting, Product Cost Access - Purchase and Product Cost Access - Inventory.
Cost editor and cost reader: see and maintain the cost
Read or change the cost of a product
- Navigate to Inventory ‣ Products ‣ Products and open a product.
- In the General Information tab, read the Cost. A cost editor changes it in place; for a cost reader the field is read-only.
The same rule applies to the Cost of a product variant and to the Cost column of the product lists.
Read the vendor price
The Unit Price of a vendor pricelist line, in the form, the list and the kanban, shows for the users of the two groups. A cost editor changes it; a cost reader reads it.
Other users: work without the cost
The Cost field and its label do not show on the product form, the product variant form and the product lists.
On a vendor pricelist line the Unit Price does not show either.
Note
The module controls what the product, product variant and vendor pricelist screens show. It does not change the access to the stored values: a report or an export that reads them follows its own access rules.
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.