From fd182947e3a7d916f18d951a4b8a18e71d8a4471 Mon Sep 17 00:00:00 2001 From: Olivier Nibart Date: Fri, 6 Sep 2024 09:58:07 +0200 Subject: [PATCH] [UPD] update README.rst / small linting --- helpdesk_mgmt_reopen/README.rst | 55 +++++++++++-------- helpdesk_mgmt_reopen/models/mail_message.py | 2 +- helpdesk_mgmt_reopen/readme/DESCRIPTION.rst | 2 +- .../static/description/index.html | 52 +++++++++--------- 4 files changed, 61 insertions(+), 50 deletions(-) diff --git a/helpdesk_mgmt_reopen/README.rst b/helpdesk_mgmt_reopen/README.rst index 8dc4ea84f1..8604279e10 100644 --- a/helpdesk_mgmt_reopen/README.rst +++ b/helpdesk_mgmt_reopen/README.rst @@ -2,36 +2,33 @@ Helpdesk Reopen =============== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:30e4c19a76e9a4f599077174aff2d7c95be9333ee1a1c94f76020d6a87aa2fca + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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/github-OCA%2Fhelpdesk-lightgray.png?logo=github - :target: https://github.com/OCA/helpdesk/tree/12.0/helpdesk_reopen +.. |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/14.0/helpdesk_mgmt_reopen :alt: OCA/helpdesk -.. |badge3| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/helpdesk-12-0/helpdesk-12-0-helpdesk_reopen +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/helpdesk-14-0/helpdesk-14-0-helpdesk_mgmt_reopen :alt: Translate me on Weblate -.. |badge4| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/282/12.0 - :alt: Try me on Runbot - -|badge1| |badge2| |badge3| |badge4| +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&target_branch=14.0 + :alt: Try me on Runboat -This modules allows to get a ticket back to its first state when a message is -received about it. +|badge1| |badge2| |badge3| |badge4| |badge5| - -When you are in a non-production environment, you can reopen the ticket with -a simple message as well. It is useful to test the module's function without -preparing a fake mail environment. - -There is a function MailMessage.is_production_env() allowing to define how you -select if you are in production or not. (With a check on the URL for instance) +This module allows getting a ticket back to its initial state when a message is received about it, except if it is a notification. **Table of contents** @@ -43,8 +40,8 @@ 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 smashing it by providing a detailed and welcomed -`feedback `_. +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. @@ -56,15 +53,19 @@ Authors * OERP * Coop IT Easy SCRLfs +* Akretion Contributors ~~~~~~~~~~~~ +* `Akretion `_: + + * Olivier Nibart + * `Coop IT Easy `_: * Pierrick Brun - * JSC Boolit * Andrius Laukavičius @@ -82,6 +83,14 @@ 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. +.. |maintainer-nayatec| image:: https://github.com/nayatec.png?size=40px + :target: https://github.com/nayatec + :alt: nayatec + +Current `maintainer `__: + +|maintainer-nayatec| + +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_reopen/models/mail_message.py b/helpdesk_mgmt_reopen/models/mail_message.py index aaf4f772b1..fd1415481f 100644 --- a/helpdesk_mgmt_reopen/models/mail_message.py +++ b/helpdesk_mgmt_reopen/models/mail_message.py @@ -29,4 +29,4 @@ def create(self, vals): [], order="sequence", limit=1 ) ticket.stage_id = stage - return super(MailMessage, self).create(vals) + return super().create(vals) diff --git a/helpdesk_mgmt_reopen/readme/DESCRIPTION.rst b/helpdesk_mgmt_reopen/readme/DESCRIPTION.rst index d9c3393fa1..aae7367c59 100644 --- a/helpdesk_mgmt_reopen/readme/DESCRIPTION.rst +++ b/helpdesk_mgmt_reopen/readme/DESCRIPTION.rst @@ -1 +1 @@ -This module allows getting a ticket back to its initial state when a message is received about it, except if it is a notification. \ No newline at end of file +This module allows getting a ticket back to its initial state when a message is received about it, except if it is a notification. diff --git a/helpdesk_mgmt_reopen/static/description/index.html b/helpdesk_mgmt_reopen/static/description/index.html index 12adb60a19..e34c03e700 100644 --- a/helpdesk_mgmt_reopen/static/description/index.html +++ b/helpdesk_mgmt_reopen/static/description/index.html @@ -1,20 +1,19 @@ - - + Helpdesk Reopen