From 2cf2b9e92bf634f59eea1181f766f6d84987a044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 29 Jun 2012 10:06:07 +0200 Subject: [PATCH] [DOC] Share: added some comments. bzr revid: tde@openerp.com-20120629080607-5gyr8jsy1hb4jv15 --- addons/share/static/src/js/share.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/share/static/src/js/share.js b/addons/share/static/src/js/share.js index e88616546a3..380d2f3a8cf 100644 --- a/addons/share/static/src/js/share.js +++ b/addons/share/static/src/js/share.js @@ -68,6 +68,12 @@ openerp.share = function(session) { }, }); + /** + * Extends mail (Chatter widget) + * - show the 'invite' button' only we came on the form view through + * an action. We do this because 'invite' is based on the share + * mechanism, and it tries to share an action. + */ session.mail.RecordThread.include( { start: function() { start_res = this._super.apply(this, arguments);