Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] mail_restrict_follower_selection: Migration to 18.0 #1482

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e0db3e0
[ADD] mail_restrict_follower_selection
hbrunn Jul 8, 2015
e1a02d9
[FIX] better default filter
hbrunn Sep 4, 2015
4d38e69
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
758e806
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
98850fd
[MIG] mail_restrict_follower_selection: Migrated to 10.0
bouvyd Oct 14, 2016
f7d93eb
[11.0][MIG] mail_restrict_follower_selection
phucngta Mar 6, 2018
ae32a41
[IMP] disable the option to create followers that do not meet the con…
etobella Apr 4, 2018
dcbd49a
Translated using Weblate (French) [ci skip]
didierdonze Jun 18, 2018
00a97bc
Translated using Weblate (German)
marylla Dec 14, 2018
3906478
fixes a corner case where you could send an email to a partner
JordiBForgeFlow Jan 23, 2020
048050e
[12.0][MIG] mail_restrict_follower_selection
etobella Mar 4, 2020
6ef8d5c
[IMP] mail_restrict_follower_selection: black, isort
JoanSForgeFlow Mar 9, 2020
cc9ab9f
[MIG] mail_restrict_follower_selection : Migration to 13.0
JoanSForgeFlow Mar 10, 2020
15ca769
[IMP] mail_restrict_follower_selection: Add condition for tests
Tardo Apr 15, 2020
1642ca9
[IMP] mail_restrict_follower_selection: Add condition for tests
Tardo Apr 16, 2020
2d339fb
Translated using Weblate (Italian)
alessandro-fiorino Dec 3, 2020
adea4b0
[IMP] pre-commit run -a
Jan 26, 2021
0a8dfaf
[IMP] Apply pre-commit changes: Resolve conflicts
Tardo Jan 26, 2021
858f142
[MIG] mail_restrict_follower_selection: Migration to 14.0
olgamarcocb Dec 30, 2021
9a8191c
[FIX] mail_restrict_follower_selection: res_model not always in context
enriquemartin Jan 2, 2020
a20dc01
[IMP] mail_restrict_follower_selection: Adding tests and improving pr…
angelmoya Dec 22, 2020
85b288a
[UPD] Update mail_restrict_follower_selection.pot
oca-travis May 3, 2022
3ce3abb
[UPD] README.rst
OCA-git-bot May 3, 2022
2d8d528
Update translation files
oca-transbot May 3, 2022
1aa0f44
Translated using Weblate (Italian)
francesco-ooops Nov 18, 2022
5e1bc7b
[IMP] update dotfiles [ci skip]
OCA-git-bot Dec 11, 2022
d7117c9
[15.0][MIG] mail_restrict_follower_selection: Migration to 15.0
AungKoKoLin1997 Sep 15, 2022
438e6bb
[MIG] mail_restrict_follower_selection: Migration to 16.0
AungKoKoLin1997 Jan 11, 2023
12fe153
[IMP] adjustments
AungKoKoLin1997 Feb 24, 2023
68e4524
[UPD] Update mail_restrict_follower_selection.pot
Feb 12, 2024
2d9373a
[BOT] post-merge updates
OCA-git-bot Feb 12, 2024
6b6aa4a
Update translation files
weblate Feb 12, 2024
328b6e4
Translated using Weblate (Italian)
mymage Feb 26, 2024
0e2fb98
[IMP] mail_restrict_follower_selection: pre-commit auto fixes
bizzappdev Apr 15, 2024
46460f5
[MIG] mail_restrict_follower_selection: Migration to 17.0
bizzappdev May 23, 2024
2680261
mail_restrict_follower_selection: improve eval
TDu Jun 21, 2024
7d337a4
[IMP] mail_restrict_follower_selection: pre-commit auto fixes
Kimkhoi3010 Oct 8, 2024
4f40938
[MIG] mail_restrict_follower_selection: Migration to 18.0
Kimkhoi3010 Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions mail_restrict_follower_selection/README.rst
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%2Fsocial-lightgray.png?logo=github
:target: https://github.com/OCA/social/tree/18.0/mail_restrict_follower_selection
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/social-18-0/social-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/social&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/social/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/social/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 <hbrunn@therp.nl>
- Nguyen Tan Phuc <phuc.nt@komit-consulting.com>
- Enric Tobella <etobella@creublanca.es>
- `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/social <https://github.com/OCA/social/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.
6 changes: 6 additions & 0 deletions mail_restrict_follower_selection/__init__.py
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
17 changes: 17 additions & 0 deletions mail_restrict_follower_selection/__manifest__.py
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/social",
"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,
}
13 changes: 13 additions & 0 deletions mail_restrict_follower_selection/data/ir_actions.xml
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 mail_restrict_follower_selection/data/ir_config_parameter.xml
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>
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>
37 changes: 37 additions & 0 deletions mail_restrict_follower_selection/i18n/de.po
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 <maria.sparenberg@gmx.net>\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"
40 changes: 40 additions & 0 deletions mail_restrict_follower_selection/i18n/fr.po
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 <odoo@kerpeo.com>, 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 <didier.donze@camptocamp.com>\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"
40 changes: 40 additions & 0 deletions mail_restrict_follower_selection/i18n/hr.po
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 <bole@dajmi5.com>, 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 <bole@dajmi5.com>, 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"
49 changes: 49 additions & 0 deletions mail_restrict_follower_selection/i18n/it.po
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 <mariusmarolla@gmail.com>, 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 <stefano.consolaro@mymage.it>\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"
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 ""
Loading
Loading