Web Polymorphic Many2One

Technical Name:
web_polymorphic_many2one
Version:
7.0
License:
Author:
Elico Corp
  • Odoo Version

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" />