Product Multi Code
product_multi_code · OCA/product-attribute
Health
47/100
poor
-
Security25/25No findings
-
Activity12/25Last human commit 14 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
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
1 migration note
3 models
5 views
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE product_product pp SET default_code = pp.default_code` - re-check the table/column names still match after upgrading. (3 occurrences in this file) migration-raw-sql-write · 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
This module allows multiple internal references (default_code) per product.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_form_view_multi_default_code |
product.product | form | Inherits product.product_normal_form_view | |
product_search_form_view_multi_default_code |
product.product | form | Inherits product.product_search_form_view | |
product_template_form_view_multi_default_code |
product.template.form.multi.default_code | product.template | form | Inherits product.product_template_only_form_view |
product_template_search_view_multi_default_code |
product.template.search.multi.default_code | product.template | search | Inherits stock.product_template_search_form_view_stock |
product_variant_easy_edit_view_multi_default_code |
product.product | Inherits product.product_variant_easy_edit_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (4)
-
nameCharrequired=Truestring='Internal Reference' -
product_idMany2one → product.productcompute='_compute_product'ondelete='cascade'readonly=Falsestore=Truestring='Product' args: 'product.product' -
product_tmpl_idMany2one → product.templatecompute='_compute_product_tmpl'ondelete='cascade'readonly=Falsestore=True args: 'product.template' -
sequenceIntegerdefault=10
No public methods.
New fields (2)
-
default_codeCharcompute='_compute_default_code'compute_sudo=Trueinverse='_inverse_default_code'store=Truestring='Internal Reference' -
default_code_idsOne2many → product.default_codestring='Internal References' args: 'product.default_code', 'product_id'
No public methods.
New fields (1)
-
default_code_idsOne2many → product.default_codestring='Internal References' args: 'product.default_code', 'product_tmpl_id'
No public methods.