Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
132 changes: 132 additions & 0 deletions mute_notification_user_autosubscribe/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

====================================
Mute Notification User Autosubscribe
====================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7fd69709f8165af1b208813a1d6b358d2829c695b43a94f20ead96158724c68e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/license-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/19.0/mute_notification_user_autosubscribe
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/social-19-0/social-19-0-mute_notification_user_autosubscribe
: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=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to select users and/or groups whose members do not
have to be sent notifications through the chatter. The models in which
these rules have to be applied can also be selected.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module you need to:

- Go to Settings > Technical > Auto Subscribe Mute
- Create a new instance or edit an exiting one. The following fields
are available:

- **Name**. The name of the rule.
- **Model**. Model in which the rule is applied. Only models with a
user_id field can be selected.
- **Users**. List of users which the rule will be applied to. The
users in this field will be autosubscribed to the document when
they are set in the user_id field but only with the "Muted"
subtype, which notifies nothing. Note that this rule will not be
applied when the user in the list set itself in the user_id field,
as the subscription in this case depends on the creation of the
document, not the autosubscription.
- **Groups**. List of groups which the rule will be applied to. The
users that belong to the groups in this field will be
autosubscribed to the document when they are set in the user_id
field but only with the "Muted" subtype, which notifies nothing.
Note that this rule will not be applied when a user in any of the
groups in the list set itself in the user_id field, as the
subscription in this case depends on the creation of the document,
not the autosubscription.
- **Notes**. Text field.

Usage
=====

In case a user that has been automatically applied the "Mute" message
subtype in a subscription through one of the rules provided in this
module needs to be sent notifications in a specific document, just edit
the subscription and select the subtypes for which the user has to be
sent notifications.

Known issues / Roadmap
======================

- If a and "Auto Subscribe Mute" rule is modified, created or deleted,
changes will not affect existing documents, so their users subtypes
will keep the current configuration.

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:%20mute_notification_user_autosubscribe%0Aversion:%2019.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
-------

* Sygel

Contributors
------------

- Manuel Regidor <manuel.regidor@sygel.es>
- Valentín Vinagre <valentin.vinagre@sygel.es>
- Harald Panten <harald.panten@sygel.es>
- ``Studio73 <https://www.studio73.es>``\ \_\_:

- Pablo Cortés

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/19.0/mute_notification_user_autosubscribe>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions mute_notification_user_autosubscribe/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2024 Manuel Regidor <manuel.regidor@sygel.es>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
21 changes: 21 additions & 0 deletions mute_notification_user_autosubscribe/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2024 Manuel Regidor <manuel.regidor@sygel.es>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Mute Notification User Autosubscribe",
"summary": "Do not send notifications to users autosubcribed through user_id field",
"version": "19.0.1.0.0",
"category": "Social",
"website": "https://github.com/OCA/social",
"author": "Sygel,Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"depends": [
"mail",
],
"data": [
"data/mail_message_subtype_data.xml",
"security/ir.model.access.csv",
"views/user_autosubscribe_mute_views.xml",
],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="muted" model="mail.message.subtype">
<field name="name">Mute</field>
<field name="default" eval="False" />
<field name="sequence">999</field>
</record>
</odoo>
115 changes: 115 additions & 0 deletions mute_notification_user_autosubscribe/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mute_notification_user_autosubscribe
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-10-29 12:06+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\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 5.6.2\n"

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__active
msgid "Active"
msgstr "Attiva"

#. module: mute_notification_user_autosubscribe
#: model_terms:ir.ui.view,arch_db:mute_notification_user_autosubscribe.user_autosubscribe_mute_form_view
msgid "Archived"
msgstr "In archivio"

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__create_uid
msgid "Created by"
msgstr "Creato da"

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__create_date
msgid "Created on"
msgstr "Creato il"

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: mute_notification_user_autosubscribe
#: model:ir.model,name:mute_notification_user_autosubscribe.model_mail_thread
msgid "Email Thread"
msgstr "Discussione e-mail"

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__group_ids
msgid "Groups"
msgstr "Gruppi"

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__id
msgid "ID"
msgstr "ID"

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__write_uid
msgid "Last Updated by"
msgstr "Ultimo aggiornamento di"

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__write_date
msgid "Last Updated on"
msgstr "Ultimo aggiornamento il"

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__model_id
msgid "Model"
msgstr "Modello"

#. module: mute_notification_user_autosubscribe
#. odoo-python
#: code:addons/mute_notification_user_autosubscribe/models/user_autosubscribe_mute.py:0
#: model:ir.model.constraint,message:mute_notification_user_autosubscribe.constraint_user_autosubscribe_mute_unique_model_id
#, python-format
msgid "Model must be unique in User Autosubscribe Mute instances."
msgstr ""
"Il modello deve essere univoco nelle istanze auto iscrizione silenziosa "
"utente."

#. module: mute_notification_user_autosubscribe
#: model:mail.message.subtype,name:mute_notification_user_autosubscribe.muted
msgid "Mute"
msgstr "Silenzia"

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__name
msgid "Name"
msgstr "Nome"

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__notes
msgid "Notes"
msgstr "Note"

#. module: mute_notification_user_autosubscribe
#: model:ir.model,name:mute_notification_user_autosubscribe.model_res_users
msgid "User"
msgstr "Utente"

#. module: mute_notification_user_autosubscribe
#: model:ir.actions.act_window,name:mute_notification_user_autosubscribe.user_autosubscribe_mute_action
#: model:ir.model,name:mute_notification_user_autosubscribe.model_user_autosubscribe_mute
#: model:ir.ui.menu,name:mute_notification_user_autosubscribe.menu_user_autosubscribe_mute
#: model_terms:ir.ui.view,arch_db:mute_notification_user_autosubscribe.user_autosubscribe_mute_form_view
msgid "User Autosubscribe Mute"
msgstr "Auto iscrizione silenziosa utente"

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__user_ids
msgid "Users"
msgstr "Utenti"
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mute_notification_user_autosubscribe
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.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: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__active
msgid "Active"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model_terms:ir.ui.view,arch_db:mute_notification_user_autosubscribe.user_autosubscribe_mute_form_view
msgid "Archived"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__create_uid
msgid "Created by"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__create_date
msgid "Created on"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__display_name
msgid "Display Name"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model,name:mute_notification_user_autosubscribe.model_mail_thread
msgid "Email Thread"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__group_ids
msgid "Groups"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__id
msgid "ID"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__write_uid
msgid "Last Updated by"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__write_date
msgid "Last Updated on"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__model_id
msgid "Model"
msgstr ""

#. module: mute_notification_user_autosubscribe
#. odoo-python
#: code:addons/mute_notification_user_autosubscribe/models/user_autosubscribe_mute.py:0
#: model:ir.model.constraint,message:mute_notification_user_autosubscribe.constraint_user_autosubscribe_mute_unique_model_id
#, python-format
msgid "Model must be unique in User Autosubscribe Mute instances."
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:mail.message.subtype,name:mute_notification_user_autosubscribe.muted
msgid "Mute"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__name
msgid "Name"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__notes
msgid "Notes"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model,name:mute_notification_user_autosubscribe.model_res_users
msgid "User"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.actions.act_window,name:mute_notification_user_autosubscribe.user_autosubscribe_mute_action
#: model:ir.model,name:mute_notification_user_autosubscribe.model_user_autosubscribe_mute
#: model:ir.ui.menu,name:mute_notification_user_autosubscribe.menu_user_autosubscribe_mute
#: model_terms:ir.ui.view,arch_db:mute_notification_user_autosubscribe.user_autosubscribe_mute_form_view
msgid "User Autosubscribe Mute"
msgstr ""

#. module: mute_notification_user_autosubscribe
#: model:ir.model.fields,field_description:mute_notification_user_autosubscribe.field_user_autosubscribe_mute__user_ids
msgid "Users"
msgstr ""
Loading
Loading