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 #9

Merged
Merged
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
a1b3ae0
[ADD] mail_restrict_follower_selection
hbrunn Jul 8, 2015
4c90d72
[FIX] better default filter
hbrunn Sep 4, 2015
5fa92e5
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
b2581cf
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
8cea004
[MIG] mail_restrict_follower_selection: Migrated to 10.0
bouvyd Oct 14, 2016
51d29a0
[11.0][MIG] mail_restrict_follower_selection
phucngta Mar 6, 2018
d024946
[IMP] disable the option to create followers that do not meet the con…
etobella Apr 4, 2018
89333cb
Translated using Weblate (French) [ci skip]
didierdonze Jun 18, 2018
7c7c11e
Translated using Weblate (German)
marylla Dec 14, 2018
1ba3adc
fixes a corner case where you could send an email to a partner
JordiBForgeFlow Jan 23, 2020
dfa7eec
[12.0][MIG] mail_restrict_follower_selection
etobella Mar 4, 2020
c86c76c
[IMP] mail_restrict_follower_selection: black, isort
JoanSForgeFlow Mar 9, 2020
faece93
[MIG] mail_restrict_follower_selection : Migration to 13.0
JoanSForgeFlow Mar 10, 2020
33f1d31
[IMP] mail_restrict_follower_selection: Add condition for tests
Tardo Apr 15, 2020
cdbc844
[IMP] mail_restrict_follower_selection: Add condition for tests
Tardo Apr 16, 2020
ccb289b
Translated using Weblate (Italian)
alessandro-fiorino Dec 3, 2020
3a432ee
[IMP] pre-commit run -a
Jan 26, 2021
68b54bd
[IMP] Apply pre-commit changes: Resolve conflicts
Tardo Jan 26, 2021
013adb3
[MIG] mail_restrict_follower_selection: Migration to 14.0
olgamarcocb Dec 30, 2021
8896ab8
[FIX] mail_restrict_follower_selection: res_model not always in context
enriquemartin Jan 2, 2020
9084b1d
[IMP] mail_restrict_follower_selection: Adding tests and improving pr…
angelmoya Dec 22, 2020
9879265
[UPD] Update mail_restrict_follower_selection.pot
oca-travis May 3, 2022
c0b3c8f
[UPD] README.rst
OCA-git-bot May 3, 2022
edb4668
Update translation files
oca-transbot May 3, 2022
481aa33
Translated using Weblate (Italian)
francesco-ooops Nov 18, 2022
c2ba74d
[IMP] update dotfiles [ci skip]
OCA-git-bot Dec 11, 2022
55c9c0b
[15.0][MIG] mail_restrict_follower_selection: Migration to 15.0
AungKoKoLin1997 Sep 15, 2022
316f2a0
[MIG] mail_restrict_follower_selection: Migration to 16.0
AungKoKoLin1997 Jan 11, 2023
85869ff
[IMP] adjustments
AungKoKoLin1997 Feb 24, 2023
762f095
[UPD] Update mail_restrict_follower_selection.pot
Feb 12, 2024
8185f1f
[BOT] post-merge updates
OCA-git-bot Feb 12, 2024
eecb7a7
Update translation files
weblate Feb 12, 2024
1b9e941
Translated using Weblate (Italian)
mymage Feb 26, 2024
eb56bca
[IMP] mail_restrict_follower_selection: pre-commit auto fixes
bizzappdev Apr 15, 2024
c46da65
[MIG] mail_restrict_follower_selection: Migration to 17.0
bizzappdev May 23, 2024
f89dbf7
mail_restrict_follower_selection: improve eval
TDu Jun 21, 2024
c1e57ae
[IMP] mail_restrict_follower_selection: pre-commit auto fixes
Kimkhoi3010 Oct 8, 2024
bc04901
[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%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.
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/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,
}
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 <[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"
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 <[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"
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 <[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"
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 <[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"
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