Product Code Builder
product_code_builder · OCA/product-attribute
Health
45/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 99 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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.15 MB
Module directory on disk
Code analysis
7 migration notes
4 models
6 views
0 HTTP endpoints
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
ProductAttribute— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. (2 occurrences in this file) migration-sql-constraints · sourceProductProduct— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourceProductTemplate— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE product_product SET manual_default_code = default_code` - re-check the table/column names still match after upgrading. (2 occurrences in this file) migration-raw-sql-write · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (3 occurrences in this file) 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
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- product_code_builder_sequence
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
attribute_tree_view |
product.attribute | tree | Inherits product.attribute_tree_view | |
product_normal_form_view |
product.product | form | Inherits product.product_normal_form_view | |
product_template_only_form_view |
product.template | form | Inherits product.product_template_only_form_view | |
variants_tree_view |
product.attribute.value | tree | Inherits product.variants_tree_view | |
view_product_attribute_search |
product.attribute | search | New | |
view_product_attribute_value_search |
product.attribute.value | search | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (2)
-
codeCharargs: 'Code' -
sequenceIntegerargs: 'Sequence'
No public methods.
New fields (3)
-
attribute_sequenceIntegerrelated='attribute_id.sequence'store=True -
codeCharargs: 'Code' -
commentTextargs: 'Comment'
No public methods.
New fields (2)
-
default_codeCharcompute='_compute_default_code'compute_sudo=Truehelp='Reference of the variant'inverse='_inverse_default_code'store=True -
manual_default_codeCharhelp='hidden field'
No public methods.
New fields (3)
-
auto_default_codeBooleandefault=compute_default_auto_default_codehelp='Generate a reference automatically based on attribute codes'string='Automatic Reference' -
default_codeCharrelated='prefix_code' -
prefix_codeCharcopy=Falsehelp='This is the code of the product modelIf Automatic Reference is checked, this field is used as a prefix for the product variant reference.\nIn case that there is only one variant this code is the same as the code of the uniq variant'string='Internal Reference'
-
compute_default_auto_default_code(self)