[FIX]mail: backport of fix 8787 from saas-1 branch, rev-id: chm@openerp.com-20131003091603-rarztafazl56ugid

bzr revid: dle@openerp.com-20131003095400-wgfwaazfdfhho3vb
This commit is contained in:
Denis Ledoux 2013-10-03 11:54:00 +02:00
parent b53d5c32ac
commit 22baa3253f
1 changed files with 1 additions and 1 deletions

View File

@ -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 || {});