Product Restriction on Users - Allowed Products and Categories per User
by Modvanta https://modvantaapps.tech/odoo-apps/product-user-restriction/$ 11.97

Let each user work only with the products they are responsible for
Set allowed products and allowed product categories on a user. That user then only finds those products in product lists and in the product dropdowns of quotations, purchase orders and other documents, and the server refuses any other product.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
In standard Odoo every salesperson and buyer sees the whole catalogue. A team that sells only furniture still scrolls past food, drinks and services, and nothing stops them from putting a product of another team on a quotation.
This module adds a Product Restrictions tab to the user form with Allowed Product Categories (sub-categories included) and Allowed Products. When either is filled in, the user only finds those products: in the product list, in the product dropdown of a quotation or a purchase order, and anywhere else Odoo searches products, because the restriction is applied on the server.
A restricted user cannot add another product to a document, even through import or the API. Documents that already contain other products stay readable. Administrators and members of See all products are never restricted, and leaving both fields empty means no restriction.
Who it is for
Companies with product-line teams Each sales or purchasing team works only with its own range. | Distributors and franchises Agents or branch staff only see the products they are allowed to sell. | Managers who need control Keep sensitive or internal products away from users who should not quote them. |
Key features
All screenshots were taken on Odoo 19 with this module installed on a clean demo database (company Northwind Trading Co). Jordan Lee is a salesperson and purchase user allowed the Furniture category and one service, Virtual Interior Design.
Feature 1
Allowed products and categories on the user
The Product Restrictions tab on the user form holds the allowed product categories and allowed products, and shows whether the restriction is active. Leave both empty to let the user see every product.

Feature 2
The full catalogue for an administrator
Alex Morgan, an administrator, sees all 115 saleable products of the demo database: furniture, food, drinks, clothes and services.

Feature 3
Only the allowed products for the restricted user
Jordan Lee opening the same product list sees 31 products: the Furniture category with its sub-categories, plus Virtual Interior Design.

Feature 4
Restricted product dropdown on quotations
Typing 'Virtual' on a quotation line offers only Virtual Interior Design. Virtual Home Staging, a service outside the allowed list, does not appear.

Feature 5
And on purchase orders
The product dropdown of a request for quotation shows only allowed products as well.

Feature 6
Existing documents stay readable
A quotation assigned to Jordan Lee that already contains Virtual Home Staging still opens normally with all its lines.

Feature 7
Other products refused by the server
Duplicating that quotation would put the forbidden product on a new order, so the server refuses it with a clear message telling the user to ask an administrator.

How it works, step by step
| 1 | Install the module It depends only on Product. |
| 2 | Open a user Settings -> Users, open the user and go to the Product Restrictions tab. |
| 3 | Choose what they may use Add allowed product categories (their sub-categories are included) and, if needed, single allowed products. |
| 4 | Done The restriction applies straight away to product lists, dropdowns and documents for that user. |
Settings
Settings are on each user, in the Product Restrictions tab (visible to administrators).
| Allowed Product Categories | Categories the user may use, sub-categories included. |
| Allowed Products | Single products the user may use in addition to the categories. |
| Restriction active | Shows whether the user is restricted (at least one allowed category or product, and not a member of See all products). |
| See all products (ignore product restrictions) | Group whose members are never restricted. Administrators are in it by default. |
Frequently asked questions
Is it only hidden in the interface?
No. The products are filtered on the server, so lists and dropdowns only return allowed products, and a document with another product is refused even through import or the API.
What about documents that already contain other products?
They stay readable for the user. Only adding another product is refused, as the duplicate example shows.
Are sub-categories included?
Yes. Allowing Furniture also allowed Furniture / Office and Furniture / Outdoor on the bench.
Who is never restricted?
Administrators, members of See all products, and users whose two fields are empty. Portal, public and system flows are not affected.
Does it need Sales or Purchase?
No. It depends only on Product and works in every app that uses products; the screenshots show Sales and Purchase.
Compatibility
Odoo 19 Community and Enterprise | Depends on Product | Tested 13 automated tests |
Show every user only the products they should use
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
SUPPORT | AUTHOR Modvanta | INCLUDED Module, setup help by email |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 150 |
| Technical Name |
mdv_product_user_restriction |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/product-user-restriction/ |
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