Skip to content

Commit

Permalink
[18.0][MIG] helpdesk_mgmt: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kobros-tech committed Jan 5, 2025
1 parent 9a6292c commit 7efa61e
Show file tree
Hide file tree
Showing 32 changed files with 474 additions and 2,304 deletions.
31 changes: 18 additions & 13 deletions helpdesk_mgmt/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Helpdesk Management
: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/17.0/helpdesk_mgmt
:target: https://github.com/OCA/helpdesk/tree/18.0/helpdesk_mgmt
:alt: OCA/helpdesk
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/helpdesk-17-0/helpdesk-17-0-helpdesk_mgmt
:target: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt
: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=17.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -125,11 +125,11 @@ permissions set in Helpdesk.
not assigned to any team nor user.
3. *User*: User is able to see all the tickets.

.. |image1| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Channels.PNG
.. |image2| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Categories.PNG
.. |image3| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Stages.PNG
.. |image4| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Teams.PNG
.. |image5| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Tags.PNG
.. |image1| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Channels.PNG
.. |image2| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Categories.PNG
.. |image3| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Stages.PNG
.. |image4| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Teams.PNG
.. |image5| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tags.PNG

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

|Tickets01|
|Tickets01| |Tickets02|

.. |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
.. |Tickets_Kanban| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tickets_Kanban.PNG
.. |Tickets01| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tickets01.PNG
.. |Tickets02| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tickets02.PNG

Known issues / Roadmap
======================
Expand All @@ -174,7 +175,7 @@ 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%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/helpdesk/issues/new?body=module:%20helpdesk_mgmt%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.

Expand Down Expand Up @@ -244,6 +245,10 @@ Contributors

- Houzéfa Abbasbhay

- `Kencove <https://kencove.com>`__:

- Mohamed Alkobrosli

Maintainers
-----------

Expand All @@ -257,6 +262,6 @@ 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/17.0/helpdesk_mgmt>`_ project on GitHub.
This module is part of the `OCA/helpdesk <https://github.com/OCA/helpdesk/tree/18.0/helpdesk_mgmt>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 2 additions & 2 deletions helpdesk_mgmt/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "Helpdesk Management",
"summary": """
Helpdesk""",
"version": "17.0.1.0.1",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"category": "After-Sales",
"author": "AdaptiveCity, "
Expand Down Expand Up @@ -36,7 +36,7 @@
"demo": ["demo/helpdesk_demo.xml"],
"assets": {
"web.assets_frontend": [
"helpdesk_mgmt/static/src/js/new_ticket.js",
"helpdesk_mgmt/static/src/js/new_ticket.esm.js",
],
},
"development_status": "Beta",
Expand Down
2 changes: 1 addition & 1 deletion helpdesk_mgmt/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ def submit_ticket(self, **kw):
"res_id": new_ticket.id,
}
)
return werkzeug.utils.redirect("/my/ticket/%s" % new_ticket.id)
return werkzeug.utils.redirect(f"/my/ticket/{new_ticket.id}")
4 changes: 2 additions & 2 deletions helpdesk_mgmt/controllers/myaccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _prepare_home_portal_values(self, counters):
helpdesk_model = request.env["helpdesk.ticket"]
ticket_count = (

Check warning on line 25 in helpdesk_mgmt/controllers/myaccount.py

View check run for this annotation

Codecov / codecov/patch

helpdesk_mgmt/controllers/myaccount.py#L24-L25

Added lines #L24 - L25 were not covered by tests
helpdesk_model.search_count([])
if helpdesk_model.check_access_rights("read", raise_exception=False)
if helpdesk_model.has_access("read")
else 0
)
values["ticket_count"] = ticket_count

Check warning on line 30 in helpdesk_mgmt/controllers/myaccount.py

View check run for this annotation

Codecov / codecov/patch

helpdesk_mgmt/controllers/myaccount.py#L30

Added line #L30 was not covered by tests
Expand All @@ -50,7 +50,7 @@ def portal_my_tickets(
):
HelpdeskTicket = request.env["helpdesk.ticket"]
# Avoid error if the user does not have access.
if not HelpdeskTicket.check_access_rights("read", raise_exception=False):
if not HelpdeskTicket.has_access("read"):
return request.redirect("/my")

Check warning on line 54 in helpdesk_mgmt/controllers/myaccount.py

View check run for this annotation

Codecov / codecov/patch

helpdesk_mgmt/controllers/myaccount.py#L54

Added line #L54 was not covered by tests

values = self._prepare_portal_layout_values()
Expand Down
Loading

0 comments on commit 7efa61e

Please sign in to comment.