Product Restricted Type
Project description
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_product_restricted_type-17.0.1.0.0.2-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_product_restricted_type-17.0.1.0.0.2-py3-none-any.whl
- Upload date:
- Size: 30.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b773f0563312fbd4594a218b6c61b352b341ef06dcd19206f9d282735ddf10c
|
|
| MD5 |
f0883cb32fce2c6114cd26b41590a9f5
|
|
| BLAKE2b-256 |
bac1b0f7a1424112c76b46d492345f829c7008181e068eca86cd67612910bdc8
|