Skip to content

Commit

Permalink
[FIX] fix a bug in trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
bguillot committed Jul 10, 2012
1 parent 9c3eefe commit 40647cd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions addons/mail/static/src/js/mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,12 @@ openerp.mail = function(session) {
this._super.apply(this, arguments);
var self = this;
this.reinit();
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) { 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;
// }
// fetch followers
var fetch_sub_done = this.fetch_subscribers();
// create and render Thread widget
Expand Down

0 comments on commit 40647cd

Please sign in to comment.