From 0f3845bee6a7dfdac381c8e096d606a6f08f28bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 13 Nov 2012 15:27:59 +0100 Subject: [PATCH] [FIX] [CLEAN] mail.js: removed references to mail.thread. There shouldnot have been any of them left... bzr revid: tde@openerp.com-20121113142759-wwhd3bssent1861a --- addons/mail/static/src/js/mail.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index f5d6941d96b..0d0cb9d0b31 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -1003,10 +1003,7 @@ openerp.mail = function (session) { init: function (parent, datasets, options) { this._super(parent, options); this.domain = options.domain || []; - this.context = _.extend({ - default_model: 'mail.thread', - default_res_id: 0, - default_parent_id: false }, options.context || {}); + this.context = _.extend(options.context || {}); this.options = options.options; this.options.root_thread = (options.options.root_thread != undefined ? options.options.root_thread : this); @@ -1031,7 +1028,7 @@ openerp.mail = function (session) { // object compose message this.compose_message = false; - this.ds_thread = new session.web.DataSetSearch(this, this.context.default_model || 'mail.thread'); + this.ds_thread = new session.web.DataSetSearch(this, this.context.default_model); this.ds_message = new session.web.DataSetSearch(this, 'mail.message'); },