Product Restricted Type
product_restricted_type · OCA/product-attribute
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 8 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Description
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.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_category_form_view |
product.category.form - product_restricted_type | product.category | form | Inherits product.product_category_form_view |
product_template_form_view |
product.template.product.form - product_restricted_type | product.template | form | Inherits product.product_template_form_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
-
restricted_product_typeSelectionselection=<expr>string='Restricted Product Type '
No public methods.
-
allowed_categ_idsMany2many → product.categorycompute='_compute_allowed_categ_ids'string='Allowed Categories' args: 'product.category'
No public methods.
-
allowed_categ_idsMany2many → product.categorycompute='_compute_allowed_categ_ids'string='Allowed Categories' args: 'product.category'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…