diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-11-13 15:27:59 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-11-13 15:27:59 +0100 |
| commit | 0f3845bee6a7dfdac381c8e096d606a6f08f28bf (patch) | |
| tree | 0f7c3698104e48a0a5f7f404d7f1078356420953 | |
| parent | 99354ab5582d39a4ec6e8b58e35bc81417f60eff (diff) | |
[FIX] [CLEAN] mail.js: removed references to mail.thread. There shouldnot have been any of them left...
bzr revid: tde@openerp.com-20121113142759-wwhd3bssent1861a
| -rw-r--r-- | addons/mail/static/src/js/mail.js | 7 |
1 files 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'); }, |
