TIP: You can type at any time to perform a new search.
Web: allow import of models with '_inherits'
web_import_models_with_inherits · OCA/web
Security findings
Migration considerations
- Imports from the old `openerp.osv.orm` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/web · module folder · Try on Runboat
- Module version
- 1.0r1
- Category
- Tools
- Folder size
- 0.0 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- None
- Last tracking update
- 2026-08-07 06:51:39
- Authors
- Odoo Community Association (OCA), Therp BV
- Maintainers
- Odoo Community Association (OCA), Therp BV
- Committers
- Stefan Rijnhart, Alexandre Fayolle, Holger Brunn
- Odoo dependencies
-
odoo/odoo:- web
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- 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.
Code Analysis
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.