Skip to content

Commit

Permalink
Merge branch 'OCA:16.0' into 16.0-t3829-helpdesk_mgmt_templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Bearnard21 authored Sep 11, 2024
2 parents a41021b + 2dfbda6 commit 78d1071
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[helpdesk_mgmt](helpdesk_mgmt/) | 16.0.2.6.1 | | Helpdesk
[helpdesk_mgmt](helpdesk_mgmt/) | 16.0.2.6.2 | | Helpdesk
[helpdesk_mgmt_project](helpdesk_mgmt_project/) | 16.0.2.2.0 | | Add the option to select project in the tickets.
[helpdesk_mgmt_rating](helpdesk_mgmt_rating/) | 16.0.1.0.0 | | This module allows customer to rate the assistance received on a ticket.
[helpdesk_mgmt_timesheet](helpdesk_mgmt_timesheet/) | 16.0.1.5.1 | | Add HR Timesheet to the tickets for Helpdesk Management.
Expand Down
2 changes: 1 addition & 1 deletion helpdesk_mgmt/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Helpdesk Management
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4d44f400caf38a0678ff76f28b1da6b9e8454ac4905fd69f1824d13ae26448e5
!! source digest: sha256:a5c1fe41ebe60837c24f33363511111603fcee2f9387b84bd2fe69aaaafb5938
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion 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": "16.0.2.6.1",
"version": "16.0.2.6.2",
"license": "AGPL-3",
"category": "After-Sales",
"author": "AdaptiveCity, "
Expand Down
2 changes: 1 addition & 1 deletion helpdesk_mgmt/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Helpdesk Management</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4d44f400caf38a0678ff76f28b1da6b9e8454ac4905fd69f1824d13ae26448e5
!! source digest: sha256:a5c1fe41ebe60837c24f33363511111603fcee2f9387b84bd2fe69aaaafb5938
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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>This module adds Helpdesk functionality in Odoo.</p>
Expand Down
1 change: 1 addition & 0 deletions helpdesk_mgmt/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def setUpClass(cls):
"mail_notrack": True,
"no_reset_password": True,
}
cls.company = cls.env.company
cls.user_own = new_test_user(
cls.env,
login="helpdesk_mgmt-user_own",
Expand Down
50 changes: 50 additions & 0 deletions helpdesk_mgmt/tests/test_helpdesk_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,56 @@ def setUpClass(cls):
super().setUpClass()
cls.ticket = cls.ticket_a_unassigned

def test_helpdesk_ticket_team_company(self):
ticket_a = self.env["helpdesk.ticket"].create(
{
"name": "Test ticket A",
"team_id": self.team_a.id,
"description": "description",
}
)
self.assertEqual(ticket_a.company_id, self.company)
self.team_b.company_id = False
ticket_b = self.env["helpdesk.ticket"].create(
{
"name": "Test ticket b",
"team_id": self.team_b.id,
"description": "description",
}
)
self.assertEqual(ticket_b.company_id, self.company)

def test_helpdesk_ticket_team_company_extra(self):
company = self.env["res.company"].create({"name": "Test company"})
team = self.env["helpdesk.ticket.team"].create(
{"name": "Test team", "company_id": False}
)
ticket = (
self.env["helpdesk.ticket"]
.with_company(company)
.create(
{
"name": "Test ticket",
"team_id": team.id,
"description": "description",
}
)
)
self.assertEqual(ticket.company_id, company)
team.company_id = self.company
ticket = (
self.env["helpdesk.ticket"]
.with_company(company)
.create(
{
"name": "Test ticket",
"team_id": team.id,
"description": "description",
}
)
)
self.assertEqual(ticket.company_id, self.company)

def test_helpdesk_ticket_datetimes(self):
old_stage_update = self.ticket.last_stage_update
self.assertTrue(
Expand Down

0 comments on commit 78d1071

Please sign in to comment.