Skip to content

Commit

Permalink
[FIX] helpdesk_mgmt: Fix pre-commit errors and delete pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
giarve committed Oct 11, 2024
1 parent bb8e701 commit f6b2819
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 118 deletions.
24 changes: 4 additions & 20 deletions helpdesk_mgmt/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,7 @@ Helpdesk Management
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
!! source digest: sha256:cedeb6d130da8d860c927b8bb9da141d744a51997e0294ea4af2f9a0d1e4185d
=======
!! source digest: sha256:48389251dbc371abd48db402ff641664390a343a84368aab69c583f8ca80b6d5
>>>>>>> 4a4ea152 ([IMP] heldespk_mgmt: Helpdesk stages per teams)
=======
!! source digest: sha256:231704619284f176fc8424913015b6b367d796cf92afcdfb8e51fd53526861ef
>>>>>>> e02e1d09 ([IMP] helpdesk_mgmt: Show error if file size exceeds limit)
=======
!! source digest: sha256:60269d3cee97edabd341a1701342396ed3983148af63d5ed464e2b761c016674
>>>>>>> edd3492a ([FIX] helpdesk_mgmt: Make frontend js files translatables)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down Expand Up @@ -151,7 +139,7 @@ Usage
2. In the Kanban view, click in the kanban card of a team to see their
tickets and create new ones.

|image1|
|Tickets_Kanban|

To create a new ticket from the kanban view:

Expand All @@ -166,10 +154,10 @@ To create a new ticket from the kanban view:
8. Add a description.
9. You can also attach files to the ticket.

|image2|
|Tickets01|

.. |image1| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Tickets_Kanban.PNG
.. |image2| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Tickets01.PNG
.. |Tickets_Kanban| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Tickets_Kanban.PNG
.. |Tickets01| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Tickets01.PNG

Known issues / Roadmap
======================
Expand Down Expand Up @@ -236,10 +224,6 @@ Contributors

- Pedro M. Baeza
- Víctor Martínez
- Pedro M. Baeza
- Víctor Martínez
- Carolina Fernandez
- Carlos Roca

- `ID42 Sistemas <https://www.id42.com.br>`__:

Expand Down
2 changes: 1 addition & 1 deletion helpdesk_mgmt/models/helpdesk_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _read_group_stage_ids(self, stages, domain, order):
string="Assigned user",
tracking=True,
index=True,
domain="team_id and [('share', '=', False),('id', 'in', user_ids)] or [('share', '=', False)]", # noqa: B950
domain="team_id and [('share', '=', False),('id', 'in', user_ids)] or [('share', '=', False)]", # noqa: B950,E501
)
user_ids = fields.Many2many(
comodel_name="res.users", related="team_id.user_ids", string="Users"
Expand Down
2 changes: 1 addition & 1 deletion helpdesk_mgmt/models/ir_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ class IrHttp(models.AbstractModel):

@classmethod
def _get_translation_frontend_modules_name(cls):
mods = super(IrHttp, cls)._get_translation_frontend_modules_name()
mods = super()._get_translation_frontend_modules_name()
return mods + ["helpdesk_mgmt"]
48 changes: 0 additions & 48 deletions helpdesk_mgmt/readme/CONTRIBUTORS.rst

This file was deleted.

4 changes: 2 additions & 2 deletions helpdesk_mgmt/readme/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
2. In the Kanban view, click in the kanban card of a team to see their
tickets and create new ones.

![](../static/description/Tickets_Kanban.PNG)
![Tickets_Kanban](../static/description/Tickets_Kanban.PNG)

To create a new ticket from the kanban view:

Expand All @@ -18,4 +18,4 @@ To create a new ticket from the kanban view:
8. Add a description.
9. You can also attach files to the ticket.

![](../static/description/Tickets01.PNG)
![Tickets01](../static/description/Tickets01.PNG)
94 changes: 48 additions & 46 deletions helpdesk_mgmt/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand All @@ -9,10 +8,11 @@

/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -275,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -301,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -369,7 +369,7 @@ <h1 class="title">Helpdesk Management</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:cedeb6d130da8d860c927b8bb9da141d744a51997e0294ea4af2f9a0d1e4185d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/helpdesk/tree/16.0/helpdesk_mgmt"><img alt="OCA/helpdesk" src="https://img.shields.io/badge/github-OCA%2Fhelpdesk-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/helpdesk-16-0/helpdesk-16-0-helpdesk_mgmt"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/helpdesk/tree/17.0/helpdesk_mgmt"><img alt="OCA/helpdesk" src="https://img.shields.io/badge/github-OCA%2Fhelpdesk-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/helpdesk-17-0/helpdesk-17-0-helpdesk_mgmt"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds Helpdesk functionality in Odoo.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand Down Expand Up @@ -407,44 +407,43 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<div class="section" id="channels">
<h2><a class="toc-backref" href="#toc-entry-2">Channels</a></h2>
<ol class="arabic simple">
<li>Go to <em>Helpdesk &gt; Configuration &gt; Channels</em> to edit or create new channels.</li>
<li>Go to <em>Helpdesk &gt; Configuration &gt; Channels</em> to edit or create new
channels.</li>
<li>Edit or create a channel.</li>
<li>Set the name for the channel.</li>
<li>You can also Activate or Deactivate channels.</li>
</ol>
<div class="figure">
<img alt="Channels" src="https://raw.githubusercontent.com/OCA/helpdesk/16.0/helpdesk_mgmt/static/description/Channels.PNG" style="width: 600px;" />
</div>
<p><img alt="image1" src="https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Channels.PNG" /></p>
</div>
<div class="section" id="categories">
<h2><a class="toc-backref" href="#toc-entry-3">Categories</a></h2>
<ol class="arabic simple">
<li>Go to <em>Helpdesk &gt; Configuration &gt; Categories</em> to edit or create new categories.</li>
<li>Go to <em>Helpdesk &gt; Configuration &gt; Categories</em> to edit or create new
categories.</li>
<li>Edit or create a new category.</li>
<li>Set the name for the category.</li>
<li>You can also Activate or Deactivate categories.</li>
</ol>
<div class="figure">
<img alt="Categories" src="https://raw.githubusercontent.com/OCA/helpdesk/16.0/helpdesk_mgmt/static/description/Categories.PNG" style="width: 600px;" />
</div>
<p><img alt="image2" src="https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Categories.PNG" /></p>
</div>
<div class="section" id="stages">
<h2><a class="toc-backref" href="#toc-entry-4">Stages</a></h2>
<ol class="arabic simple">
<li>Go to <em>Helpdesk &gt; Configuration &gt; Stages</em> to edit or create new stages.</li>
<li>Go to <em>Helpdesk &gt; Configuration &gt; Stages</em> to edit or create new
stages.</li>
<li>Edit or create a new stage.</li>
<li>Set the name for the stage.</li>
<li>Set the sequence order for the stage.</li>
<li>You can select an Email template.</li>
<li>Mark the Unattended checkbox if the stage contains unattended tickets.</li>
<li>Mark the Unattended checkbox if the stage contains unattended
tickets.</li>
<li>Mark the Closed checkbox if the stage contains closed tickets.</li>
<li>You can add a description for the stage.</li>
<li>You can also Activate or Deactivate stages.</li>
</ol>
<div class="figure">
<img alt="Stages" src="https://raw.githubusercontent.com/OCA/helpdesk/16.0/helpdesk_mgmt/static/description/Stages.PNG" style="width: 600px;" />
</div>
<p>You can also sort the stage sequence if you move up or down the stages in the list view.</p>
<p><img alt="image3" src="https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Stages.PNG" /></p>
<p>You can also sort the stage sequence if you move up or down the stages
in the list view.</p>
</div>
<div class="section" id="teams">
<h2><a class="toc-backref" href="#toc-entry-5">Teams</a></h2>
Expand All @@ -455,45 +454,48 @@ <h2><a class="toc-backref" href="#toc-entry-5">Teams</a></h2>
<li>Add the teams members.</li>
<li>You can also Activate or Deactivate teams.</li>
</ol>
<div class="figure">
<img alt="Teams" src="https://raw.githubusercontent.com/OCA/helpdesk/16.0/helpdesk_mgmt/static/description/Teams.PNG" style="width: 600px;" />
</div>
<p><img alt="image4" src="https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Teams.PNG" /></p>
</div>
<div class="section" id="tags">
<h2><a class="toc-backref" href="#toc-entry-6">Tags</a></h2>
<ol class="arabic simple">
<li>Go to <em>Helpdesk &gt; Configuration &gt; Ticket Tags</em> to edit or create new tags.</li>
<li>Go to <em>Helpdesk &gt; Configuration &gt; Ticket Tags</em> to edit or create new
tags.</li>
<li>Edit or create a new tag.</li>
<li>Set the name for the tag.</li>
<li>Set the color index for the tag.</li>
<li>You can also Activate or Deactivate tags.</li>
</ol>
<div class="figure">
<img alt="Ticket Tags" src="https://raw.githubusercontent.com/OCA/helpdesk/16.0/helpdesk_mgmt/static/description/Tags.PNG" style="width: 600px;" />
</div>
<p><img alt="image5" src="https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Tags.PNG" /></p>
</div>
<div class="section" id="permissions">
<h2><a class="toc-backref" href="#toc-entry-7">Permissions</a></h2>
<p>There are restrictions to read tickets according to the user’s permissions set in Helpdesk.</p>
<p>There are restrictions to read tickets according to the user’s
permissions set in Helpdesk.</p>
<ol class="arabic simple">
<li><em>User: Personal tickets</em>: User is able to see their tickets (those that are assigned to their user) or those that are no team nor user is assigned.</li>
<li><em>User: Team tickets</em>: 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.</li>
<li><em>User: Personal tickets</em>: User is able to see their tickets (those
that are assigned to their user) or those that are no team nor user
is assigned.</li>
<li><em>User: Team tickets</em>: 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.</li>
<li><em>User</em>: User is able to see all the tickets.</li>
</ol>
</div>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-8">Usage</a></h1>
<ol class="arabic simple">
<li>Go to <em>Helpdesk</em> or <em>Helpdesk &gt; Dashboard</em> to see the tickets dashboard</li>
<li>In the Kanban view, click in the kanban card of a team to see their tickets and create new ones.</li>
<li>Go to <em>Helpdesk</em> or <em>Helpdesk &gt; Dashboard</em> to see the tickets
dashboard</li>
<li>In the Kanban view, click in the kanban card of a team to see their
tickets and create new ones.</li>
</ol>
<div class="figure">
<img alt="Kanban view" src="https://raw.githubusercontent.com/OCA/helpdesk/16.0/helpdesk_mgmt/static/description/Tickets_Kanban.PNG" style="width: 600px;" />
</div>
<p><img alt="Tickets_Kanban" src="https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Tickets_Kanban.PNG" /></p>
<p>To create a new ticket from the kanban view:</p>
<ol class="arabic simple">
<li>Press <em>Create</em> button or click on the plus icon at the top of the column of a stage.</li>
<li>Press <em>Create</em> button or click on the plus icon at the top of the
column of a stage.</li>
<li>Set the name or subject for the ticket.</li>
<li>Select the team that will manage the ticket.</li>
<li>You can select a user to assign the ticket.</li>
Expand All @@ -503,24 +505,24 @@ <h1><a class="toc-backref" href="#toc-entry-8">Usage</a></h1>
<li>Add a description.</li>
<li>You can also attach files to the ticket.</li>
</ol>
<div class="figure">
<img alt="Create a new ticket" src="https://raw.githubusercontent.com/OCA/helpdesk/16.0/helpdesk_mgmt/static/description/Tickets01.PNG" style="width: 600px;" />
</div>
<p><img alt="Tickets01" src="https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Tickets01.PNG" /></p>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-9">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>Add a tour feature similar to what the <tt class="docutils literal">project</tt> module defines to discover projects / tasks.</li>
<li>Update portal tests defined in <tt class="docutils literal">tests/test_portal.py</tt> to rely on tour specs (in JS)
in order to replicate the navigation behavior of portal users.</li>
<li>Add a tour feature similar to what the <tt class="docutils literal">project</tt> module defines to
discover projects / tasks.</li>
<li>Update portal tests defined in <tt class="docutils literal">tests/test_portal.py</tt> to rely on
tour specs (in JS) in order to replicate the navigation behavior of
portal users.</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-10">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/helpdesk/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/helpdesk/issues/new?body=module:%20helpdesk_mgmt%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/helpdesk/issues/new?body=module:%20helpdesk_mgmt%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -568,8 +570,6 @@ <h2><a class="toc-backref" href="#toc-entry-13">Contributors</a></h2>
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>Pedro M. Baeza</li>
<li>Víctor Martínez</li>
<li>Carolina Fernandez</li>
<li>Carlos Roca</li>
</ul>
</li>
<li><a class="reference external" href="https://www.id42.com.br">ID42 Sistemas</a>:<ul>
Expand All @@ -594,11 +594,13 @@ <h2><a class="toc-backref" href="#toc-entry-13">Contributors</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-14">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/helpdesk/tree/16.0/helpdesk_mgmt">OCA/helpdesk</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/helpdesk/tree/17.0/helpdesk_mgmt">OCA/helpdesk</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
Binary file removed pandoc-3.1.11-1-amd64.deb
Binary file not shown.

0 comments on commit f6b2819

Please sign in to comment.