diff --git a/muk_web_share/__manifest__.py b/muk_web_share/__manifest__.py index 00e66bd..b2313f4 100644 --- a/muk_web_share/__manifest__.py +++ b/muk_web_share/__manifest__.py @@ -28,7 +28,7 @@ can be shared with another user. On mobile devices, the link of the form can be posted to Whatsapp. """, - "version": "11.0.1.0.3", + "version": "11.0.1.0.4", "category": "Extra Tools", "license": "AGPL-3", "website": "http://www.mukit.at", diff --git a/muk_web_share/static/src/js/share_button.js b/muk_web_share/static/src/js/share_button.js index 33a396c..e56dcc8 100644 --- a/muk_web_share/static/src/js/share_button.js +++ b/muk_web_share/static/src/js/share_button.js @@ -44,7 +44,9 @@ FormRenderer.include({ var self = this; var _super = this._super.apply(this, arguments); _super.then(function() { - self._renderShareButton(); + if(self.mode === 'readonly') { + self._renderShareButton(); + } }); return _super; },