From 866494a6b345f2a8d0739de444f3e9ee319a0536 Mon Sep 17 00:00:00 2001
From: ilo <dev@nomadiplus.com>
Date: Tue, 19 Nov 2024 09:22:41 -0300
Subject: [PATCH] [17.0][MIG] helpdesk_motive: Migration to 17.0

---
 helpdesk_motive/README.rst                    | 4 ++++
 helpdesk_motive/__manifest__.py               | 3 ++-
 helpdesk_motive/demo/helpdesk_motive_demo.xml | 4 ++--
 helpdesk_motive/readme/CONTRIBUTORS.md        | 2 ++
 helpdesk_motive/static/description/index.html | 4 ++++
 helpdesk_motive/tests/test_helpdesk_motive.py | 3 +--
 6 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/helpdesk_motive/README.rst b/helpdesk_motive/README.rst
index 4ffdb2dafe..a2738dea92 100644
--- a/helpdesk_motive/README.rst
+++ b/helpdesk_motive/README.rst
@@ -88,6 +88,10 @@ Contributors
 
    -  Adasat Torres <a.torres@binhex.cloud>
 
+-  \`Camptocamp <https://camptocamp.com>\_\`:
+
+   -  Italo Lopes <italo.lopes@camptocamp.com>
+
 Maintainers
 -----------
 
diff --git a/helpdesk_motive/__manifest__.py b/helpdesk_motive/__manifest__.py
index e7de9aab71..dcb878d90e 100644
--- a/helpdesk_motive/__manifest__.py
+++ b/helpdesk_motive/__manifest__.py
@@ -8,7 +8,8 @@
     "version": "17.0.1.0.0",
     "license": "AGPL-3",
     "summary": "Keep the motive ",
-    "author": "Binhex, Konos, Open Source Integrators, Odoo Community Association (OCA)",
+    "author": "Binhex, Konos, Open Source Integrators, "
+    "Odoo Community Association (OCA)",
     "website": "https://github.com/OCA/helpdesk",
     "depends": ["helpdesk_mgmt"],
     "data": [
diff --git a/helpdesk_motive/demo/helpdesk_motive_demo.xml b/helpdesk_motive/demo/helpdesk_motive_demo.xml
index 6acf32bf14..85f740d9ba 100644
--- a/helpdesk_motive/demo/helpdesk_motive_demo.xml
+++ b/helpdesk_motive/demo/helpdesk_motive_demo.xml
@@ -3,11 +3,11 @@
 
     <record id="helpdesk_motive_1" model="helpdesk.ticket.motive">
         <field name="name">Client requirement</field>
-        <field name="team_id" ref="helpdesk_mgmt.helpdesk_team_1" />
+        <field name="team_id" ref="helpdesk_mgmt.helpdesk_team_1_demo" />
     </record>
     <record id="helpdesk_motive_2" model="helpdesk.ticket.motive">
         <field name="name">Update required</field>
-        <field name="team_id" ref="helpdesk_mgmt.helpdesk_team_1" />
+        <field name="team_id" ref="helpdesk_mgmt.helpdesk_team_1_demo" />
     </record>
 
     <record id="helpdesk_mgmt.helpdesk_ticket_7" model="helpdesk.ticket">
diff --git a/helpdesk_motive/readme/CONTRIBUTORS.md b/helpdesk_motive/readme/CONTRIBUTORS.md
index 6ec409ae2d..a637c95b31 100644
--- a/helpdesk_motive/readme/CONTRIBUTORS.md
+++ b/helpdesk_motive/readme/CONTRIBUTORS.md
@@ -6,3 +6,5 @@
   - David Alonso \<<david.alonso@solvos.es>\>
 - \`Binhex \<<https://binhex.cloud>\>\_\`:
   - Adasat Torres \<<a.torres@binhex.cloud>\>
+- \`Camptocamp \<<https://camptocamp.com>\>\_\`:
+  - Italo Lopes \<<italo.lopes@camptocamp.com>\>
diff --git a/helpdesk_motive/static/description/index.html b/helpdesk_motive/static/description/index.html
index 0b3bcfabbb..d365245311 100644
--- a/helpdesk_motive/static/description/index.html
+++ b/helpdesk_motive/static/description/index.html
@@ -437,6 +437,10 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
 <li>Adasat Torres &lt;<a class="reference external" href="mailto:a.torres&#64;binhex.cloud">a.torres&#64;binhex.cloud</a>&gt;</li>
 </ul>
 </li>
+<li>`Camptocamp &lt;<a class="reference external" href="https://camptocamp.com">https://camptocamp.com</a>&gt;_`:<ul>
+<li>Italo Lopes &lt;<a class="reference external" href="mailto:italo.lopes&#64;camptocamp.com">italo.lopes&#64;camptocamp.com</a>&gt;</li>
+</ul>
+</li>
 </ul>
 </div>
 <div class="section" id="maintainers">
diff --git a/helpdesk_motive/tests/test_helpdesk_motive.py b/helpdesk_motive/tests/test_helpdesk_motive.py
index 3b46ee22b9..1c354b3dd5 100644
--- a/helpdesk_motive/tests/test_helpdesk_motive.py
+++ b/helpdesk_motive/tests/test_helpdesk_motive.py
@@ -46,8 +46,7 @@ def setUpClass(cls):
     def _create_ticket(self, team, motive, user=False):
         return self.env["helpdesk.ticket"].create(
             {
-                "name": "Ticket %s (%s)"
-                % (team.name, user.login if user else "unassigned"),
+                "name": f"Ticket {team.name} {user.login if user else 'unassigned'}",
                 "description": "Description",
                 "team_id": team.id,
                 "user_id": user.id if user else False,