Skip to content

Commit d7a28bd

Browse files
committed
Merge PR #1004 into 18.0
Signed-off-by marcelsavegnago
2 parents 7949832 + b914677 commit d7a28bd

21 files changed

Lines changed: 1021 additions & 0 deletions

helpdesk_mgmt_template/README.rst

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
5+
============================
6+
Helpdesk Management Template
7+
============================
8+
9+
..
10+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11+
!! This file is generated by oca-gen-addon-readme !!
12+
!! changes will be overwritten. !!
13+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14+
!! source digest: sha256:f6e0e9890f91822f5f28d2ed26c4e9700e6364320ead59f11946d756fb93048d
15+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16+
17+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
18+
:target: https://odoo-community.org/page/development-status
19+
:alt: Beta
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
21+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
22+
:alt: License: AGPL-3
23+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhelpdesk-lightgray.png?logo=github
24+
:target: https://github.com/OCA/helpdesk/tree/18.0/helpdesk_mgmt_template
25+
:alt: OCA/helpdesk
26+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27+
:target: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt_template
28+
:alt: Translate me on Weblate
29+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&target_branch=18.0
31+
:alt: Try me on Runboat
32+
33+
|badge1| |badge2| |badge3| |badge4| |badge5|
34+
35+
The module adds the following features:
36+
37+
- Pre-configure ticket description template based on it's category
38+
39+
**Table of contents**
40+
41+
.. contents::
42+
:local:
43+
44+
Configuration
45+
=============
46+
47+
**To Configure Ticket's Description Template** - Go to Helpdesk ->
48+
Configuration -> Categories. - Create a new Category or select an
49+
existing Category. - Set the *Template* field with pre-defined the
50+
ticket's description that will be triggered based on the category
51+
selected.
52+
53+
**To configure available Categories for Teams** - Go to Helpdesk ->
54+
Configuration -> Categories. - Create a new Team or select an existing
55+
Team. - Select categories which are available for the Team.
56+
57+
Usage
58+
=====
59+
60+
**Go to Helpdesk module:**
61+
62+
- Select a Team
63+
- Open a Ticket
64+
- Create a new Ticket
65+
- Select Category
66+
- Add a description or modify category description template (if
67+
configured)
68+
69+
Bug Tracker
70+
===========
71+
72+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/helpdesk/issues>`_.
73+
In case of trouble, please check there if your issue has already been reported.
74+
If you spotted it first, help us to smash it by providing a detailed and welcomed
75+
`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**>`_.
76+
77+
Do not contact contributors directly about support or help with technical issues.
78+
79+
Credits
80+
=======
81+
82+
Authors
83+
-------
84+
85+
* Cetmix OÜ
86+
87+
Contributors
88+
------------
89+
90+
- `Cetmix OÜ <https://cetmix.com>`__:
91+
92+
- Ivan Sokolov
93+
- Mikhail Lapin
94+
- Dessan Hemrayev
95+
96+
Maintainers
97+
-----------
98+
99+
This module is maintained by the OCA.
100+
101+
.. image:: https://odoo-community.org/logo.png
102+
:alt: Odoo Community Association
103+
:target: https://odoo-community.org
104+
105+
OCA, or the Odoo Community Association, is a nonprofit organization whose
106+
mission is to support the collaborative development of Odoo features and
107+
promote its widespread use.
108+
109+
This module is part of the `OCA/helpdesk <https://github.com/OCA/helpdesk/tree/18.0/helpdesk_mgmt_template>`_ project on GitHub.
110+
111+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

helpdesk_mgmt_template/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (C) 2024 Cetmix OÜ
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from . import models
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (C) 2024 Cetmix OÜ
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Helpdesk Management Template",
6+
"summary": "Create Helpdesk Ticket Template",
7+
"version": "18.0.1.0.0",
8+
"license": "AGPL-3",
9+
"author": "Cetmix OÜ, Odoo Community Association (OCA)",
10+
"website": "https://github.com/OCA/helpdesk",
11+
"depends": ["helpdesk_mgmt"],
12+
"data": [
13+
"views/helpdesk_ticket_views.xml",
14+
"views/helpdesk_ticket_category_views.xml",
15+
"views/helpdesk_ticket_team_views.xml",
16+
],
17+
"application": False,
18+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * helpdesk_mgmt_template
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: helpdesk_mgmt_template
17+
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket__description
18+
msgid "Description"
19+
msgstr ""
20+
21+
#. module: helpdesk_mgmt_template
22+
#: model:ir.model,name:helpdesk_mgmt_template.model_helpdesk_ticket
23+
msgid "Helpdesk Ticket"
24+
msgstr ""
25+
26+
#. module: helpdesk_mgmt_template
27+
#: model:ir.model,name:helpdesk_mgmt_template.model_helpdesk_ticket_category
28+
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket__helpdesk_ticket_category_ids
29+
msgid "Helpdesk Ticket Category"
30+
msgstr ""
31+
32+
#. module: helpdesk_mgmt_template
33+
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket_category__template_description
34+
msgid "Template Description"
35+
msgstr ""

helpdesk_mgmt_template/i18n/it.po

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * helpdesk_mgmt_template
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2025-07-15 16:25+0000\n"
10+
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 5.10.4\n"
18+
19+
#. module: helpdesk_mgmt_template
20+
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket__description
21+
msgid "Description"
22+
msgstr "Descrizione"
23+
24+
#. module: helpdesk_mgmt_template
25+
#: model:ir.model,name:helpdesk_mgmt_template.model_helpdesk_ticket
26+
msgid "Helpdesk Ticket"
27+
msgstr "Ticket assistenza clienti"
28+
29+
#. module: helpdesk_mgmt_template
30+
#: model:ir.model,name:helpdesk_mgmt_template.model_helpdesk_ticket_category
31+
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket__helpdesk_ticket_category_ids
32+
msgid "Helpdesk Ticket Category"
33+
msgstr "Categoria ticket assistenza clienti"
34+
35+
#. module: helpdesk_mgmt_template
36+
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket_category__template_description
37+
msgid "Template Description"
38+
msgstr "Descrizione modello"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * helpdesk_mgmt_template
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2025-08-21 02:32+0000\n"
10+
"Last-Translator: Marcel Savegnago <marcel.savegnago@gmail.com>\n"
11+
"Language-Team: none\n"
12+
"Language: pt_BR\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n > 1;\n"
17+
"X-Generator: Weblate 5.10.4\n"
18+
19+
#. module: helpdesk_mgmt_template
20+
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket__description
21+
msgid "Description"
22+
msgstr "Descrição"
23+
24+
#. module: helpdesk_mgmt_template
25+
#: model:ir.model,name:helpdesk_mgmt_template.model_helpdesk_ticket
26+
msgid "Helpdesk Ticket"
27+
msgstr "Chamado da Central de Ajuda"
28+
29+
#. module: helpdesk_mgmt_template
30+
#: model:ir.model,name:helpdesk_mgmt_template.model_helpdesk_ticket_category
31+
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket__helpdesk_ticket_category_ids
32+
msgid "Helpdesk Ticket Category"
33+
msgstr "Categoria do Chamado da Central de Ajuda"
34+
35+
#. module: helpdesk_mgmt_template
36+
#: model:ir.model.fields,field_description:helpdesk_mgmt_template.field_helpdesk_ticket_category__template_description
37+
msgid "Template Description"
38+
msgstr "Descrição do Modelo"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (C) 2024 Cetmix OÜ
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from . import helpdesk_ticket_category
5+
from . import helpdesk_ticket
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright (C) 2024 Cetmix OÜ
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
5+
from odoo import api, fields, models
6+
7+
8+
class HelpdeskTicket(models.Model):
9+
_inherit = "helpdesk.ticket"
10+
11+
description = fields.Html(
12+
store=True,
13+
compute="_compute_description",
14+
readonly=False,
15+
)
16+
helpdesk_ticket_category_ids = fields.Many2many(
17+
"helpdesk.ticket.category", compute="_compute_helpdesk_ticket_category"
18+
)
19+
20+
@api.depends("team_id")
21+
def _compute_helpdesk_ticket_category(self):
22+
for rec in self:
23+
rec.helpdesk_ticket_category_ids = rec.team_id.category_ids
24+
25+
@api.depends("category_id")
26+
def _compute_description(self):
27+
for record in self:
28+
if record.category_id.template_description:
29+
record.description = record.category_id.template_description
30+
elif record.description:
31+
record.description = record.description
32+
else:
33+
record.description = "<p></p>"
34+
35+
def copy(self, default=None):
36+
self.ensure_one()
37+
if default is None:
38+
default = {}
39+
if "description" not in default:
40+
default["description"] = "<p></p>"
41+
return super().copy(default)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (C) 2024 Cetmix OÜ
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class HelpdeskCategory(models.Model):
8+
_inherit = "helpdesk.ticket.category"
9+
10+
template_description = fields.Html(sanitize_style=True)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"

0 commit comments

Comments
 (0)