Web: allow import of models with '_inherits'
web_import_models_with_inherits · OCA/web
-
Security25/25No findings
-
Activity0/25Last human commit 141 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 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
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv.orm`) 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
When a model has its '_inherits' defined, the associated fields are always set to 'required'. These models cannot be imported in the web client 6.1 because the web client insists that these fields be present in the import file. See https://bugs.launchpad.net/bugs/930318.
This module makes the web client query the content of a model's '_inherits' so that it can exclude them from the required fields at import time.
Due to the applied method of 'monkey patching', the installation of this module on one database will affect all databases on the same OpenERP installation.
This bug does not affect OpenERP 7.0, in which the import function has been refactored.
Dependencies
- Odoo dependencies
-
odoo/odoo:- web
- 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 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 0
No models found for this module.