Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ addon | version | maintainers | summary
[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.
[helpdesk_mgmt_stage_validation](helpdesk_mgmt_stage_validation/) | 18.0.1.0.0 | | Validate input data when reaching a Helpdesk Ticket stage
[helpdesk_mgmt_template](helpdesk_mgmt_template/) | 18.0.1.0.0 | | Create Helpdesk Ticket Template
[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 | <a href='https://github.com/nelsonramirezs'><img src='https://github.com/nelsonramirezs.png' width='32' height='32' style='border-radius:50%;' alt='nelsonramirezs'/></a> <a href='https://github.com/max3903'><img src='https://github.com/max3903.png' width='32' height='32' style='border-radius:50%;' alt='max3903'/></a> | Keep the motive
[helpdesk_portal_priority](helpdesk_portal_priority/) | 18.0.1.0.0 | <a href='https://github.com/lbarry-apsl'><img src='https://github.com/lbarry-apsl.png' width='32' height='32' style='border-radius:50%;' alt='lbarry-apsl'/></a> | Helpdesk Portal Priority
[helpdesk_portal_restriction](helpdesk_portal_restriction/) | 18.0.1.0.0 | <a href='https://github.com/lbarry-apsl'><img src='https://github.com/lbarry-apsl.png' width='32' height='32' style='border-radius:50%;' alt='lbarry-apsl'/></a> | Helpdesk Portal Restriction
[helpdesk_product](helpdesk_product/) | 18.0.1.0.1 | | Add the option to select product in the tickets.
[helpdesk_product](helpdesk_product/) | 18.0.1.1.0 | | Add the option to select product in the tickets.
[helpdesk_ticket_close_inactive](helpdesk_ticket_close_inactive/) | 18.0.1.1.1 | <a href='https://github.com/miquelalzanillas'><img src='https://github.com/miquelalzanillas.png' width='32' height='32' style='border-radius:50%;' alt='miquelalzanillas'/></a> | Helpdesk Ticket Close Inactive
[helpdesk_ticket_open_tab](helpdesk_ticket_open_tab/) | 18.0.1.0.0 | <a href='https://github.com/peluko00'><img src='https://github.com/peluko00.png' width='32' height='32' style='border-radius:50%;' alt='peluko00'/></a> | Helpdesk Ticket Open Tab
[helpdesk_ticket_partner_response](helpdesk_ticket_partner_response/) | 18.0.1.1.1 | <a href='https://github.com/peluko00'><img src='https://github.com/peluko00.png' width='32' height='32' style='border-radius:50%;' alt='peluko00'/></a> | Change ticket stage when partner response
Expand Down
111 changes: 111 additions & 0 deletions helpdesk_mgmt_template/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

============================
Helpdesk Management Template
============================

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

.. |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_mgmt_template
: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_mgmt_template
: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|

The module adds the following features:

- Pre-configure ticket description template based on it's category

**Table of contents**

.. contents::
:local:

Configuration
=============

**To Configure Ticket's Description Template** - Go to Helpdesk ->
Configuration -> Categories. - Create a new Category or select an
existing Category. - Set the *Template* field with pre-defined the
ticket's description that will be triggered based on the category
selected.

**To configure available Categories for Teams** - Go to Helpdesk ->
Configuration -> Categories. - Create a new Team or select an existing
Team. - Select categories which are available for the Team.

Usage
=====

**Go to Helpdesk module:**

- Select a Team
- Open a Ticket
- Create a new Ticket
- Select Category
- Add a description or modify category description template (if
configured)

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/helpdesk/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 <https://github.com/OCA/helpdesk/issues/new?body=module:%20helpdesk_mgmt_template%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Cetmix OÜ

Contributors
------------

- `Cetmix OÜ <https://cetmix.com>`__:

- Ivan Sokolov
- Mikhail Lapin
- Dessan Hemrayev

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.

This module is part of the `OCA/helpdesk <https://github.com/OCA/helpdesk/tree/18.0/helpdesk_mgmt_template>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions helpdesk_mgmt_template/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2024 Cetmix OÜ
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
18 changes: 18 additions & 0 deletions helpdesk_mgmt_template/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2024 Cetmix OÜ
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Helpdesk Management Template",
"summary": "Create Helpdesk Ticket Template",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"author": "Cetmix OÜ, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/helpdesk",
"depends": ["helpdesk_mgmt"],
"data": [
"views/helpdesk_ticket_views.xml",
"views/helpdesk_ticket_category_views.xml",
"views/helpdesk_ticket_team_views.xml",
],
"application": False,
}
35 changes: 35 additions & 0 deletions helpdesk_mgmt_template/i18n/helpdesk_mgmt_template.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * helpdesk_mgmt_template
#
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_mgmt_template
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket__description
msgid "Description"
msgstr ""

#. module: helpdesk_mgmt_template
#: model:ir.model,name:helpdesk_mgmt_template.model_helpdesk_ticket
msgid "Helpdesk Ticket"
msgstr ""

#. module: helpdesk_mgmt_template
#: model:ir.model,name:helpdesk_mgmt_template.model_helpdesk_ticket_category
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket__helpdesk_ticket_category_ids
msgid "Helpdesk Ticket Category"
msgstr ""

#. module: helpdesk_mgmt_template
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket_category__template_description
msgid "Template Description"
msgstr ""
38 changes: 38 additions & 0 deletions helpdesk_mgmt_template/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * helpdesk_mgmt_template
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-07-15 16:25+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\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.4\n"

#. module: helpdesk_mgmt_template
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket__description
msgid "Description"
msgstr "Descrizione"

#. module: helpdesk_mgmt_template
#: model:ir.model,name:helpdesk_mgmt_template.model_helpdesk_ticket
msgid "Helpdesk Ticket"
msgstr "Ticket assistenza clienti"

#. module: helpdesk_mgmt_template
#: model:ir.model,name:helpdesk_mgmt_template.model_helpdesk_ticket_category
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket__helpdesk_ticket_category_ids
msgid "Helpdesk Ticket Category"
msgstr "Categoria ticket assistenza clienti"

#. module: helpdesk_mgmt_template
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket_category__template_description
msgid "Template Description"
msgstr "Descrizione modello"
38 changes: 38 additions & 0 deletions helpdesk_mgmt_template/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * helpdesk_mgmt_template
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-08-21 02:32+0000\n"
"Last-Translator: Marcel Savegnago <marcel.savegnago@gmail.com>\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_mgmt_template
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket__description
msgid "Description"
msgstr "Descrição"

#. module: helpdesk_mgmt_template
#: model:ir.model,name:helpdesk_mgmt_template.model_helpdesk_ticket
msgid "Helpdesk Ticket"
msgstr "Chamado da Central de Ajuda"

#. module: helpdesk_mgmt_template
#: model:ir.model,name:helpdesk_mgmt_template.model_helpdesk_ticket_category
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket__helpdesk_ticket_category_ids
msgid "Helpdesk Ticket Category"
msgstr "Categoria do Chamado da Central de Ajuda"

#. module: helpdesk_mgmt_template
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket_category__template_description
msgid "Template Description"
msgstr "Descrição do Modelo"
5 changes: 5 additions & 0 deletions helpdesk_mgmt_template/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (C) 2024 Cetmix OÜ
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import helpdesk_ticket_category
from . import helpdesk_ticket
41 changes: 41 additions & 0 deletions helpdesk_mgmt_template/models/helpdesk_ticket.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright (C) 2024 Cetmix OÜ
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


from odoo import api, fields, models


class HelpdeskTicket(models.Model):
_inherit = "helpdesk.ticket"

description = fields.Html(
store=True,
compute="_compute_description",
readonly=False,
)
helpdesk_ticket_category_ids = fields.Many2many(
"helpdesk.ticket.category", compute="_compute_helpdesk_ticket_category"
)

@api.depends("team_id")
def _compute_helpdesk_ticket_category(self):
for rec in self:
rec.helpdesk_ticket_category_ids = rec.team_id.category_ids

@api.depends("category_id")
def _compute_description(self):
for record in self:
if record.category_id.template_description:
record.description = record.category_id.template_description
elif record.description:
record.description = record.description
else:
record.description = "<p></p>"

def copy(self, default=None):
self.ensure_one()
if default is None:
default = {}
if "description" not in default:
default["description"] = "<p></p>"
return super().copy(default)
10 changes: 10 additions & 0 deletions helpdesk_mgmt_template/models/helpdesk_ticket_category.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (C) 2024 Cetmix OÜ
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class HelpdeskCategory(models.Model):
_inherit = "helpdesk.ticket.category"

template_description = fields.Html(sanitize_style=True)
3 changes: 3 additions & 0 deletions helpdesk_mgmt_template/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
9 changes: 9 additions & 0 deletions helpdesk_mgmt_template/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
**To Configure Ticket's Description Template** - Go to Helpdesk -\>
Configuration -\> Categories. - Create a new Category or select an
existing Category. - Set the *Template* field with pre-defined the
ticket's description that will be triggered based on the category
selected.

**To configure available Categories for Teams** - Go to Helpdesk -\>
Configuration -\> Categories. - Create a new Team or select an existing
Team. - Select categories which are available for the Team.
4 changes: 4 additions & 0 deletions helpdesk_mgmt_template/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- [Cetmix OÜ](https://cetmix.com):
- Ivan Sokolov
- Mikhail Lapin
- Dessan Hemrayev
3 changes: 3 additions & 0 deletions helpdesk_mgmt_template/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The module adds the following features:

- Pre-configure ticket description template based on it's category
8 changes: 8 additions & 0 deletions helpdesk_mgmt_template/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**Go to Helpdesk module:**

- Select a Team
- Open a Ticket
- Create a new Ticket
- Select Category
- Add a description or modify category description template (if
configured)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading