From 5c3b56129ec4e17ccb04eae832a4d9a36d8fa742 Mon Sep 17 00:00:00 2001 From: Aromera Date: Tue, 4 Jul 2023 11:33:52 +0200 Subject: [PATCH] [MIG] helpdesk_mgmt_rating: Migration to 16.0 --- helpdesk_mgmt_rating/README.rst | 12 ++++++------ helpdesk_mgmt_rating/__manifest__.py | 2 +- helpdesk_mgmt_rating/data/helpdesk_data.xml | 12 +++++------- .../noupdate_changes.xml | 15 ++++++++------- .../{15.0.1.0.0 => 16.0.1.0.0}/post-migration.py | 0 helpdesk_mgmt_rating/models/helpdesk_ticket.py | 4 ++-- .../static/description/index.html | 8 ++++---- .../views/helpdesk_ticket_views.xml | 10 +++++----- 8 files changed, 31 insertions(+), 32 deletions(-) rename helpdesk_mgmt_rating/migrations/{15.0.1.0.0 => 16.0.1.0.0}/noupdate_changes.xml (91%) rename helpdesk_mgmt_rating/migrations/{15.0.1.0.0 => 16.0.1.0.0}/post-migration.py (100%) diff --git a/helpdesk_mgmt_rating/README.rst b/helpdesk_mgmt_rating/README.rst index 70c5b19822..2795632e18 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:1826b768bc05758de41a1da4fcaaa7478662cb03f006eccbff30603d5d79da9f + !! source digest: sha256:47af3639d9e2335c965d3aaed97d98ec6fec4321d12cf0b9c9ee5c4021bf8672 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -17,13 +17,13 @@ Helpdesk Management Rating :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/15.0/helpdesk_mgmt_rating + :target: https://github.com/OCA/helpdesk/tree/16.0/helpdesk_mgmt_rating :alt: OCA/helpdesk .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/helpdesk-15-0/helpdesk-15-0-helpdesk_mgmt_rating + :target: https://translation.odoo-community.org/projects/helpdesk-16-0/helpdesk-16-0-helpdesk_mgmt_rating :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=15.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&target_branch=16.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -64,7 +64,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. @@ -105,6 +105,6 @@ 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. diff --git a/helpdesk_mgmt_rating/__manifest__.py b/helpdesk_mgmt_rating/__manifest__.py index 83eefae40d..008adc1f38 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": "15.0.1.0.0", + "version": "16.0.1.0.0", "license": "AGPL-3", "author": "Domatix, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/helpdesk", diff --git a/helpdesk_mgmt_rating/data/helpdesk_data.xml b/helpdesk_mgmt_rating/data/helpdesk_data.xml index 00f18008e5..0cddb130c2 100644 --- a/helpdesk_mgmt_rating/data/helpdesk_data.xml +++ b/helpdesk_mgmt_rating/data/helpdesk_data.xml @@ -11,18 +11,16 @@ {{object.rating_get_rated_partner_id().email_formatted}} - {{object.rating_get_partner_id().email_formatted}} + >{{object._rating_get_operator().email_formatted}} + {{object._rating_get_partner().email_formatted}} Satisfaction Survey of the ticket {{object.number}} - {{object.name}} - {{object.rating_get_partner_id().id}} + {{object._rating_get_partner().id}}
- + - "assigned to .

We appreciate your feedback. It helps us to improve continuously.

diff --git a/helpdesk_mgmt_rating/migrations/15.0.1.0.0/noupdate_changes.xml b/helpdesk_mgmt_rating/migrations/16.0.1.0.0/noupdate_changes.xml similarity index 91% rename from helpdesk_mgmt_rating/migrations/15.0.1.0.0/noupdate_changes.xml rename to helpdesk_mgmt_rating/migrations/16.0.1.0.0/noupdate_changes.xml index 3df5e83251..701bf8939b 100644 --- a/helpdesk_mgmt_rating/migrations/15.0.1.0.0/noupdate_changes.xml +++ b/helpdesk_mgmt_rating/migrations/16.0.1.0.0/noupdate_changes.xml @@ -1,19 +1,20 @@ + Helpdesk Ticket: Rating Request + {{object.rating_get_rated_partner_id().email_formatted}} - {{object.rating_get_partner_id().email_formatted}} + >{{object._rating_get_operator().email_formatted}} + {{object._rating_get_partner().email_formatted}} Satisfaction Survey of the ticket {{object.number}} - {{object.name}} - {{object.rating_get_partner_id().id}} + {{object._rating_get_partner().id}} +
- +
- "assigned to .

We appreciate your feedback. It helps us to improve continuously.

diff --git a/helpdesk_mgmt_rating/migrations/15.0.1.0.0/post-migration.py b/helpdesk_mgmt_rating/migrations/16.0.1.0.0/post-migration.py similarity index 100% rename from helpdesk_mgmt_rating/migrations/15.0.1.0.0/post-migration.py rename to helpdesk_mgmt_rating/migrations/16.0.1.0.0/post-migration.py diff --git a/helpdesk_mgmt_rating/models/helpdesk_ticket.py b/helpdesk_mgmt_rating/models/helpdesk_ticket.py index 6f46dc73f6..ccf6b732cb 100644 --- a/helpdesk_mgmt_rating/models/helpdesk_ticket.py +++ b/helpdesk_mgmt_rating/models/helpdesk_ticket.py @@ -59,8 +59,8 @@ def rating_apply(self, rate, token=None, feedback=None, subtype_xmlid=None): subtype_xmlid="helpdesk_mgmt_rating.mt_ticket_rating", ) - def rating_get_partner_id(self): - res = super().rating_get_partner_id() + def _rating_get_partner(self): + res = super()._rating_get_partner() if not res and self.partner_id: return self.partner_id return res diff --git a/helpdesk_mgmt_rating/static/description/index.html b/helpdesk_mgmt_rating/static/description/index.html index 7bdc4c53f9..41cb3abc0e 100644 --- a/helpdesk_mgmt_rating/static/description/index.html +++ b/helpdesk_mgmt_rating/static/description/index.html @@ -367,9 +367,9 @@

Helpdesk Management Rating

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:1826b768bc05758de41a1da4fcaaa7478662cb03f006eccbff30603d5d79da9f +!! source digest: sha256:47af3639d9e2335c965d3aaed97d98ec6fec4321d12cf0b9c9ee5c4021bf8672 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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 tickets.

Table of contents

@@ -420,7 +420,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.

@@ -456,7 +456,7 @@

Maintainers

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.

diff --git a/helpdesk_mgmt_rating/views/helpdesk_ticket_views.xml b/helpdesk_mgmt_rating/views/helpdesk_ticket_views.xml index 1d7256ef02..c88d9910b2 100644 --- a/helpdesk_mgmt_rating/views/helpdesk_ticket_views.xml +++ b/helpdesk_mgmt_rating/views/helpdesk_ticket_views.xml @@ -60,14 +60,14 @@ ticket.view.form: Rating status helpdesk.ticket - - +