Repository
OCA/web · module folder · Try on Runboat
Module version
0.2
Category
Web
Folder size
0.01 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://www.elico-corp.com
Last tracking update
2026-08-07 07:17:43
Authors
Odoo Community Association (OCA), Elico Corp
Maintainers
Odoo Community Association (OCA), Elico Corp
Committers
Pedro M. Baeza
Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None
Description
Add a new widget named "polymorphic"
The polymorphic field allow to dynamically store an id linked to any model in
OpenERP instead of the usual fixed one in the view definition


Python fields declaration:

    'model': fields.many2one('ir.model', string='Model'),
    'object_id': fields.integer("Resource")

XML fields declaration:

    <field name="model" invisible="1" />
    <field name="object_id" widget="polymorphic" polymorphic="model" />

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.

Loading…

Loading…

Loading…