Stock Move Line Multi Company Security
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.0Restricts 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
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-03Confirmation 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.0Installation
Source · Odoo 12.0This 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.
Usage
Source · Odoo 12.0To 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.
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.
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.