From: Thibault Delavallée Date: Thu, 18 Oct 2012 16:45:33 +0000 (+0200) Subject: [CLEAN] TopButton: removed unnecessary options in context. X-Git-Tag: 7.0-server~193^2~50^2~16 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;ds=sidebyside;h=a6a47fc94973e8c81da59bcc4641aecc3869da96;p=odoo%2Fodoo.git [CLEAN] TopButton: removed unnecessary options in context. bzr revid: tde@openerp.com-20121018164533-8np5jqw8d3gv1kf1 --- diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 4367808..e86ebc7 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); } - }); };