-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
25 changed files
with
1,155 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
=========================== | ||
Restrict follower selection | ||
=========================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:5afe605fd4213b36044bc3ff7b459c564bbb92a3bbad79765ad83bd596d687ff | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github | ||
:target: https://github.com/OCA/mail/tree/18.0/mail_restrict_follower_selection | ||
:alt: OCA/mail | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_restrict_follower_selection | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=18.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module was written to allow you to restrict the selection of | ||
possible followers. 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. | ||
|
||
Moreover, the module disables the option to automatically add followers | ||
that do not meet the domain. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
To configure this module, you need to go to System parameters and adjust | ||
mail_restrict_follower_selection.domain as you see fit. This restricts | ||
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 | ||
mail_restrict_follower_selection.domain.$your_model. | ||
|
||
As an example, you could use [('category_id.name', '=', 'Employees')] to | ||
allow only contacts with 'Employees' tag to be added as follower - this | ||
also is the default. | ||
|
||
Note: This module won't change existing followers! | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/mail/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/mail/issues/new?body=module:%20mail_restrict_follower_selection%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
------- | ||
|
||
* Therp BV | ||
* Creu Blanca | ||
|
||
Contributors | ||
------------ | ||
|
||
- Holger Brunn <[email protected]> | ||
- Nguyen Tan Phuc <[email protected]> | ||
- Enric Tobella <[email protected]> | ||
- `Quartile <https://www.quartile.co>`__: | ||
|
||
- Aung Ko Ko Lin | ||
|
||
Maintainers | ||
----------- | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
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. | ||
|
||
This module is part of the `OCA/mail <https://github.com/OCA/mail/tree/18.0/mail_restrict_follower_selection>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (C) 2015 Therp BV <http://therp.nl> | ||
# Copyright (C) 2017 Komit <http://www.komit-consulting.com> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from . import models | ||
from . import utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (C) 2015 Therp BV <http://therp.nl> | ||
# Copyright (C) 2017 Komit <http://www.komit-consulting.com> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Restrict follower selection", | ||
"version": "18.0.1.0.0", | ||
"author": "Therp BV,Creu Blanca,Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"category": "Social Network", | ||
"website": "https://github.com/OCA/mail", | ||
"summary": "Define a domain from which followers can be selected", | ||
"depends": ["mail"], | ||
"data": ["data/ir_config_parameter.xml", "data/ir_actions.xml"], | ||
"demo": ["demo/ir_config_parameter_demo.xml"], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<record model="ir.actions.act_window" id="action_setup"> | ||
<field name="name">Configure the restriction on followers</field> | ||
<field name="res_model">ir.config_parameter</field> | ||
<field name="res_id" ref="parameter_domain" /> | ||
<field name="view_mode">form</field> | ||
</record> | ||
<record id="todo_setup" model="ir.actions.todo"> | ||
<field name="name">Configure the restriction on followers</field> | ||
<field name="action_id" ref="action_setup" /> | ||
</record> | ||
</odoo> |
7 changes: 7 additions & 0 deletions
7
mail_restrict_follower_selection/data/ir_config_parameter.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo noupdate="1"> | ||
<record forcecreate="False" id="parameter_domain" model="ir.config_parameter"> | ||
<field name="key">mail_restrict_follower_selection.domain</field> | ||
<field name="value">[('category_id.name', '=', 'Employees')]</field> | ||
</record> | ||
</odoo> |
7 changes: 7 additions & 0 deletions
7
mail_restrict_follower_selection/demo/ir_config_parameter_demo.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" ?> | ||
<odoo> | ||
<record id="parameter_res_partner_domain" model="ir.config_parameter"> | ||
<field name="key">mail_restrict_follower_selection.domain.res.partner</field> | ||
<field name="value">[(1, '=', 1)]</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * mail_restrict_follower_selection | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 11.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2018-12-15 14:58+0000\n" | ||
"Last-Translator: Maria Sparenberg <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: de\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 3.3\n" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.actions.act_window,name:mail_restrict_follower_selection.action_setup | ||
msgid "Configure the restriction on followers" | ||
msgstr "Beschränkung der Abonnenten konfigurieren" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_followers | ||
msgid "Document Followers" | ||
msgstr "Abonnenten des Dokuments" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_thread | ||
msgid "Email Thread" | ||
msgstr "" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_wizard_invite | ||
msgid "Invite wizard" | ||
msgstr "Assistent zum Einladen von Abonnenten" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * mail_restrict_follower_selection | ||
# | ||
# Translators: | ||
# Quentin THEURET <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-07-22 09:45+0000\n" | ||
"PO-Revision-Date: 2018-06-18 09:40+0000\n" | ||
"Last-Translator: c2cdidier <[email protected]>\n" | ||
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n > 1;\n" | ||
"X-Generator: Weblate 3.0.1\n" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.actions.act_window,name:mail_restrict_follower_selection.action_setup | ||
msgid "Configure the restriction on followers" | ||
msgstr "Configurer les restrictions sur les abonnés" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_followers | ||
msgid "Document Followers" | ||
msgstr "Suiveurs du document" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_thread | ||
msgid "Email Thread" | ||
msgstr "" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_wizard_invite | ||
msgid "Invite wizard" | ||
msgstr "Assistant d'invitation" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * mail_restrict_follower_selection | ||
# | ||
# Translators: | ||
# Bole <[email protected]>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-11-29 14:24+0000\n" | ||
"PO-Revision-Date: 2016-11-29 14:24+0000\n" | ||
"Last-Translator: Bole <[email protected]>, 2016\n" | ||
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" | ||
"Language: hr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" | ||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.actions.act_window,name:mail_restrict_follower_selection.action_setup | ||
msgid "Configure the restriction on followers" | ||
msgstr "Postavi ograničenja na pratitelje" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_followers | ||
msgid "Document Followers" | ||
msgstr "" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_thread | ||
msgid "Email Thread" | ||
msgstr "" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_wizard_invite | ||
msgid "Invite wizard" | ||
msgstr "Čarobnjak za pozivnce" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * mail_restrict_follower_selection | ||
# | ||
# Translators: | ||
# Marius Marolla <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-05-17 01:02+0000\n" | ||
"PO-Revision-Date: 2024-02-26 16:34+0000\n" | ||
"Last-Translator: mymage <[email protected]>\n" | ||
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" | ||
"Language: it\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.17\n" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.actions.act_window,name:mail_restrict_follower_selection.action_setup | ||
msgid "Configure the restriction on followers" | ||
msgstr "Imposta restrizioni sui follower" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_followers | ||
msgid "Document Followers" | ||
msgstr "Follower Documento" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_thread | ||
msgid "Email Thread" | ||
msgstr "Discussione e-mail" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_wizard_invite | ||
msgid "Invite wizard" | ||
msgstr "Wizard Creazione Invito" | ||
|
||
#~ msgid "Display Name" | ||
#~ msgstr "Nome da visualizzare" | ||
|
||
#~ msgid "ID" | ||
#~ msgstr "ID" | ||
|
||
#~ msgid "Last Modified on" | ||
#~ msgstr "Ultima modifica il" |
34 changes: 34 additions & 0 deletions
34
mail_restrict_follower_selection/i18n/mail_restrict_follower_selection.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * mail_restrict_follower_selection | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \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: mail_restrict_follower_selection | ||
#: model:ir.actions.act_window,name:mail_restrict_follower_selection.action_setup | ||
msgid "Configure the restriction on followers" | ||
msgstr "" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_followers | ||
msgid "Document Followers" | ||
msgstr "" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_thread | ||
msgid "Email Thread" | ||
msgstr "" | ||
|
||
#. module: mail_restrict_follower_selection | ||
#: model:ir.model,name:mail_restrict_follower_selection.model_mail_wizard_invite | ||
msgid "Invite wizard" | ||
msgstr "" |
Oops, something went wrong.