This module adds Helpdesk functionality in Odoo.
@@ -407,44 +407,43 @@
-- Go to Helpdesk > Configuration > Channels to edit or create new channels.
+- Go to Helpdesk > Configuration > Channels to edit or create new
+channels.
- Edit or create a channel.
- Set the name for the channel.
- You can also Activate or Deactivate channels.
-
+
-- Go to Helpdesk > Configuration > Categories to edit or create new categories.
+- Go to Helpdesk > Configuration > Categories to edit or create new
+categories.
- Edit or create a new category.
- Set the name for the category.
- You can also Activate or Deactivate categories.
-
+
-- Go to Helpdesk > Configuration > Stages to edit or create new stages.
+- Go to Helpdesk > Configuration > Stages to edit or create new
+stages.
- Edit or create a new stage.
- Set the name for the stage.
- Set the sequence order for the stage.
- You can select an Email template.
-- Mark the Unattended checkbox if the stage contains unattended tickets.
+- Mark the Unattended checkbox if the stage contains unattended
+tickets.
- Mark the Closed checkbox if the stage contains closed tickets.
- You can add a description for the stage.
- You can also Activate or Deactivate stages.
-
-
You can also sort the stage sequence if you move up or down the stages in the list view.
+
+
You can also sort the stage sequence if you move up or down the stages
+in the list view.
@@ -455,29 +454,31 @@
Add the teams members.
You can also Activate or Deactivate teams.
-
+
-
There are restrictions to read tickets according to the user’s permissions set in Helpdesk.
+
There are restrictions to read tickets according to the user’s
+permissions set in Helpdesk.
-- User: Personal tickets: User is able to see their tickets (those that are assigned to their user) or those that are no team nor user is assigned.
-- User: Team tickets: User is able to see all the tickets that are assigned to the teams to which he/she belongs or the tickets that are not assigned to any team nor user.
+- User: Personal tickets: User is able to see their tickets (those
+that are assigned to their user) or those that are no team nor user
+is assigned.
+- User: Team tickets: User is able to see all the tickets that are
+assigned to the teams to which he/she belongs or the tickets that are
+not assigned to any team nor user.
- User: User is able to see all the tickets.
@@ -485,15 +486,16 @@
-- Go to Helpdesk or Helpdesk > Dashboard to see the tickets dashboard
-- In the Kanban view, click in the kanban card of a team to see their tickets and create new ones.
+- Go to Helpdesk or Helpdesk > Dashboard to see the tickets
+dashboard
+- In the Kanban view, click in the kanban card of a team to see their
+tickets and create new ones.
-
+
To create a new ticket from the kanban view:
-- Press Create button or click on the plus icon at the top of the column of a stage.
+- Press Create button or click on the plus icon at the top of the
+column of a stage.
- Set the name or subject for the ticket.
- Select the team that will manage the ticket.
- You can select a user to assign the ticket.
@@ -503,16 +505,16 @@
- Add a description.
- You can also attach files to the ticket.
-
+
-- Add a tour feature similar to what the project module defines to discover projects / tasks.
-- Update portal tests defined in tests/test_portal.py to rely on tour specs (in JS)
-in order to replicate the navigation behavior of portal users.
+- Add a tour feature similar to what the project module defines to
+discover projects / tasks.
+- Update portal tests defined in tests/test_portal.py to rely on
+tour specs (in JS) in order to replicate the navigation behavior of
+portal users.
@@ -520,7 +522,7 @@
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.
@@ -600,7 +602,7 @@
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/tests/common.py b/helpdesk_mgmt/tests/common.py
index a41e5f35f4..b483085551 100644
--- a/helpdesk_mgmt/tests/common.py
+++ b/helpdesk_mgmt/tests/common.py
@@ -52,8 +52,9 @@ def setUpClass(cls):
def _create_ticket(self, team, user=False):
ticket = self.env["helpdesk.ticket"].create(
{
- "name": "Ticket %s (%s)"
- % (team.name, user.login if user else "unassigned"),
+ "name": "Ticket {} ({})".format(
+ team.name, user.login if user else "unassigned"
+ ),
"description": "Description",
"team_id": team.id,
"user_id": user.id if user else False,
diff --git a/helpdesk_mgmt/tests/test_helpdesk_portal.py b/helpdesk_mgmt/tests/test_helpdesk_portal.py
index a6a12a0635..38cf9487e7 100644
--- a/helpdesk_mgmt/tests/test_helpdesk_portal.py
+++ b/helpdesk_mgmt/tests/test_helpdesk_portal.py
@@ -54,7 +54,7 @@ def _create_ticket(self, partner, ticket_title, **values):
def _submit_ticket(self, **values):
data = {
- "category": self.env.ref("helpdesk_mgmt.helpdesk_category_1").id,
+ "category": self.env.ref("helpdesk_mgmt.helpdesk_category_1_demo").id,
"csrf_token": http.Request.csrf_token(self),
"subject": self.new_ticket_title,
"description": "\n".join(self.new_ticket_desc_lines),
diff --git a/helpdesk_mgmt/tests/test_helpdesk_ticket.py b/helpdesk_mgmt/tests/test_helpdesk_ticket.py
index 69aaf9c340..80ddc258be 100644
--- a/helpdesk_mgmt/tests/test_helpdesk_ticket.py
+++ b/helpdesk_mgmt/tests/test_helpdesk_ticket.py
@@ -135,7 +135,7 @@ def test_helpdesk_ticket_message_new(self):
try:
t = Ticket.message_new(msg_dict)
except Exception as error:
- self.fail("%s: %s" % (type(error), error))
+ self.fail(f"{type(error)}: {error}")
self.assertEqual(t.name, title, "The ticket should have the correct title.")
title = "New title"
@@ -143,7 +143,7 @@ def test_helpdesk_ticket_message_new(self):
try:
t.message_update(msg_dict, update_vals)
except Exception as error:
- self.fail("%s: %s" % (type(error), error))
+ self.fail(f"{type(error)}: {error}")
self.assertEqual(
t.name, title, "The ticket should have the correct (new) title."
)
diff --git a/helpdesk_mgmt/views/helpdesk_dashboard_views.xml b/helpdesk_mgmt/views/helpdesk_dashboard_views.xml
index b8325fb702..a240fdbb37 100644
--- a/helpdesk_mgmt/views/helpdesk_dashboard_views.xml
+++ b/helpdesk_mgmt/views/helpdesk_dashboard_views.xml
@@ -1,6 +1,6 @@