diff --git a/README.md b/README.md index bc83013c9c..fbe66d22a6 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ addon | version | maintainers | summary [helpdesk_mgmt_stage_validation](helpdesk_mgmt_stage_validation/) | 18.0.1.0.0 | | Validate input data when reaching a Helpdesk Ticket stage [helpdesk_mgmt_timesheet](helpdesk_mgmt_timesheet/) | 18.0.1.1.3 | | Add HR Timesheet to the tickets for Helpdesk Management. [helpdesk_motive](helpdesk_motive/) | 18.0.1.0.0 | nelsonramirezs max3903 | Keep the motive +[helpdesk_portal_priority](helpdesk_portal_priority/) | 18.0.1.0.0 | lbarry-apsl | Helpdesk Portal Priority [helpdesk_portal_restriction](helpdesk_portal_restriction/) | 18.0.1.0.0 | lbarry-apsl | Helpdesk Portal Restriction [helpdesk_product](helpdesk_product/) | 18.0.1.0.1 | | Add the option to select product in the tickets. [helpdesk_ticket_close_inactive](helpdesk_ticket_close_inactive/) | 18.0.1.1.1 | miquelalzanillas | Helpdesk Ticket Close Inactive diff --git a/helpdesk_portal_priority/README.rst b/helpdesk_portal_priority/README.rst new file mode 100644 index 0000000000..ffbc3c3d70 --- /dev/null +++ b/helpdesk_portal_priority/README.rst @@ -0,0 +1,97 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +======================== +Helpdesk Portal Priority +======================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:865c3b21223cde6f4d0b34a162ae2449e76a5b93136702842f2b9b0a246c1f64 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-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/18.0/helpdesk_portal_priority + :alt: OCA/helpdesk +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_portal_priority + :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=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows priority to be assigned when creating portal tickets. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +When creating tickets in the portal, you can select the priority of the +ticket. + +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 +------- + +* Lansana Barry Sow +* APSL-Nagarro + +Contributors +------------ + +[APSL-Nagarro](https://apsl.tech): + +- Lansana Barry Sow + +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. + +.. |maintainer-lbarry-apsl| image:: https://github.com/lbarry-apsl.png?size=40px + :target: https://github.com/lbarry-apsl + :alt: lbarry-apsl + +Current `maintainer `__: + +|maintainer-lbarry-apsl| + +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_portal_priority/__init__.py b/helpdesk_portal_priority/__init__.py new file mode 100644 index 0000000000..e046e49fbe --- /dev/null +++ b/helpdesk_portal_priority/__init__.py @@ -0,0 +1 @@ +from . import controllers diff --git a/helpdesk_portal_priority/__manifest__.py b/helpdesk_portal_priority/__manifest__.py new file mode 100644 index 0000000000..d86206d9cc --- /dev/null +++ b/helpdesk_portal_priority/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2025 Lansana Barry Sow(APSL-Nagarro) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "Helpdesk Portal Priority", + "version": "18.0.1.0.0", + "category": "Helpdesk", + "website": "https://github.com/OCA/helpdesk", + "author": "Lansana Barry Sow, APSL-Nagarro, Odoo Community Association (OCA)", + "maintainers": ["lbarry-apsl"], + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "helpdesk_mgmt", + ], + "data": [ + "views/helpdesk_ticket_templates.xml", + ], +} diff --git a/helpdesk_portal_priority/controllers/__init__.py b/helpdesk_portal_priority/controllers/__init__.py new file mode 100644 index 0000000000..12a7e529b6 --- /dev/null +++ b/helpdesk_portal_priority/controllers/__init__.py @@ -0,0 +1 @@ +from . import main diff --git a/helpdesk_portal_priority/controllers/main.py b/helpdesk_portal_priority/controllers/main.py new file mode 100644 index 0000000000..103c559f87 --- /dev/null +++ b/helpdesk_portal_priority/controllers/main.py @@ -0,0 +1,26 @@ +import logging + +import odoo.http as http + +from odoo.addons.helpdesk_mgmt.controllers.main import HelpdeskTicketController + +_logger = logging.getLogger(__name__) + + +class HelpdeskPriorityController(HelpdeskTicketController): + @http.route("/new/ticket", type="http", auth="user", website=True) + def create_new_ticket(self, **kw): + res = super().create_new_ticket(**kw) + priorities = ( + http.request.env["helpdesk.ticket"] + ._fields["priority"] + ._description_selection(http.request.env) + ) + res.qcontext["priorities"] = priorities + return res + + def _prepare_submit_ticket_vals(self, **kw): + vals = super()._prepare_submit_ticket_vals(**kw) + vals["priority"] = kw.get("priority") + + return vals diff --git a/helpdesk_portal_priority/i18n/helpdesk_portal_priority.pot b/helpdesk_portal_priority/i18n/helpdesk_portal_priority.pot new file mode 100644 index 0000000000..77f5fcd6ee --- /dev/null +++ b/helpdesk_portal_priority/i18n/helpdesk_portal_priority.pot @@ -0,0 +1,19 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_portal_priority +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.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_portal_priority +#: model_terms:ir.ui.view,arch_db:helpdesk_portal_priority.portal_create_ticket +msgid "Priority" +msgstr "" diff --git a/helpdesk_portal_priority/i18n/it.po b/helpdesk_portal_priority/i18n/it.po new file mode 100644 index 0000000000..0adec160bb --- /dev/null +++ b/helpdesk_portal_priority/i18n/it.po @@ -0,0 +1,22 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_portal_priority +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2025-03-03 10:06+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"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.2\n" + +#. module: helpdesk_portal_priority +#: model_terms:ir.ui.view,arch_db:helpdesk_portal_priority.portal_create_ticket +msgid "Priority" +msgstr "Priorità" diff --git a/helpdesk_portal_priority/i18n/pt_BR.po b/helpdesk_portal_priority/i18n/pt_BR.po new file mode 100644 index 0000000000..b68c726363 --- /dev/null +++ b/helpdesk_portal_priority/i18n/pt_BR.po @@ -0,0 +1,22 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_portal_priority +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2025-08-20 19:12+0000\n" +"Last-Translator: Marcel Savegnago \n" +"Language-Team: none\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"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" + +#. module: helpdesk_portal_priority +#: model_terms:ir.ui.view,arch_db:helpdesk_portal_priority.portal_create_ticket +msgid "Priority" +msgstr "Prioridade" diff --git a/helpdesk_portal_priority/pyproject.toml b/helpdesk_portal_priority/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/helpdesk_portal_priority/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/helpdesk_portal_priority/readme/CONTRIBUTORS.md b/helpdesk_portal_priority/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..6331254021 --- /dev/null +++ b/helpdesk_portal_priority/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +\[APSL-Nagarro\](): + - Lansana Barry Sow \<\> \ No newline at end of file diff --git a/helpdesk_portal_priority/readme/DESCRIPTION.md b/helpdesk_portal_priority/readme/DESCRIPTION.md new file mode 100644 index 0000000000..ba01aeb957 --- /dev/null +++ b/helpdesk_portal_priority/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module allows priority to be assigned when creating portal tickets. \ No newline at end of file diff --git a/helpdesk_portal_priority/readme/USAGE.md b/helpdesk_portal_priority/readme/USAGE.md new file mode 100644 index 0000000000..23e8fb0591 --- /dev/null +++ b/helpdesk_portal_priority/readme/USAGE.md @@ -0,0 +1 @@ +When creating tickets in the portal, you can select the priority of the ticket. \ No newline at end of file diff --git a/helpdesk_portal_priority/static/description/icon.png b/helpdesk_portal_priority/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/helpdesk_portal_priority/static/description/icon.png differ diff --git a/helpdesk_portal_priority/static/description/icon.svg b/helpdesk_portal_priority/static/description/icon.svg new file mode 100644 index 0000000000..a7a26d0932 --- /dev/null +++ b/helpdesk_portal_priority/static/description/icon.svg @@ -0,0 +1,79 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/helpdesk_portal_priority/static/description/index.html b/helpdesk_portal_priority/static/description/index.html new file mode 100644 index 0000000000..20d76e4222 --- /dev/null +++ b/helpdesk_portal_priority/static/description/index.html @@ -0,0 +1,439 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Helpdesk Portal Priority

+ +

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

+

This module allows priority to be assigned when creating portal tickets.

+

Table of contents

+ +
+

Usage

+

When creating tickets in the portal, you can select the priority of the +ticket.

+
+
+

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

+
    +
  • Lansana Barry Sow
  • +
  • APSL-Nagarro
  • +
+
+
+

Contributors

+

[APSL-Nagarro](https://apsl.tech):

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

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

+

Current maintainer:

+

lbarry-apsl

+

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_portal_priority/views/helpdesk_ticket_templates.xml b/helpdesk_portal_priority/views/helpdesk_ticket_templates.xml new file mode 100644 index 0000000000..df3598825b --- /dev/null +++ b/helpdesk_portal_priority/views/helpdesk_ticket_templates.xml @@ -0,0 +1,31 @@ + + + + diff --git a/setup/_metapackage/pyproject.toml b/setup/_metapackage/pyproject.toml index 43ebd0a5c4..4b70cbf032 100644 --- a/setup/_metapackage/pyproject.toml +++ b/setup/_metapackage/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "odoo-addons-oca-helpdesk" -version = "18.0.20260407.0" +version = "18.0.20260601.0" dependencies = [ "odoo-addon-helpdesk_mgmt==18.0.*", "odoo-addon-helpdesk_mgmt_activity==18.0.*", @@ -20,6 +20,7 @@ dependencies = [ "odoo-addon-helpdesk_mgmt_stage_validation==18.0.*", "odoo-addon-helpdesk_mgmt_timesheet==18.0.*", "odoo-addon-helpdesk_motive==18.0.*", + "odoo-addon-helpdesk_portal_priority==18.0.*", "odoo-addon-helpdesk_portal_restriction==18.0.*", "odoo-addon-helpdesk_product==18.0.*", "odoo-addon-helpdesk_ticket_close_inactive==18.0.*",