[FIX] mail.js: fixed instance -> session.
bzr revid: tde@openerp.com-20120710153409-0hjtro91nycxcu4g
This commit is contained in:
parent
78ce7b2165
commit
059fc30116
|
@ -769,7 +769,7 @@ openerp.mail = function(session) {
|
|||
var self = this;
|
||||
this.reinit();
|
||||
if (! this.view.datarecord.id ||
|
||||
instance.web.BufferedDataSet.virtual_id_regex.test(this.view.datarecord.id)) {
|
||||
session.web.BufferedDataSet.virtual_id_regex.test(this.view.datarecord.id)) {
|
||||
this.$element.find('.oe_mail_thread').hide();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue