diff --git a/README.md b/README.md index 90b2e2602d..1dbaa27eb2 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ addon | version | maintainers | summary [helpdesk_mgmt](helpdesk_mgmt/) | 16.0.2.7.0 | | Helpdesk [helpdesk_mgmt_portal_follower](helpdesk_mgmt_portal_follower/) | 16.0.1.0.0 | | Add ticket followers from website portal [helpdesk_mgmt_project](helpdesk_mgmt_project/) | 16.0.2.3.1 | | Add the option to select project in the tickets. -[helpdesk_mgmt_rating](helpdesk_mgmt_rating/) | 16.0.1.0.0 | | This module allows customer to rate the assistance received on a ticket. +[helpdesk_mgmt_rating](helpdesk_mgmt_rating/) | 16.0.1.0.1 | | This module allows customer to rate the assistance received on a ticket. [helpdesk_mgmt_timesheet](helpdesk_mgmt_timesheet/) | 16.0.1.7.1 | | Add HR Timesheet to the tickets for Helpdesk Management. [helpdesk_motive](helpdesk_motive/) | 16.0.1.0.0 | [![nelsonramirezs](https://github.com/nelsonramirezs.png?size=30px)](https://github.com/nelsonramirezs) [![max3903](https://github.com/max3903.png?size=30px)](https://github.com/max3903) | Keep the motive [helpdesk_product](helpdesk_product/) | 16.0.1.0.1 | | Add the option to select product in the tickets. diff --git a/helpdesk_mgmt_rating/README.rst b/helpdesk_mgmt_rating/README.rst index 09913ac7dd..724bbce5ff 100644 --- a/helpdesk_mgmt_rating/README.rst +++ b/helpdesk_mgmt_rating/README.rst @@ -7,7 +7,7 @@ Helpdesk Management Rating !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:f8976a3fbf7845e3e2c6756782481e841b327654e3a45076e41c7862751b45d2 + !! source digest: sha256:3c8d25a4f4c9c93fdf9ac67b23b6868fe39b06ae3aae53c68df4d3136bd86f29 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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 008adc1f38..3076191187 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": "16.0.1.0.0", + "version": "16.0.1.0.1", "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 fc3d9d2741..94bdfbb06a 100644 --- a/helpdesk_mgmt_rating/static/description/index.html +++ b/helpdesk_mgmt_rating/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -367,7 +367,7 @@

Helpdesk Management Rating

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

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 helpdesk @@ -453,7 +453,9 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

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.

diff --git a/helpdesk_mgmt_rating/tests/test_helpdesk_portal.py b/helpdesk_mgmt_rating/tests/test_helpdesk_portal.py index 8e69eaeea8..aec8a9f007 100644 --- a/helpdesk_mgmt_rating/tests/test_helpdesk_portal.py +++ b/helpdesk_mgmt_rating/tests/test_helpdesk_portal.py @@ -1,5 +1,7 @@ # Copyright 2024 Tecnativa - Carolina Fernandez # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +from odoo import http + from odoo.addons.base.tests.common import HttpCaseWithUserPortal @@ -27,7 +29,14 @@ def test_rating_satisfied_ticket(self): """Rate satisfied ticket from the portal.""" self.authenticate("portal", "portal") portal_access_token = self.ticket._rating_get_access_token() - resp = self.url_open(f"/rate/{portal_access_token}/5") + resp = self.url_open( + f"/rate/{portal_access_token}/submit_feedback", + data={ + "rate": 5, + "csrf_token": http.Request.csrf_token(self), + "feedback": "good", + }, + ) self.assertEqual(resp.status_code, 200) self.assertEqual(self.ticket.positive_rate_percentage, 100) @@ -35,7 +44,14 @@ def test_rating_not_satisfied_ticket(self): """Rate not satisfied ticket from the portal.""" self.authenticate("portal", "portal") portal_access_token = self.ticket._rating_get_access_token() - resp = self.url_open(f"/rate/{portal_access_token}/3") + resp = self.url_open( + f"/rate/{portal_access_token}/submit_feedback", + data={ + "rate": 3, + "csrf_token": http.Request.csrf_token(self), + "feedback": "good", + }, + ) self.assertEqual(resp.status_code, 200) self.assertEqual(self.ticket.positive_rate_percentage, 0) @@ -43,6 +59,13 @@ def test_rating_dissatisfied_ticket(self): """Rate highly dissatisfied ticket from the portal.""" self.authenticate("portal", "portal") portal_access_token = self.ticket._rating_get_access_token() - resp = self.url_open(f"/rate/{portal_access_token}/1") + resp = self.url_open( + f"/rate/{portal_access_token}/submit_feedback", + data={ + "rate": 1, + "csrf_token": http.Request.csrf_token(self), + "feedback": "bad job", + }, + ) self.assertEqual(resp.status_code, 200) self.assertEqual(self.ticket.positive_rate_percentage, 0)