[FIX] fix typo

bzr revid: benoit.guillot@akretion.com.br-20120711090027-iq2cmu2tae7e62m7
This commit is contained in:
Benoit Guillot 2012-07-11 11:00:27 +02:00
parent 65cde7728e
commit 5b280dded9
1 changed files with 5 additions and 6 deletions

View File

@ -540,12 +540,11 @@ openerp.mail = function(session) {
this._super.apply(this, arguments);
var self = this;
this.reinit();
if (! this.view.datarecord.id) { this.$element.find('.oe_mail_thread').hide(); return; }
// if (! this.view.datarecord.id ||
// instance.web.BufferedDataSet.virtual_id_regex.test(this.view.datarecord.id)) {
// this.$element.find('.oe_mail_thread').hide();
// return;
// }
if (! this.view.datarecord.id ||
session.web.BufferedDataSet.virtual_id_regex.test(this.view.datarecord.id)) {
this.$element.find('.oe_mail_thread').hide();
return;
}
// fetch followers
var fetch_sub_done = this.fetch_subscribers();
// create and render Thread widget