Metadata-Version: 2.1
Name: odoo-addon-helpdesk-restrict-followers
Version: 16.0.1.0.0.1
Summary: Restrict adding followers to only partners with an internal user associated.
Home-page: https://gitlab.com/somitcoop/erp-research/odoo-helpdesk
Author: Som It Cooperatiu SCCL, Som Connexió SCCL, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
License: AGPL-3
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 16.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Requires-Python: >=3.10

#############################
 Helpdesk Restrict Followers
#############################

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
   :alt: Beta
   :target: https://odoo-community.org/page/development-status

.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
   :alt: License: AGPL-3
   :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html

|badge1| |badge2|

This module restricts the ability to add followers to helpdesk tickets
to only partners that have an associated internal user. Partners without
a linked user account or with only portal/customer access will be
automatically filtered out when attempting to subscribe them as
followers.

This ensures that only internal users can be added as followers to
helpdesk tickets, maintaining proper access control and notification
management.

**Key Features:**

-  **Programmatic Restriction**: Overrides `message_subscribe` method to
   filter partners
-  **UI Domain Restriction**: Applies domain filters in
   mail.wizard.invite for helpdesk tickets
-  **Internal Users Only**: Only allows partners with active, non-share
   users
-  **Transparent Filtering**: Silently filters invalid partners without
   errors

**Table of contents**

.. contents::
   :local:

***************
 Configuration
***************

No configuration needed for this module.

*******
 Usage
*******

Once installed, the module automatically filters out partners when
adding followers to helpdesk tickets:

-  **Programmatic API**: Only partners with associated internal users
   can be added as followers
-  **User Interface**: The mail wizard invite dialog shows only valid
   partners for helpdesk tickets
-  **Filtering Logic**: Portal users and partners without user accounts
   are automatically excluded
-  **Cross-Method Coverage**: The filtering is applied both through the
   UI and programmatically

The module works transparently - invalid partners are silently filtered
without raising errors, providing a smooth user experience.

*************
 Bug Tracker
*************

Bugs are tracked on `GitLab Issues
<https://gitlab.com/somitcoop/erp-research/odoo-helpdesk/-/issues>`_. 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.

Do not contact contributors directly about support or help with
technical issues.

*********
 Credits
*********

Authors
=======

-  SomIT SCCL
-  Som Connexio SCCL

Contributors
============

-  `SomIT SCCL <https://somit.coop>`_:

      -  Juan Manuel Regalado <juanmanuel.regalado@somit.coop>

-  `Som Connexio SCCL <https://somconnexio.coop>`_:

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.

You are welcome to contribute. To learn how please visit
https://odoo-community.org/page/Contribute.
