| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) |
| Lines of code | 177 |
| Technical Name |
hdk_multi_company_product |
| License | OPL-1 |
| Website | https://www.hamdek.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) |
| Lines of code | 177 |
| Technical Name |
hdk_multi_company_product |
| License | OPL-1 |
| Website | https://www.hamdek.com |
Hamdek Multi-Company Products
Restrict product templates to the companies you choose using Companies tags. The standard record rule is aligned so users only see products allowed for their active companies. Product category routes are filtered to global or company-matching stock routes.
One catalog, clear company boundaries
Install the module, enable multi-company for your database, and use the product form’s Companies field (for users in the Multi Companies group). Leave it empty to share a product across all active companies; set tags to limit visibility and access per company.
Product form
The single Company field is hidden; Companies appears as tags for multi-company users.
Record rule
product.product_comp_rule uses no_company_ids and company_ids so list views and pickers respect allowed companies.
Category routes
route_ids on categories suggests only routes for the active companies (or global routes), alongside product_categ_selectable.
Key Features
Built-in mixin
hdk.multi.company.mixin provides company_ids, computed company_id, and no_company_ids without a third-party base app.
Install migration
On install, legacy company_id values are copied into company_ids; the product rule domain is updated automatically.
Clean uninstall
Uninstall restores Odoo’s default product.template multi-company rule domain.
Requirements
Depends on standard stock (includes product). Multi-company mode and user allowed companies as usual.
How to Get Started
- Install Multi-Company Products (Hamdek) (stock will be available).
- Ensure your database uses multiple companies and users have the Multi Companies group where needed.
- Open Inventory → Products → Products, pick a template, and set Companies.
- Switch the company in the menu bar and confirm product visibility matches your tags.
Use Cases
Separate assortments
Subsidiary A sells a subset of items; subsidiary B sees only its own SKUs while sharing one database.
Shared + local products
Leave Companies empty for global catalog lines; tag specific companies for restricted items.
Workflow
From configuring companies and users to editing the product form and validating behavior when switching companies.
Companies & users
Create or use existing companies. Grant allowed companies and the Multi Companies security group so the Companies field appears on products.
Product form — Companies tags
Open a product template: set Companies to one or more companies, or leave empty for all companies (per rule).
Switch company & verify catalog
Use the company switcher and open Products: restricted products should not appear for companies that are not in Companies.
Product category routes (optional)
Under Inventory → Configuration → Product Categories, open Routes: only routes valid for the active companies (or global) should be selectable.
Support & Expert Services
sales@hamdek.com
www.hamdek.com
Odoo Proprietary License v1.0 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.
Please log in to comment on this module