OdooWiki OCA HUB

Stock Move Line Multi Company Security

stock_move_line_multi_company_security folder_open OCA/multi-company open_in_new
Stock License: AGPL-3

In a multi-company enviroment, a user can access to all the companies product moves from the product form Product Moves stat button. That's a full disclosure of the companies operations which is a sensitive information that gives accurate clues about what they sell, purchase or move internally.

This module adds the proper security to avoid it.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Restricts stock move lines to the companies a user is allowed to see, so users can no longer view other companies' product movements from the Product Moves button.

In a multi-company database, users could previously open the Product Moves screen from a product form and see movements belonging to every company, which revealed sensitive purchasing, sales and internal transfer information. This module closes that gap.

  • It adds a company field on stock move lines, automatically taken from the related stock move and stored on each line.
  • It installs a global record rule on stock move lines that only allows lines whose company is empty or belongs to the user's current company (including its child companies).
  • Because the rule is global, it applies to everyone, including administrators, and cannot be bypassed by ordinary users.

Where it appears: there is no new menu or button. The change is visible in existing screens that show stock move lines, such as the Product Moves view opened from a product form, and in any list or report built on stock move lines. Users simply see fewer lines: only those of their own company.

Business effect: cross-company stock movement data is hidden automatically, with no manual filtering needed. No new fields are shown to users, no emails or scheduled jobs are added, and no other Odoo area is modified beyond stock move lines.

Depends on

stock
Models and fields (1)
  • stock.move.line · extends an existing modelcompany_id

Text generated by AI (DeepSeek) from reading the Odoo 12.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 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/multi-company.

terminal Installation and usage

OCA documentation · Odoo 12.0

This module adds a new column in the stock move line model. It could take some time to initialize it if the database has a huge amount of records.

To use this module, you need to:

  • Log in with a user belonging to a company.
  • Go to Inventory > Master Data > Products and choose an stockable one.
  • Click on the stat button Product Moves.
  • You should see only moves relative to your own company.

No verified information in OCA: Configuration.

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.