From 2727723c1c84b724e4c53012f618ee55e609a92a Mon Sep 17 00:00:00 2001
From: bobrador
Date: Fri, 26 Jul 2024 10:00:41 +0200
Subject: [PATCH 01/12] [ADD][16.0] helpdesk_mgmt_portal_follower: New module
---
helpdesk_mgmt_portal_follower/README.rst | 118 +++++
helpdesk_mgmt_portal_follower/__init__.py | 1 +
helpdesk_mgmt_portal_follower/__manifest__.py | 16 +
.../controllers/__init__.py | 1 +
.../controllers/main.py | 34 ++
helpdesk_mgmt_portal_follower/i18n/es.po | 27 +
.../i18n/helpdesk_mgmt_portal_follower.pot | 24 +
.../readme/CONTRIBUTORS.md | 4 +
.../readme/DESCRIPTION.md | 1 +
.../readme/ROADMAP.md | 13 +
helpdesk_mgmt_portal_follower/readme/USAGE.md | 1 +
.../static/description/icon.png | Bin 0 -> 7135 bytes
.../static/description/index.html | 471 ++++++++++++++++++
.../tests/__init__.py | 1 +
.../tests/test_ticket_followers.py | 74 +++
.../views/helpdesk_templates.xml | 27 +
16 files changed, 813 insertions(+)
create mode 100644 helpdesk_mgmt_portal_follower/README.rst
create mode 100644 helpdesk_mgmt_portal_follower/__init__.py
create mode 100644 helpdesk_mgmt_portal_follower/__manifest__.py
create mode 100644 helpdesk_mgmt_portal_follower/controllers/__init__.py
create mode 100644 helpdesk_mgmt_portal_follower/controllers/main.py
create mode 100644 helpdesk_mgmt_portal_follower/i18n/es.po
create mode 100644 helpdesk_mgmt_portal_follower/i18n/helpdesk_mgmt_portal_follower.pot
create mode 100644 helpdesk_mgmt_portal_follower/readme/CONTRIBUTORS.md
create mode 100644 helpdesk_mgmt_portal_follower/readme/DESCRIPTION.md
create mode 100644 helpdesk_mgmt_portal_follower/readme/ROADMAP.md
create mode 100644 helpdesk_mgmt_portal_follower/readme/USAGE.md
create mode 100644 helpdesk_mgmt_portal_follower/static/description/icon.png
create mode 100644 helpdesk_mgmt_portal_follower/static/description/index.html
create mode 100644 helpdesk_mgmt_portal_follower/tests/__init__.py
create mode 100644 helpdesk_mgmt_portal_follower/tests/test_ticket_followers.py
create mode 100644 helpdesk_mgmt_portal_follower/views/helpdesk_templates.xml
diff --git a/helpdesk_mgmt_portal_follower/README.rst b/helpdesk_mgmt_portal_follower/README.rst
new file mode 100644
index 0000000000..f3b7d01721
--- /dev/null
+++ b/helpdesk_mgmt_portal_follower/README.rst
@@ -0,0 +1,118 @@
+===============
+Portal Follower
+===============
+
+..
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! This file is generated by oca-gen-addon-readme !!
+ !! changes will be overwritten. !!
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! source digest: sha256:9973e1cdb4ecef94090632e007c75c53ed15fd2c505ed39b4b9ea3a4ae5a7e66
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+.. |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%2Fhelpdesk-lightgray.png?logo=github
+ :target: https://github.com/OCA/helpdesk/tree/16.0/helpdesk_mgmt_portal_follower
+ :alt: OCA/helpdesk
+.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
+ :target: https://translation.odoo-community.org/projects/helpdesk-16-0/helpdesk-16-0-helpdesk_mgmt_portal_follower
+ :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/helpdesk&target_branch=16.0
+ :alt: Try me on Runboat
+
+|badge1| |badge2| |badge3| |badge4| |badge5|
+
+This module adds the posibilty to add followers to a helpdesk ticket
+from the helpdesk form at the website portal.
+
+**Table of contents**
+
+.. contents::
+ :local:
+
+Usage
+=====
+
+To make it work you just need to add the emails of the wanted followers
+to the ``Emails in Copy`` input splitted by comas.
+
+Known issues / Roadmap
+======================
+
+Known Caveats
+-------------
+
+1. **Spam Risks**:
+
+ - Allowing users to input any email address could lead to spam if
+ unintended recipients are included.
+
+2. **Privacy Concerns**:
+
+ - Users may inadvertently share sensitive information by adding
+ followers without the consent of the email address owners.
+ - This feature could expose email addresses to individuals who
+ should not have access to that information.
+
+3. **User Misunderstanding**:
+
+ - End-users may not fully understand the implications of adding
+ multiple email addresses, potentially leading to confusion or
+ misuse.
+
+If you plan to use this module, it is essential to inform users about
+the importance of carefully selecting followers to add. This process
+will help maintain privacy and limit unnecessary notifications.
+
+Bug Tracker
+===========
+
+Bugs are tracked on `GitHub 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 `_.
+
+Do not contact contributors directly about support or help with technical issues.
+
+Credits
+=======
+
+Authors
+-------
+
+* Advanced Programming Solutions S.L. - APSL - Nagarro
+* Bernat Obrador
+* Patryk Pyczko
+* Miquel Pascual
+
+Contributors
+------------
+
+- `APSL-Nagarro `__:
+
+ - Patryk Pyczko ppyczko@apsl.net
+ - Bernat Obrador bobrador@apsl.net
+ - Miquel Pascual mpascual@apsl.net
+
+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/helpdesk `_ project on GitHub.
+
+You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/helpdesk_mgmt_portal_follower/__init__.py b/helpdesk_mgmt_portal_follower/__init__.py
new file mode 100644
index 0000000000..e046e49fbe
--- /dev/null
+++ b/helpdesk_mgmt_portal_follower/__init__.py
@@ -0,0 +1 @@
+from . import controllers
diff --git a/helpdesk_mgmt_portal_follower/__manifest__.py b/helpdesk_mgmt_portal_follower/__manifest__.py
new file mode 100644
index 0000000000..6a2fa9b6ba
--- /dev/null
+++ b/helpdesk_mgmt_portal_follower/__manifest__.py
@@ -0,0 +1,16 @@
+{
+ "name": "Portal Follower",
+ "summary": "Add ticket followers from website portal",
+ "author": (
+ "Advanced Programming Solutions S.L. - APSL - Nagarro, "
+ "Bernat Obrador, Patryk Pyczko, Miquel Pascual, Odoo Community Association (OCA)"
+ ),
+ "license": "AGPL-3",
+ "mantainers": ["BernatObrador", "ppyczko", "mpascuall"],
+ "website": "https://github.com/OCA/helpdesk",
+ "category": "Helpdesk",
+ "version": "16.0.1.0.0",
+ "depends": ["helpdesk_mgmt"],
+ "data": ["views/helpdesk_templates.xml"],
+ "installable": True,
+}
diff --git a/helpdesk_mgmt_portal_follower/controllers/__init__.py b/helpdesk_mgmt_portal_follower/controllers/__init__.py
new file mode 100644
index 0000000000..12a7e529b6
--- /dev/null
+++ b/helpdesk_mgmt_portal_follower/controllers/__init__.py
@@ -0,0 +1 @@
+from . import main
diff --git a/helpdesk_mgmt_portal_follower/controllers/main.py b/helpdesk_mgmt_portal_follower/controllers/main.py
new file mode 100644
index 0000000000..bbee7484aa
--- /dev/null
+++ b/helpdesk_mgmt_portal_follower/controllers/main.py
@@ -0,0 +1,34 @@
+import odoo.http as http
+from odoo.http import request
+
+from odoo.addons.helpdesk_mgmt.controllers.main import HelpdeskTicketController
+
+
+class HelpdeskTicketController(HelpdeskTicketController):
+ @http.route("/submitted/ticket", type="http", auth="user", website=True, csrf=True)
+ def submit_ticket(self, **kw):
+ res = super(HelpdeskTicketController, self).submit_ticket(**kw)
+ ticket_id = res.location.split("/")[-1]
+ new_ticket = request.env["helpdesk.ticket"].browse(int(ticket_id))
+ if kw.get("followers"):
+ emails = [
+ email.strip()
+ for email in kw.get("followers").split(",")
+ if email.strip()
+ ]
+ partner_ids = []
+
+ for email in emails:
+ partner = request.env["res.partner"].search([("email", "=", email)])
+ if not partner:
+ reg = {
+ "name": email,
+ "email": email,
+ "type": "contact",
+ }
+ partner = request.env["res.partner"].sudo().create(reg)
+
+ partner_ids.append(partner.id)
+
+ new_ticket.sudo().message_subscribe(partner_ids=partner_ids)
+ return res
diff --git a/helpdesk_mgmt_portal_follower/i18n/es.po b/helpdesk_mgmt_portal_follower/i18n/es.po
new file mode 100644
index 0000000000..ac0d83462f
--- /dev/null
+++ b/helpdesk_mgmt_portal_follower/i18n/es.po
@@ -0,0 +1,27 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * helpdesk_mgmt_portal_follower
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 16.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-10-31 11:46+0000\n"
+"PO-Revision-Date: 2024-10-31 11:46+0000\n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: helpdesk_mgmt_portal_follower
+#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_portal_follower.helpdesk_portal_add_followers
+msgid "Emails in Copy"
+msgstr "Correos en Copia"
+
+#. module: helpdesk_mgmt_portal_follower
+#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_portal_follower.helpdesk_portal_add_followers
+msgid "example@example.com, ..."
+msgstr ""
diff --git a/helpdesk_mgmt_portal_follower/i18n/helpdesk_mgmt_portal_follower.pot b/helpdesk_mgmt_portal_follower/i18n/helpdesk_mgmt_portal_follower.pot
new file mode 100644
index 0000000000..f9311ce5c4
--- /dev/null
+++ b/helpdesk_mgmt_portal_follower/i18n/helpdesk_mgmt_portal_follower.pot
@@ -0,0 +1,24 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * helpdesk_mgmt_portal_follower
+#
+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: helpdesk_mgmt_portal_follower
+#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_portal_follower.helpdesk_portal_add_followers
+msgid "Emails in Copy"
+msgstr ""
+
+#. module: helpdesk_mgmt_portal_follower
+#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_portal_follower.helpdesk_portal_add_followers
+msgid "example@example.com, ..."
+msgstr ""
diff --git a/helpdesk_mgmt_portal_follower/readme/CONTRIBUTORS.md b/helpdesk_mgmt_portal_follower/readme/CONTRIBUTORS.md
new file mode 100644
index 0000000000..d4683f9119
--- /dev/null
+++ b/helpdesk_mgmt_portal_follower/readme/CONTRIBUTORS.md
@@ -0,0 +1,4 @@
+- [APSL-Nagarro]():
+ - Patryk Pyczko
+ - Bernat Obrador
+ - Miquel Pascual
diff --git a/helpdesk_mgmt_portal_follower/readme/DESCRIPTION.md b/helpdesk_mgmt_portal_follower/readme/DESCRIPTION.md
new file mode 100644
index 0000000000..8f5a798e23
--- /dev/null
+++ b/helpdesk_mgmt_portal_follower/readme/DESCRIPTION.md
@@ -0,0 +1 @@
+This module adds the posibilty to add followers to a helpdesk ticket from the helpdesk form at the website portal.
\ No newline at end of file
diff --git a/helpdesk_mgmt_portal_follower/readme/ROADMAP.md b/helpdesk_mgmt_portal_follower/readme/ROADMAP.md
new file mode 100644
index 0000000000..954c52fd90
--- /dev/null
+++ b/helpdesk_mgmt_portal_follower/readme/ROADMAP.md
@@ -0,0 +1,13 @@
+## Known Caveats
+
+1. **Spam Risks**:
+ - Allowing users to input any email address could lead to spam if unintended recipients are included.
+
+2. **Privacy Concerns**:
+ - Users may inadvertently share sensitive information by adding followers without the consent of the email address owners.
+ - This feature could expose email addresses to individuals who should not have access to that information.
+
+3. **User Misunderstanding**:
+ - End-users may not fully understand the implications of adding multiple email addresses, potentially leading to confusion or misuse.
+
+If you plan to use this module, it is essential to inform users about the importance of carefully selecting followers to add. This process will help maintain privacy and limit unnecessary notifications.
diff --git a/helpdesk_mgmt_portal_follower/readme/USAGE.md b/helpdesk_mgmt_portal_follower/readme/USAGE.md
new file mode 100644
index 0000000000..9f1b0a8c59
--- /dev/null
+++ b/helpdesk_mgmt_portal_follower/readme/USAGE.md
@@ -0,0 +1 @@
+To make it work you just need to add the emails of the wanted followers to the `Emails in Copy` input splitted by comas.
\ No newline at end of file
diff --git a/helpdesk_mgmt_portal_follower/static/description/icon.png b/helpdesk_mgmt_portal_follower/static/description/icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..7afac09f9226fe3e0d1eb01fd647a45386305c24
GIT binary patch
literal 7135
zcmXwe2RvJE)W1*^wfAl#n#OF@tdSP6i-w|AL}=BhS$nJ27NeA(RjSoi5Y(s{HBudv
z7EvpWO^lea-}L>z|9e08-p}WI&;8!#p7We@pL0%$Kph1agujX3}4|rV%4--HLr6K_&sV2P;q5EtAf%I+-VF+Q*z%m34Rn;jH|{e;GUP-|7x&}
zZH;}8tHNd17Dxdlo&!o475b8Im>SPY6M;l4T!z_xMq>OuUV>yZpPgAmZU6OLx-t5M
zGLkgH{lncq7;b+ukxv%EqCk~??2UM=jS$TrBmZ|I`>t?Dn?vndKEaF
z@wis@!xFE~vqwzTOpTA0&LWs_h-Rw?|1lg`XQNp|k#-y($U>ZU|ktrc1W
zH`KQMw=q!}DN4LavY7kOYmNMNJsq7$=Lvx6!p?v$5MS1-uM%9O5$+QV7QE4)W#o!+
z(|){}K^{1@mllcD`nRB>
zGi(AbvuL!#i%qRPr{0!53&|=!#VIDiD14DA^*MAypP5ylQu1}uBUL{FXZ@IvYbi~i1^lMiCxTCuB=Fy4aq9$4d*GX^
z#r_>!hd^HdRStt375!*J0{67*nfKL^k#0kAs9kti1gF1i1SDFO(-oXyzA4&coc;F$&
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N8=+
z-5++ap!oe$g17Vn$mx02*!VjUU+15yU@Hu6@%fPn^6|f$ZP7eIa`#F+koKOqL58L#
zm*b~d0{HC~%~PFH&$~aW~Rin{x4L+j_gb
zB{Q+UzH!&YNTxR+aBCeU?Q7J!wvw=c2-WWG#w8jAdvk|QGTRw!e!ym78n8j_LyV;cNr8TtR+0ia&?1?vBB^7UoqMsA8Dj7MA(oEWJ4SdTMef
zZ(?V{oVZnN>0NSLS(xO(Mh~pzfz*~ap4UmgjkE!B#Nb4zHNYA11F0r2eH+_nWr1q^
z9&)~%2kYM>j}f$X!O)FslxOf>8HUiPKUglIxtGaCFVlhTWp_TI7#l57j#DD16Hv~~
z;)t{-$)n=946k5|&_aVf%_kB`5nd4E1EqtRrXQN?WpTDPYwTU4Qs4Y5Bo^{xj2P0(
z+u*A~Waqo{Y27vt22d5JJ;A@=B74$bZ9lG;e}*w=UgHkQ>{$CPStba7BgRpo1z)wn
zsef8~x(aV8^1Ie}`ZsHdoja4H
zkwJQ*(9U9aZRQEQoUD^l6~}uQ2ndr
zL?g+yr`m76)!R+Q&;(pTgJo|}(!hMp|HvsL%GMZt5VH#LUY)Fs4})g&!;8QirFgG<
z$%;%m%WZ2w#7(^z*`>(Z{{UXA?L$DsV`e(^?dZ~bF@bvyV3Z47|37SS!vNm
Do not contact contributors directly about support or help with technical issues.
@@ -462,7 +462,7 @@
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/helpdesk project on GitHub.
+
This module is part of the OCA/helpdesk project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
From 6a36c6af069c5df716f814ca8a5677d4533351ef Mon Sep 17 00:00:00 2001
From: Antoni Marroig Campomar
Date: Wed, 9 Apr 2025 14:27:15 +0200
Subject: [PATCH 05/12] [MIG] helpdesk_mgmt_portal_follower: Migration to 17.0
---
helpdesk_mgmt_portal_follower/README.rst | 43 +++++++++++++------
helpdesk_mgmt_portal_follower/__manifest__.py | 4 +-
.../i18n/helpdesk_mgmt_portal_follower.pot | 2 +-
.../readme/CONTRIBUTORS.md | 1 +
.../static/description/index.html | 9 ++--
5 files changed, 39 insertions(+), 20 deletions(-)
diff --git a/helpdesk_mgmt_portal_follower/README.rst b/helpdesk_mgmt_portal_follower/README.rst
index 990e3a186a..70f49f3fc3 100644
--- a/helpdesk_mgmt_portal_follower/README.rst
+++ b/helpdesk_mgmt_portal_follower/README.rst
@@ -7,7 +7,7 @@ Portal Follower
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:9973e1cdb4ecef94090632e007c75c53ed15fd2c505ed39b4b9ea3a4ae5a7e66
+ !! source digest: sha256:d23c665adc163a08c385af7ccb74c3650839cb87e706c3060c26be2a5a8f7270
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -50,21 +50,21 @@ Known Caveats
1. **Spam Risks**:
- - Allowing users to input any email address could lead to spam if
- unintended recipients are included.
+ - Allowing users to input any email address could lead to spam if
+ unintended recipients are included.
2. **Privacy Concerns**:
- - Users may inadvertently share sensitive information by adding
- followers without the consent of the email address owners.
- - This feature could expose email addresses to individuals who
- should not have access to that information.
+ - Users may inadvertently share sensitive information by adding
+ followers without the consent of the email address owners.
+ - This feature could expose email addresses to individuals who should
+ not have access to that information.
3. **User Misunderstanding**:
- - End-users may not fully understand the implications of adding
- multiple email addresses, potentially leading to confusion or
- misuse.
+ - End-users may not fully understand the implications of adding
+ multiple email addresses, potentially leading to confusion or
+ misuse.
If you plan to use this module, it is essential to inform users about
the importance of carefully selecting followers to add. This process
@@ -94,11 +94,12 @@ Authors
Contributors
------------
-- `APSL-Nagarro `__:
+- `APSL-Nagarro `__:
- - Patryk Pyczko ppyczko@apsl.net
- - Bernat Obrador bobrador@apsl.net
- - Miquel Pascual mpascual@apsl.net
+ - Patryk Pyczko ppyczko@apsl.net
+ - Bernat Obrador bobrador@apsl.net
+ - Miquel Pascual mpascual@apsl.net
+ - Antoni Marroig amarroig@apsl.net
Maintainers
-----------
@@ -113,6 +114,20 @@ 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.
+.. |maintainer-BernatObrador| image:: https://github.com/BernatObrador.png?size=40px
+ :target: https://github.com/BernatObrador
+ :alt: BernatObrador
+.. |maintainer-ppyczko| image:: https://github.com/ppyczko.png?size=40px
+ :target: https://github.com/ppyczko
+ :alt: ppyczko
+.. |maintainer-mpascuall| image:: https://github.com/mpascuall.png?size=40px
+ :target: https://github.com/mpascuall
+ :alt: mpascuall
+
+Current `maintainers `__:
+
+|maintainer-BernatObrador| |maintainer-ppyczko| |maintainer-mpascuall|
+
This module is part of the `OCA/helpdesk `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/helpdesk_mgmt_portal_follower/__manifest__.py b/helpdesk_mgmt_portal_follower/__manifest__.py
index f8af2a8892..594e6f26c2 100644
--- a/helpdesk_mgmt_portal_follower/__manifest__.py
+++ b/helpdesk_mgmt_portal_follower/__manifest__.py
@@ -7,10 +7,10 @@
"Odoo Community Association (OCA)"
),
"license": "AGPL-3",
- "mantainers": ["BernatObrador", "ppyczko", "mpascuall"],
+ "maintainers": ["BernatObrador", "ppyczko", "mpascuall"],
"website": "https://github.com/OCA/helpdesk",
"category": "Helpdesk",
- "version": "16.0.1.0.0",
+ "version": "17.0.1.0.0",
"depends": ["helpdesk_mgmt"],
"data": ["views/helpdesk_templates.xml"],
"installable": True,
diff --git a/helpdesk_mgmt_portal_follower/i18n/helpdesk_mgmt_portal_follower.pot b/helpdesk_mgmt_portal_follower/i18n/helpdesk_mgmt_portal_follower.pot
index f9311ce5c4..d29f19cfe0 100644
--- a/helpdesk_mgmt_portal_follower/i18n/helpdesk_mgmt_portal_follower.pot
+++ b/helpdesk_mgmt_portal_follower/i18n/helpdesk_mgmt_portal_follower.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 16.0\n"
+"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
diff --git a/helpdesk_mgmt_portal_follower/readme/CONTRIBUTORS.md b/helpdesk_mgmt_portal_follower/readme/CONTRIBUTORS.md
index d4683f9119..0fbec54731 100644
--- a/helpdesk_mgmt_portal_follower/readme/CONTRIBUTORS.md
+++ b/helpdesk_mgmt_portal_follower/readme/CONTRIBUTORS.md
@@ -2,3 +2,4 @@
- Patryk Pyczko
- Bernat Obrador
- Miquel Pascual
+ - Antoni Marroig
diff --git a/helpdesk_mgmt_portal_follower/static/description/index.html b/helpdesk_mgmt_portal_follower/static/description/index.html
index daabc45607..52738a214b 100644
--- a/helpdesk_mgmt_portal_follower/static/description/index.html
+++ b/helpdesk_mgmt_portal_follower/static/description/index.html
@@ -367,7 +367,7 @@ Portal Follower
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-!! source digest: sha256:9973e1cdb4ecef94090632e007c75c53ed15fd2c505ed39b4b9ea3a4ae5a7e66
+!! source digest: sha256:d23c665adc163a08c385af7ccb74c3650839cb87e706c3060c26be2a5a8f7270
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

This module adds the posibilty to add followers to a helpdesk ticket
@@ -407,8 +407,8 @@
Privacy Concerns:
- Users may inadvertently share sensitive information by adding
followers without the consent of the email address owners.
-- This feature could expose email addresses to individuals who
-should not have access to that information.
+- This feature could expose email addresses to individuals who should
+not have access to that information.
User Misunderstanding:
@@ -462,6 +463,8 @@
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.
+Current maintainers:
+

This module is part of the OCA/helpdesk project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
From 2c7b451218783a8b25308e2d37c02e364ad77f73 Mon Sep 17 00:00:00 2001
From: bobrador
Date: Mon, 2 Jun 2025 11:28:32 +0200
Subject: [PATCH 06/12] [IMP] helpdesk_mgmt_portal_follower: pre-commit auto
fixes
---
.../views/helpdesk_templates.xml | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/helpdesk_mgmt_portal_follower/views/helpdesk_templates.xml b/helpdesk_mgmt_portal_follower/views/helpdesk_templates.xml
index c8e7e6a8d5..f3b54ec091 100644
--- a/helpdesk_mgmt_portal_follower/views/helpdesk_templates.xml
+++ b/helpdesk_mgmt_portal_follower/views/helpdesk_templates.xml
@@ -4,24 +4,24 @@
inherit_id="helpdesk_mgmt.portal_create_ticket"
priority="40"
>
-
-
-
-
+
From 9fafa8db0a17f1e10a88b94b1c087030e22a662e Mon Sep 17 00:00:00 2001
From: bobrador
Date: Mon, 2 Jun 2025 11:38:15 +0200
Subject: [PATCH 07/12] [MIG] helpdesk_mgmt_portal_follower: Migration to 18.0
---
helpdesk_mgmt_portal_follower/README.rst | 38 +++++++++----------
helpdesk_mgmt_portal_follower/__manifest__.py | 2 +-
.../static/description/index.html | 10 ++---
.../views/helpdesk_templates.xml | 2 +-
4 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/helpdesk_mgmt_portal_follower/README.rst b/helpdesk_mgmt_portal_follower/README.rst
index 70f49f3fc3..fb62677cbc 100644
--- a/helpdesk_mgmt_portal_follower/README.rst
+++ b/helpdesk_mgmt_portal_follower/README.rst
@@ -17,13 +17,13 @@ Portal Follower
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhelpdesk-lightgray.png?logo=github
- :target: https://github.com/OCA/helpdesk/tree/17.0/helpdesk_mgmt_portal_follower
+ :target: https://github.com/OCA/helpdesk/tree/18.0/helpdesk_mgmt_portal_follower
:alt: OCA/helpdesk
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/helpdesk-17-0/helpdesk-17-0-helpdesk_mgmt_portal_follower
+ :target: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt_portal_follower
: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/helpdesk&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -50,21 +50,21 @@ Known Caveats
1. **Spam Risks**:
- - Allowing users to input any email address could lead to spam if
- unintended recipients are included.
+ - Allowing users to input any email address could lead to spam if
+ unintended recipients are included.
2. **Privacy Concerns**:
- - Users may inadvertently share sensitive information by adding
- followers without the consent of the email address owners.
- - This feature could expose email addresses to individuals who should
- not have access to that information.
+ - Users may inadvertently share sensitive information by adding
+ followers without the consent of the email address owners.
+ - This feature could expose email addresses to individuals who
+ should not have access to that information.
3. **User Misunderstanding**:
- - End-users may not fully understand the implications of adding
- multiple email addresses, potentially leading to confusion or
- misuse.
+ - End-users may not fully understand the implications of adding
+ multiple email addresses, potentially leading to confusion or
+ misuse.
If you plan to use this module, it is essential to inform users about
the importance of carefully selecting followers to add. This process
@@ -76,7 +76,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -94,12 +94,12 @@ Authors
Contributors
------------
-- `APSL-Nagarro `__:
+- `APSL-Nagarro `__:
- - Patryk Pyczko ppyczko@apsl.net
- - Bernat Obrador bobrador@apsl.net
- - Miquel Pascual mpascual@apsl.net
- - Antoni Marroig amarroig@apsl.net
+ - Patryk Pyczko ppyczko@apsl.net
+ - Bernat Obrador bobrador@apsl.net
+ - Miquel Pascual mpascual@apsl.net
+ - Antoni Marroig amarroig@apsl.net
Maintainers
-----------
@@ -128,6 +128,6 @@ Current `maintainers `__:
|maintainer-BernatObrador| |maintainer-ppyczko| |maintainer-mpascuall|
-This module is part of the `OCA/helpdesk `_ project on GitHub.
+This module is part of the `OCA/helpdesk `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/helpdesk_mgmt_portal_follower/__manifest__.py b/helpdesk_mgmt_portal_follower/__manifest__.py
index 594e6f26c2..e9413f8a4e 100644
--- a/helpdesk_mgmt_portal_follower/__manifest__.py
+++ b/helpdesk_mgmt_portal_follower/__manifest__.py
@@ -10,7 +10,7 @@
"maintainers": ["BernatObrador", "ppyczko", "mpascuall"],
"website": "https://github.com/OCA/helpdesk",
"category": "Helpdesk",
- "version": "17.0.1.0.0",
+ "version": "18.0.1.0.0",
"depends": ["helpdesk_mgmt"],
"data": ["views/helpdesk_templates.xml"],
"installable": True,
diff --git a/helpdesk_mgmt_portal_follower/static/description/index.html b/helpdesk_mgmt_portal_follower/static/description/index.html
index 52738a214b..a0e069de17 100644
--- a/helpdesk_mgmt_portal_follower/static/description/index.html
+++ b/helpdesk_mgmt_portal_follower/static/description/index.html
@@ -369,7 +369,7 @@ Portal Follower
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d23c665adc163a08c385af7ccb74c3650839cb87e706c3060c26be2a5a8f7270
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

This module adds the posibilty to add followers to a helpdesk ticket
from the helpdesk form at the website portal.
Table of contents
@@ -407,8 +407,8 @@
Privacy Concerns:
- Users may inadvertently share sensitive information by adding
followers without the consent of the email address owners.
-- This feature could expose email addresses to individuals who should
-not have access to that information.
+- This feature could expose email addresses to individuals who
+should not have access to that information.
User Misunderstanding:
@@ -428,7 +428,7 @@
Bugs are tracked on GitHub 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.
+feedback.
Do not contact contributors directly about support or help with technical issues.
diff --git a/helpdesk_mgmt_portal_follower/views/helpdesk_templates.xml b/helpdesk_mgmt_portal_follower/views/helpdesk_templates.xml
index f3b54ec091..a453278068 100644
--- a/helpdesk_mgmt_portal_follower/views/helpdesk_templates.xml
+++ b/helpdesk_mgmt_portal_follower/views/helpdesk_templates.xml
@@ -5,7 +5,7 @@
priority="40"
>