Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 3 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 8 Odoo series since 11.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 3 models 2 views 0 HTTP endpoints

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
odoo/odoo:
- web
- bus
- uom
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 IDNameModelTypeStatus
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

New fields (1)
  • restricted_product_type Selection
    selection=<expr> string='Restricted Product Type '
Public methods (0)

No public methods.

New fields (1)
  • allowed_categ_ids Many2many → product.category
    compute='_compute_allowed_categ_ids' string='Allowed Categories' args: 'product.category'
Public methods (0)

No public methods.

New fields (1)
  • allowed_categ_ids Many2many → product.category
    compute='_compute_allowed_categ_ids' string='Allowed Categories' args: 'product.category'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…