Skip to main content

Product Restricted Type

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_product_restricted_type-17.0.1.0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_product_restricted_type-17.0.1.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7b773f0563312fbd4594a218b6c61b352b341ef06dcd19206f9d282735ddf10c
MD5 f0883cb32fce2c6114cd26b41590a9f5
BLAKE2b-256 bac1b0f7a1424112c76b46d492345f829c7008181e068eca86cd67612910bdc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page