From f6283fdcc94049c56a39c2625c3eafb4b58cd1db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Thu, 4 Jun 2026 14:51:51 +0200 Subject: [PATCH 01/10] [IMP] helpdesk_mgmt_rating: Remove unused methods and simplify code Changes done: - The rating_apply() method has been removed, and _rating_apply_get_default_subtype_id() has been added to specify the subtype to be used - The _rating_get_partner() method has been removed; rating now uses partner_id by default - The rating_get_parent_model_name() method has been removed because it no longer exists - The rating_get_ticket_id() method has been removed because it is no longer used --- .../models/helpdesk_ticket.py | 31 ++----------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/helpdesk_mgmt_rating/models/helpdesk_ticket.py b/helpdesk_mgmt_rating/models/helpdesk_ticket.py index f9050dd605..76b9cd8fc7 100644 --- a/helpdesk_mgmt_rating/models/helpdesk_ticket.py +++ b/helpdesk_mgmt_rating/models/helpdesk_ticket.py @@ -51,36 +51,11 @@ def _send_ticket_rating_mail(self, force_send=False): force_send=force_send, ) - def rating_apply( - self, - rate, - token=None, - rating=None, - feedback=None, - subtype_xmlid=None, - notify_delay_send=False, - ): - return super().rating_apply( - rate, - token=token, - rating=rating, - feedback=feedback, - subtype_xmlid="helpdesk_mgmt_rating.mt_ticket_rating", - notify_delay_send=notify_delay_send, + def _rating_apply_get_default_subtype_id(self): + return self.env["ir.model.data"]._xmlid_to_res_id( + "helpdesk_mgmt_rating.mt_ticket_rating" ) - def _rating_get_partner(self): - res = super()._rating_get_partner() - if not res and self.partner_id: - return self.partner_id - return res - - def rating_get_parent_model_name(self, vals): - return "helpdesk.ticket" - - def rating_get_ticket_id(self): - return self.id - def action_view_ticket_rating(self): self.ensure_one() action = self.env["ir.actions.act_window"]._for_xml_id( From 96cfa138058727a2f2438f98134ebcf58f14d335 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 5 Jun 2026 07:12:33 +0000 Subject: [PATCH 02/10] [BOT] post-merge updates --- README.md | 2 +- helpdesk_mgmt_rating/README.rst | 2 +- helpdesk_mgmt_rating/__manifest__.py | 2 +- helpdesk_mgmt_rating/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2e2b731838..0993f936b2 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ addon | version | maintainers | summary [helpdesk_mgmt_portal_follower](helpdesk_mgmt_portal_follower/) | 18.0.1.0.0 | BernatObrador ppyczko mpascuall | Add ticket followers from website portal [helpdesk_mgmt_project](helpdesk_mgmt_project/) | 18.0.1.3.0 | | Add the option to select project in the tickets. [helpdesk_mgmt_project_domain](helpdesk_mgmt_project_domain/) | 18.0.1.0.0 | marcelsavegnago | Enable to set a project domain on ticket -[helpdesk_mgmt_rating](helpdesk_mgmt_rating/) | 18.0.1.0.1 | | This module allows customer to rate the assistance received on a ticket. +[helpdesk_mgmt_rating](helpdesk_mgmt_rating/) | 18.0.1.0.2 | | This module allows customer to rate the assistance received on a ticket. [helpdesk_mgmt_sale](helpdesk_mgmt_sale/) | 18.0.2.1.1 | | Add the option to select project in the sale orders. [helpdesk_mgmt_sale_project](helpdesk_mgmt_sale_project/) | 18.0.1.0.0 | | Helpdesk Sale Project [helpdesk_mgmt_sla](helpdesk_mgmt_sla/) | 18.0.2.1.0 | | Add SLA to the tickets for Helpdesk Management. diff --git a/helpdesk_mgmt_rating/README.rst b/helpdesk_mgmt_rating/README.rst index 546952440e..b130e9e7c0 100644 --- a/helpdesk_mgmt_rating/README.rst +++ b/helpdesk_mgmt_rating/README.rst @@ -11,7 +11,7 @@ Helpdesk Management Rating !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:b02e8c1ea7f3ba1689e52eb74e98c88cca4b9f21bfa4433fc9e9209fa8c2c419 + !! source digest: sha256:c7c01eeab262e2684a3df119affd6b48df493217da4a07620737f9f60b85fc53 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/helpdesk_mgmt_rating/__manifest__.py b/helpdesk_mgmt_rating/__manifest__.py index 414a73b1bd..6308ea31b3 100644 --- a/helpdesk_mgmt_rating/__manifest__.py +++ b/helpdesk_mgmt_rating/__manifest__.py @@ -4,7 +4,7 @@ This module allows customer to rate the assistance received on a ticket. """, - "version": "18.0.1.0.1", + "version": "18.0.1.0.2", "license": "AGPL-3", "author": "Domatix, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/helpdesk", diff --git a/helpdesk_mgmt_rating/static/description/index.html b/helpdesk_mgmt_rating/static/description/index.html index aa9ea691ac..340ff14ed9 100644 --- a/helpdesk_mgmt_rating/static/description/index.html +++ b/helpdesk_mgmt_rating/static/description/index.html @@ -372,7 +372,7 @@

Helpdesk Management Rating

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

Beta License: AGPL-3 OCA/helpdesk Translate me on Weblate Try me on Runboat

This module adds the possibility to rate the assistance received through From b6a9245c17190bd6f40d28e5a2da5be7722b4765 Mon Sep 17 00:00:00 2001 From: mymage Date: Fri, 5 Jun 2026 06:53:16 +0000 Subject: [PATCH 03/10] Translated using Weblate (Italian) Currently translated at 100.0% (20 of 20 strings) Translation: helpdesk-18.0/helpdesk-18.0-helpdesk_mgmt_sale Translate-URL: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt_sale/it/ --- helpdesk_mgmt_sale/i18n/it.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helpdesk_mgmt_sale/i18n/it.po b/helpdesk_mgmt_sale/i18n/it.po index a302b49d44..1c57101c3c 100644 --- a/helpdesk_mgmt_sale/i18n/it.po +++ b/helpdesk_mgmt_sale/i18n/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 17.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2025-11-06 09:42+0000\n" +"PO-Revision-Date: 2026-06-05 07:51+0000\n" "Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" @@ -14,7 +14,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 5.10.4\n" +"X-Generator: Weblate 5.15.2\n" #. module: helpdesk_mgmt_sale #: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_sale.view_helpdesk_ticket_link_sale_order_wizard @@ -97,7 +97,7 @@ msgstr "Ordine di vendita" #. module: helpdesk_mgmt_sale #: model:ir.model.fields,field_description:helpdesk_mgmt_sale.field_helpdesk_ticket__sale_order_ids msgid "Sales orders" -msgstr "" +msgstr "Ordini di vendita" #. module: helpdesk_mgmt_sale #: model:ir.model.fields,field_description:helpdesk_mgmt_sale.field_helpdesk_ticket_link_sale_order_wizard__ticket_id @@ -108,7 +108,7 @@ msgstr "Ticket" #. module: helpdesk_mgmt_sale #: model:ir.model.fields,field_description:helpdesk_mgmt_sale.field_helpdesk_ticket_link_sale_order_wizard__ticket_sale_order_ids msgid "Ticket sales orders" -msgstr "" +msgstr "Ordini di vendita ticket" #. module: helpdesk_mgmt_sale #: model:ir.actions.act_window,name:helpdesk_mgmt_sale.action_helpdesk_ticket From feaa7de26b4b8c044ed7adf6eb20672dd49b957f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Fri, 5 Jun 2026 16:39:21 +0200 Subject: [PATCH 04/10] [FIX] helpdesk_mgmt: Display the appropriate categories on the portal TT62933 --- helpdesk_mgmt/controllers/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpdesk_mgmt/controllers/main.py b/helpdesk_mgmt/controllers/main.py index a454643bea..092d34421b 100644 --- a/helpdesk_mgmt/controllers/main.py +++ b/helpdesk_mgmt/controllers/main.py @@ -43,7 +43,8 @@ def _get_teams(self): def _get_categories(self, **kw): company = request.env.company category_model = http.request.env["helpdesk.ticket.category"] - return category_model.with_company(company.id).search([("active", "=", True)]) + domain = [("active", "=", True), ("show_in_portal", "=", True)] + return category_model.with_company(company.id).search(domain) @http.route("/new/ticket", type="http", auth="user", website=True) def create_new_ticket(self, **kw): From f996029f645c5cc3488dff04e3285612aa11dec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Fri, 5 Jun 2026 16:40:34 +0200 Subject: [PATCH 05/10] [FIX] helpdesk_mgmt: Hide the category on the portal's ticket page if there isn't one TT62933 --- helpdesk_mgmt/views/helpdesk_ticket_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk_mgmt/views/helpdesk_ticket_templates.xml b/helpdesk_mgmt/views/helpdesk_ticket_templates.xml index 4087ee090e..e057dd4f9b 100644 --- a/helpdesk_mgmt/views/helpdesk_ticket_templates.xml +++ b/helpdesk_mgmt/views/helpdesk_ticket_templates.xml @@ -465,7 +465,7 @@ -

+