Search 1.9 billion lines of Odoo code on GitHub

mail_restrict_auto_follower

Author: Serv. Tecnol. Avanzados - Pedro M. Baezza,Odoo Community Association (OCA)
License: AGPL-3
Branch: 8.0
Repository: aurestic/social
Dependencies: mail
Languages: Python (98, 55.4%), XML (26, 14.7%), and reStructuredText (53, 29.9%)
Other branches: 8.0-mail_restrict_auto_follower
Other repositories: diagramsoftware/social, and pedrobaeza/social

<a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg"> </a> <a name="restrict-automatic-follower-subscription"></a> <h2>Restrict automatic follower subscription</h2> <p>This module restricts the followers that are added automatically to a record. For example, if you use the social ERP functions only internally, it makes sense to filter possible followers for being employees. Otherwise, you'll get a quite crowded list of partners to choose from.</p> <a name="configuration"></a> <h3>Configuration</h3> <p>To configure this module, you need to go to <cite>System parameters</cite> and adjust <cite>mail_restrict_auto_follower.domain</cite> with the domain to apply to the partners involved.</p> <p>This will restrict followers globally. If you want to restrict only the followers for a certain record type (or have different restrictions for different record types), create a parameter <cite>mail_restrict_auto_follower.domain.$your_model</cite>.</p> <p>As an example, you may use <cite>[('user_ids', '!=', False)]</cite> to allow only partners that are also users to be added automatically as followers. This is also the default.</p> <p>Note: This module won't change existing followers!</p> <a name="usage"></a> <h3>Usage</h3> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/205/8.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/social/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback <a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mail_restrict_automatic_follower%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">here</a>.</p> <a name="known-issues-roadmap"></a> <h3>Known issues / Roadmap</h3> <ul class="simple"> <li>Due to a problem in current API with inheritance, maybe some models ignore the restriction. In that cases, a glue module depending on this one is needed that redeclares the model this way:</li> </ul> <pre> <code lang="python">class Model(models.Model): _name = 'model' _inherit = ['mail.thread', 'model']</code> </pre> <ul class="simple"> <li>For v9, this should be merged with <cite>mail_restrict_follower_selection</cite> module to have one module for both things that can be called <cite>mail_restrict_follower</cite>.</li> </ul> <a name="credits"></a> <h3>Credits</h3> <p>This module has been inspired on <cite>mail_restrict_follower_selection</cite> module by Holger Brunn.</p> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Pedro M. Baeza &lt;<a class="reference external" href="mailto:pedro.baeza&#64;serviciosbaeza.com">pedro.baeza&#64;serviciosbaeza.com</a>&gt;</li> </ul> <a name="maintainer"></a> <h4>Maintainer</h4> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>This module is maintained by the OCA.</p> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>To contribute to this module, please visit <a class="reference external" href="http://odoo-community.org">http://odoo-community.org</a>.</p>