Skip to content

Commit

Permalink
[MIG] helpdesk_mgmt_crm: Migration to 15.0
Browse files Browse the repository at this point in the history
TT50685
  • Loading branch information
pilarvargas-tecnativa committed Sep 18, 2024
1 parent 6badb1a commit 8f8471d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
11 changes: 6 additions & 5 deletions helpdesk_mgmt_crm/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Link between Helpdesk and CRM
: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/13.0/helpdesk_mgmt_crm
:target: https://github.com/OCA/helpdesk/tree/15.0/helpdesk_mgmt_crm
:alt: OCA/helpdesk
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/helpdesk-13-0/helpdesk-13-0-helpdesk_mgmt_crm
:target: https://translation.odoo-community.org/projects/helpdesk-15-0/helpdesk-15-0-helpdesk_mgmt_crm
: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=13.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&target_branch=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -53,7 +53,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_crm%0Aversion:%2013.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_crm%0Aversion:%2015.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 All @@ -72,6 +72,7 @@ Contributors

* Víctor Martínez
* Pedro M. Baeza
* Pilar Vargas

Maintainers
~~~~~~~~~~~
Expand All @@ -94,6 +95,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-victoralmau|

This module is part of the `OCA/helpdesk <https://github.com/OCA/helpdesk/tree/13.0/helpdesk_mgmt_crm>`_ project on GitHub.
This module is part of the `OCA/helpdesk <https://github.com/OCA/helpdesk/tree/15.0/helpdesk_mgmt_crm>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 2 additions & 1 deletion helpdesk_mgmt_crm/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
{
"name": "Link between Helpdesk and CRM",
"summary": "Links helpdesk tickets with leads",
"version": "13.0.1.0.1",
"version": "15.0.1.0.1",
"category": "After-Sales",
"website": "https://github.com/OCA/helpdesk",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["helpdesk_mgmt", "crm"],
"external_dependencies": {"python": ["html2text"]},
"data": [
"security/ir.model.access.csv",
"wizard/helpdesk_ticket_create_lead_views.xml",
"views/crm_lead_view.xml",
"views/helpdesk_ticket_view.xml",
Expand Down
1 change: 1 addition & 0 deletions helpdesk_mgmt_crm/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

* Víctor Martínez
* Pedro M. Baeza
* Pilar Vargas
3 changes: 3 additions & 0 deletions helpdesk_mgmt_crm/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
helpdesk_mgmt_crm.access_helpdesk_ticket_create_lead,access_helpdesk_ticket_create_lead,helpdesk_mgmt_crm.model_helpdesk_ticket_create_lead,base.group_user,1,0,0,0
helpdesk_mgmt_crm_salesman.access_helpdesk_ticket_create_lead,access_helpdesk_ticket_create_lead,helpdesk_mgmt_crm.model_helpdesk_ticket_create_lead,sales_team.group_sale_salesman,1,1,1,1
8 changes: 4 additions & 4 deletions helpdesk_mgmt_crm/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 Down Expand Up @@ -369,7 +368,7 @@ <h1 class="title">Link between Helpdesk and CRM</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e4949b62cea363d636d67d6d8d8327c15674c38e905148455981c9ecaed8aca6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/13.0/helpdesk_mgmt_crm"><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-13-0/helpdesk-13-0-helpdesk_mgmt_crm"><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=13.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/15.0/helpdesk_mgmt_crm"><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-15-0/helpdesk-15-0-helpdesk_mgmt_crm"><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=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to convert a helpdesk ticket into an opportunity, transferring its messages,
and keeping both linked.</p>
<p><strong>Table of contents</strong></p>
Expand Down Expand Up @@ -402,7 +401,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">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_crm%0Aversion:%2013.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_crm%0Aversion:%2015.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 All @@ -419,6 +418,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>Víctor Martínez</li>
<li>Pedro M. Baeza</li>
<li>Pilar Vargas</li>
</ul>
</li>
</ul>
Expand All @@ -432,7 +432,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/victoralmau"><img alt="victoralmau" src="https://github.com/victoralmau.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/helpdesk/tree/13.0/helpdesk_mgmt_crm">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/15.0/helpdesk_mgmt_crm">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
6 changes: 3 additions & 3 deletions helpdesk_mgmt_crm/tests/test_helpdesk_mgmt_crm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from odoo.tests.common import new_test_user, users


class TestHelpdeskMgmtCrm(common.SavepointCase):
class TestHelpdeskMgmtCrm(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
Expand Down Expand Up @@ -42,7 +42,7 @@ def test_action_lead_create(self):
subtype_ids=[self.env.ref("mail.mt_comment").id],
)
# pylint: disable=translation-required
self.ticket.message_post(body="Ejemplo", subtype="mail.mt_comment")
self.ticket.message_post(body="Ejemplo", subtype_xmlid="mail.mt_comment")
self.assertIn(
self.ticket.partner_id,
self.ticket.mapped("message_follower_ids.partner_id"),
Expand All @@ -63,7 +63,7 @@ def test_action_lead_create(self):
self.assertEqual(self.ticket.user_id, self.ticket.lead_ids.user_id)
self.assertEqual(
html2text.html2text(self.ticket.description),
self.ticket.lead_ids.description,
html2text.html2text(self.ticket.lead_ids.description),
)
self.assertGreater(len(self.ticket.lead_ids.message_ids), len(old_messages))
self.assertGreater(len(self.ticket.message_ids), len(old_messages))
Expand Down

0 comments on commit 8f8471d

Please sign in to comment.