base_custom_attributes
base_custom_attributes · OCA/product-attribute
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by20/253 modules depend on it
-
Maturity25/25In 4 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
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
attribute_attribute_form_view— 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 · sourceattribute_option— Class 'attribute_option' 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. (6 occurrences in this file) migration-old-api-base · sourceattribute_option— Class 'attribute_option' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (10 occurrences in this file) migration-old-style-fields · sourceattribute_option_wizard— Migrating to 16.0: the web client no longer calls `fields_view_get`: override `_get_view` instead. migration-fields-view-get · sourceattribute_set_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (4 occurrences in this file) migration-view-tree-tag · sourceir_model_fields— Class 'ir_model_fields' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceir_model_fields— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv.orm`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (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
This module adds the possibility to easily create custom attributes in any OpenERP business object. See the product_custom_attributes module for instance.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- unidecode
- System dependencies
- None
- Required by
- partner_custom_attributes, product_custom_attributes, production_lot_custom_attributes
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 14
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
attribute_attribute_form_view |
attribute.attribute.form | attribute.attribute | form | New |
attribute_attribute_tree_view |
attribute.attribute.tree | attribute.attribute | tree | New |
attribute_group_form_view |
attribute.group.form | attribute.group | form | New |
attribute_group_tree_view |
attribute.group.tree | attribute.group | tree | New |
attribute_option_form_popup_view |
attribute.option.form.popup | attribute.option | form | New |
attribute_option_form_view |
attribute.option.form | attribute.option | form | New |
attribute_option_tree_view |
attribute.option.tree | attribute.option | tree | New |
attribute_option_wizard_form_view |
attribute.option.wizard | attribute.option.wizard | form | New |
attribute_set_form_view |
attribute.set.form | attribute.set | form | New |
attribute_set_tree_view |
attribute.set.tree | attribute.set | tree | New |
view_attribute_attribute_search |
attribute.attribute.list | attribute.attribute | search | New |
view_attribute_group_search |
attribute.group.list | attribute.group | search | New |
view_attribute_option_search |
attribute.option.list | attribute.option | search | New |
view_attribute_set_search |
attribute.set.list | attribute.set | search | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 7
No new fields.
Public methods (5)-
button_add_options(self, cr, uid, ids, context=None) -
create(self, cr, uid, vals, context=None)Create an attribute.attribute When a `field_id` is given, the attribute will be linked to the existing field. The use case is to create an attribute on a field created with Python `fields`. -
onchange_field_description(self, cr, uid, ids, field_description, name, create_date, context=None) -
onchange_name(self, cr, uid, ids, name, context=None) -
relation_model_id_change(self, cr, uid, ids, relation_model_id, option_ids, context=None)removed selected options as they would be inconsistent
No new fields.
Public methods (1)-
create(self, cr, uid, vals, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
name_change(self, cr, uid, ids, name, relation_model_id, context=None)
No new fields.
Public methods (3)-
create(self, cr, uid, vals, context=None) -
fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False) -
validate(self, cr, uid, ids, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…