Product Restricted Type
by ForgeFlow https://github.com/OCA/product-attribute , Odoo Community Association (OCA) https://github.com/OCA/product-attributeAvailability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 121 |
Technical Name |
product_restricted_type |
License | AGPL-3 |
Website | https://github.com/OCA/product-attribute |
Versions | 11.0 12.0 13.0 14.0 15.0 17.0 |
Product Restricted Type
This module adds ‘restricted_product_type’ to product_category model. With this optional selection field, ‘restricted_product_type’ should have the same values as in the product.template, ‘type’ field.
A constraint is also established in the product so that when the ‘type’ defined in the product does not match with the ‘restricted_product_type’ defined in the product category it raises a Validation Error.
Also, in the product category one would not be able to change the field ‘restricted_product_type’ if the category has been assigned at least to one product that already has this category, but has a different ‘type’ value.
Table of contents
Usage
To use this module, you need to go to Inventory -> Configuration -> Product Categories and set a Restricted Product Type.
When a Restricted Product Type is assigned to a Product Category, if we then set a Product Type on a Product Template, the list of available Product Categories in the dropdown will be filtered with only the ones that have the same Restricted Product Type as the one set on the Product Template or have no Restricted Product Type set.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- ForgeFlow
Contributors
- Adria Gil Sorribes <adria.gil@forgeflow.com>
- Guillem Casassas guillem.casassas@forgeflow.com
Maintainers
This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
This module is part of the OCA/product-attribute project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Please log in to comment on this module