OdooWiki OCA HUB

Product cost security stock account

product_cost_security_stock_account folder_open OCA/product-attribute open_in_new
Stock License: AGPL-3

Make 'Product Cost Security' and 'Stock account' modules compatible.

Avoids permission errors during the stock valuation layer creation, which would happen when stock users (with no access to product costs) tried to perform valid stock-related operations, like creating stock valuation layers.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Allows warehouse and stock users who are not allowed to see product costs to still validate stock movements and create stock valuation entries without permission errors.

This is a technical compatibility module that installs automatically when both the product cost security and stock accounting features are present. It does not add any new menu, screen, button or report.

In standard Odoo, when a stock user without cost access validates a transfer, the system tries to read the product's cost to build the stock valuation entry and raises an access error. This module fixes that by reading the cost internally, without granting the user any extra visibility of product costs.

  • It touches product.product and stock.move.
  • When a stock move is completed (_action_done), the product cost is read internally so the valuation can be created.
  • The same internal read is done when preparing incoming and outgoing stock valuation values (_prepare_in_svl_vals, _prepare_out_svl_vals).

Business rules and automatic behaviours: none are added beyond avoiding the permission error. No new fields, checks, emails or scheduled jobs are introduced. Users keep their existing access rights; they simply can complete valid stock operations that previously failed.

Depends on

Models and fields (2)
  • stock.move · 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: 1 confirmed, 8 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.