OdooWiki OCA HUB

PoS Product Cost Security

pos_product_cost_security folder_open OCA/product-attribute open_in_new
Product License: AGPL-3

This is a glue module to avoid permission errors when loading data in the Point of Sale if the user has no standard_price (cost) field permissions.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

This module makes the Point of Sale work smoothly for cashiers who are not allowed to see product costs. It quietly bypasses the cost-field restriction only while the Point of Sale loads its data.

In Odoo, the Product Cost Security module hides the product cost field (standard_price) from users who are not in the cost-security group. The Point of Sale, however, needs to read product data when it loads, and that could trigger a permission error for ordinary Point of Sale users.

This module is a compatibility bridge between the two. It does not add any menu, screen, button or report. Instead, it changes how product data is read in two situations:

  • When the Point of Sale prepares data for a specific user, it marks the reading context so the cost restriction is temporarily lifted.
  • When product field access is checked, the module allows the cost field to be read only if all of these are true: the reading comes from the Point of Sale, the user belongs to the Point of Sale user group, the user does NOT belong to the product cost security group, and the field being read is the cost field.

In every other case, the normal cost-security rules still apply, so users without the cost permission still cannot see product costs elsewhere in Odoo. The module installs automatically when both Point of Sale and Product Cost Security are present, and it touches the pos.load.mixin and product.product models.

Depends on

Models and fields (2)
  • pos.load.mixin · extends an existing model
  • product.product · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/product-attribute.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.