Product Dependencies
product_dependencies · OCA/vertical-isp
-
Security10/251 grave, 0 minor
-
Activity0/25Last human commit 101 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Security warnings
access_product_dependency— ACL grants write/create/unlink on 'model_product_dependency' to every user (portal/public included): no group is set. Verify record rules and test access as an unrelated public/portal user. acl-global-write · source
Found by automated static analysis: these patterns are usually risky, but only a manual review of the module can confirm a real issue. Methodology
Migration considerations
product_dependency— Class 'product_dependency' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (2 occurrences in this file) migration-old-api-base · sourceproduct_dependency— Class 'product_dependency' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (3 occurrences in this file) migration-old-style-fields · sourceview_product_dependencies_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Product Dependencies
Allows products to have other products/categories as dependencies.
This module is primarily used by the contract_isp_wizard module to create product/service packages based on product inter-dependencies. It's aim is to provide the basic structure so that other modules can build sales wizards with decision trees based on each product dependency tree.
This module is not related to the manufacturing process or the Bill of Materials.
Dependencies
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 |
|---|---|---|---|---|
view_product_dependencies_form |
product.dependencies.form | product.dependency | form | New |
view_product_dependencies_product_form |
product.dependencies.product.form | product.product | form | Inherits product.product_normal_form_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (3)-
onchange_category_id(self, cr, uid, ids, category_id) -
onchange_product_id(self, cr, uid, ids, product_id) -
onchange_type(self, cr, uid, ids, type_name)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…