Skip to main content
Odoo Community Association

Product Restricted Type

Beta License: AGPL-3 OCA/product-attribute Translate me on Weblate Try me on Runboat

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

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

Release files for odoo-addon-product-restricted-type 18.0.1.0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-product-restricted-type 18.0.1.0.0.2
File Interpreter ABI Platform
odoo_addon_product_restricted_type-18.0.1.0.0.2-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_product_restricted_type-18.0.1.0.0.2-py3-none-any.whl

Download URL odoo_addon_product_restricted_type-18.0.1.0.0.2-py3-none-any.whl
Size 30.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36680f11fbab61c649dfe5fa00d714b1ebe44287d34fdbc70d830bef002db021
BLAKE2b-256 checksum
How to use checksums
746c47b93d48fc8bc5d487cf7a44d335d7d8a1e3ac35a2afaf86af399837ccce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page