From 22baa3253fef208b1c173c550e384aa7578c359c Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Thu, 3 Oct 2013 11:54:00 +0200 Subject: [PATCH] [FIX]mail: backport of fix 8787 from saas-1 branch, rev-id: chm@openerp.com-20131003091603-rarztafazl56ugid bzr revid: dle@openerp.com-20131003095400-wgfwaazfdfhho3vb --- addons/mail/static/src/js/mail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 2f6cfbdd708..ff85ce8e510 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -1196,7 +1196,7 @@ openerp.mail = function (session) { init: function (parent, datasets, options) { var self = this; this._super(parent, options); - this.MailWidget = parent.__proto__ == mail.Widget.prototype ? parent : false; + this.MailWidget = parent instanceof mail.Widget ? parent : false; this.domain = options.domain || []; this.context = _.extend(options.context || {});