Web Polymorphic Many2One

Technical Name:
web_polymorphic_many2one
Version:
7.0
License:
Author:
Elico Corp
https://odoo-community.org/web/image/product.template/4400/image_1920?unique=9c357fb
  • Odoo Version

Terms and Conditions 

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

This is a preview of the recently viewed products by the user.
Once the user has seen at least one product this snippet will be visible.

Recently viewed Products