From a6a47fc94973e8c81da59bcc4641aecc3869da96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 18 Oct 2012 18:45:33 +0200 Subject: [PATCH] [CLEAN] TopButton: removed unnecessary options in context. bzr revid: tde@openerp.com-20121018164533-8np5jqw8d3gv1kf1 --- addons/mail/static/src/js/mail.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 4367808836c..e86ebc758f0 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -1379,10 +1379,9 @@ openerp.mail = function(session) { * UserMenu * ------------------------------------------------------------ * - * add a link on the top user bar for write a full mail + * Add a link on the top user bar for write a full mail */ session.web.ComposeMessageTopButton = session.web.Widget.extend({ - template:'mail.compose_message.button_top_bar', init: function (parent, options) { @@ -1390,14 +1389,9 @@ openerp.mail = function(session) { this.options = this.options || {}; this.options.domain = this.options.domain || []; this.options.context = { - 'default_res_id': 0, - 'default_model': 'mail.thread', - 'default_is_private': true, - 'default_res_model': false, + 'default_model': false, 'default_res_id': 0, 'default_content_subtype': 'html', - 'default_is_private': true, - 'default_parent_id': 0 }; }, @@ -1430,7 +1424,6 @@ openerp.mail = function(session) { render.insertAfter(this.$el); this._super(parent, params); } - }); };