diff --git a/setup/stop_auto_subscribe_partners/odoo/addons/stop_auto_subscribe_partners b/setup/stop_auto_subscribe_partners/odoo/addons/stop_auto_subscribe_partners
new file mode 120000
index 000000000..3a831a166
--- /dev/null
+++ b/setup/stop_auto_subscribe_partners/odoo/addons/stop_auto_subscribe_partners
@@ -0,0 +1 @@
+../../../../stop_auto_subscribe_partners
\ No newline at end of file
diff --git a/setup/stop_auto_subscribe_partners/setup.py b/setup/stop_auto_subscribe_partners/setup.py
new file mode 100644
index 000000000..28c57bb64
--- /dev/null
+++ b/setup/stop_auto_subscribe_partners/setup.py
@@ -0,0 +1,6 @@
+import setuptools
+
+setuptools.setup(
+ setup_requires=['setuptools-odoo'],
+ odoo_addon=True,
+)
diff --git a/stop_auto_subscribe_partners/README.md b/stop_auto_subscribe_partners/README.md
new file mode 100644
index 000000000..3cc935424
--- /dev/null
+++ b/stop_auto_subscribe_partners/README.md
@@ -0,0 +1,17 @@
+# Stop Auto Subscribe Partners
+
+Stop Auto Subscribe Partners is a tool to enable/disable subscription of users and
+followers . You should fill the field under general settings to complete the
+configurations.
+
+# Features!
+
+- Stop Auto Subscribe Partners
+
+> After instllation of this module, you have to fill the details under
+
+ Settings > General Settings > Auto Emails and Auto Subscribe.
+
+### Installation
+
+After installation you can configure details under general settings.
diff --git a/stop_auto_subscribe_partners/__init__.py b/stop_auto_subscribe_partners/__init__.py
new file mode 100644
index 000000000..9186ee3ad
--- /dev/null
+++ b/stop_auto_subscribe_partners/__init__.py
@@ -0,0 +1 @@
+from . import model
diff --git a/stop_auto_subscribe_partners/__manifest__.py b/stop_auto_subscribe_partners/__manifest__.py
new file mode 100644
index 000000000..1cd3c01af
--- /dev/null
+++ b/stop_auto_subscribe_partners/__manifest__.py
@@ -0,0 +1,26 @@
+##############################################################################
+#
+#
+# Part of cube48.de.
+#
+#
+##############################################################################
+{
+ "name": "Stop Auto Subscribe Partners",
+ "summary": """
+ New partners will not become auto followers any longer.""",
+ "description": """
+ New partners will not become auto followers any longer.
+ """,
+ "author": "cube48 AG, Coop IT Easy SC",
+ "website": "https://coopiteasy.be",
+ "category": "Tools",
+ "version": "12.0.1.0.0",
+ "depends": ["base", "mail", "base_setup"],
+ "data": [
+ "views/views.xml",
+ ],
+ "images": ["static/description/banner.png"],
+ "license": "AGPL-3",
+ "installable": True,
+}
diff --git a/stop_auto_subscribe_partners/i18n/de.po b/stop_auto_subscribe_partners/i18n/de.po
new file mode 100644
index 000000000..0c01f28e4
--- /dev/null
+++ b/stop_auto_subscribe_partners/i18n/de.po
@@ -0,0 +1,36 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * stop_auto_subscribe_partners
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 8.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-07-02 10:28+0000\n"
+"PO-Revision-Date: 2016-07-02 10:28+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: stop_auto_subscribe_partners
+#: model:ir.ui.view,arch_db:stop_auto_subscribe_partners.res_config_settings_view_form
+msgid "Auto Emails and Auto Subscribe"
+msgstr "Auto-E-Mails und Auto-Abonnements"
+
+#. module: stop_auto_subscribe_partners
+#: model:ir.ui.view,arch_db:stop_auto_subscribe_partners.res_config_settings_view_form
+msgid "Stop Auto Emails and Auto Subscribe"
+msgstr "Stoppen Sie Auto-E-Mails und Auto-Abonnements"
+
+#. module: stop_auto_subscribe_partners
+#: model:ir.ui.view,arch_db:stop_auto_subscribe_partners.res_config_settings_view_form
+msgid "By default, new users will be in Auto Subscribe."
+msgstr "Standardmäßig sind neue Benutzer in Auto-Abonnements enthalten."
+
+#. module: stop_auto_subscribe_partners
+#: model:ir.ui.view,arch_db:stop_auto_subscribe_partners.res_config_settings_view_form
+msgid "Stop"
+msgstr "Halt"
diff --git a/stop_auto_subscribe_partners/model/__init__.py b/stop_auto_subscribe_partners/model/__init__.py
new file mode 100644
index 000000000..f0d1bd2e6
--- /dev/null
+++ b/stop_auto_subscribe_partners/model/__init__.py
@@ -0,0 +1,2 @@
+from . import website
+from . import mail_thread
diff --git a/stop_auto_subscribe_partners/model/mail_thread.py b/stop_auto_subscribe_partners/model/mail_thread.py
new file mode 100644
index 000000000..ebe331218
--- /dev/null
+++ b/stop_auto_subscribe_partners/model/mail_thread.py
@@ -0,0 +1,47 @@
+# Copyright 2017 Jarvis (www.odoomod.com)
+# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
+
+from distutils.util import strtobool
+
+from odoo import api, models
+
+
+class MailThread(models.AbstractModel):
+ _inherit = "mail.thread"
+
+ @api.multi
+ def message_subscribe(self, partner_ids=None, channel_ids=None, subtype_ids=None):
+ ir_config = self.env["ir.config_parameter"]
+ app_stop_subscribe = bool(
+ strtobool(ir_config.sudo().get_param("app_stop_subscribe"))
+ )
+ if app_stop_subscribe:
+ return
+ else:
+ return super(MailThread, self).message_subscribe(
+ partner_ids, channel_ids, subtype_ids
+ )
+
+ @api.multi
+ def _message_auto_subscribe(self, updated_values):
+ ir_config = self.env["ir.config_parameter"]
+ app_stop_subscribe = bool(
+ strtobool(ir_config.sudo().get_param("app_stop_subscribe"))
+ )
+ if app_stop_subscribe:
+ return
+ else:
+ return super(MailThread, self)._message_auto_subscribe(updated_values)
+
+ @api.multi
+ def _message_auto_subscribe_notify(self, partner_ids, template):
+ ir_config = self.env["ir.config_parameter"]
+ app_stop_subscribe = bool(
+ strtobool(ir_config.sudo().get_param("app_stop_subscribe"))
+ )
+ if app_stop_subscribe:
+ return
+ else:
+ return super(MailThread, self)._message_auto_subscribe_notify(
+ partner_ids, template
+ )
diff --git a/stop_auto_subscribe_partners/model/website.py b/stop_auto_subscribe_partners/model/website.py
new file mode 100644
index 000000000..4afbcadb7
--- /dev/null
+++ b/stop_auto_subscribe_partners/model/website.py
@@ -0,0 +1,29 @@
+from odoo import api, fields, models
+
+
+class WebsiteConfig(models.TransientModel):
+ _inherit = "res.config.settings"
+
+ app_stop_subscribe = fields.Boolean(
+ "Stop Odoo Subscribe(Performance Improve)",
+ help=u"Check to stop Odoo Subscribe function",
+ )
+
+ @api.model
+ def get_values(self):
+ ir_config = self.env["ir.config_parameter"]
+ app_stop_subscribe = (
+ True
+ if ir_config.sudo().get_param("app_stop_subscribe") == "True"
+ else False
+ )
+
+ return dict(
+ app_stop_subscribe=app_stop_subscribe,
+ )
+
+ def set_values(self):
+ self.ensure_one()
+ ir_config = self.env["ir.config_parameter"]
+ ir_config.set_param("app_stop_subscribe", self.app_stop_subscribe or "False")
+ return True
diff --git a/stop_auto_subscribe_partners/static/description/banner.png b/stop_auto_subscribe_partners/static/description/banner.png
new file mode 100644
index 000000000..b96e59ee0
Binary files /dev/null and b/stop_auto_subscribe_partners/static/description/banner.png differ
diff --git a/stop_auto_subscribe_partners/static/description/cube48.png b/stop_auto_subscribe_partners/static/description/cube48.png
new file mode 100644
index 000000000..a313152da
Binary files /dev/null and b/stop_auto_subscribe_partners/static/description/cube48.png differ
diff --git a/stop_auto_subscribe_partners/static/description/icon.png b/stop_auto_subscribe_partners/static/description/icon.png
new file mode 100644
index 000000000..3d5665e06
Binary files /dev/null and b/stop_auto_subscribe_partners/static/description/icon.png differ
diff --git a/stop_auto_subscribe_partners/static/description/index.html b/stop_auto_subscribe_partners/static/description/index.html
new file mode 100644
index 000000000..8a179ce57
--- /dev/null
+++ b/stop_auto_subscribe_partners/static/description/index.html
@@ -0,0 +1,23 @@
+
+
+
+
Stop Auto Subscribe Partners
+
+
With this module new partners will not become auto followers any longer. Customers or suppliers will not get unintended messages or confidential information. Never again forget to unsubscribe partners!
+
+
Works only for new partners and can of course be overwritten by the user.
+
Please note that by default this option is not set. You will find the checkbox in Settings > General Settings > Auto Emails and Auto Subscribe.