Skip to content

Commit 6166e3e

Browse files
committed
[MIG] tracking_manager: Migration to 19.0
1 parent 2fb0dce commit 6166e3e

File tree

6 files changed

+21
-22
lines changed

6 files changed

+21
-22
lines changed

tracking_manager/README.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Tracking Manager
2121
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2222
:alt: License: AGPL-3
2323
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
24-
:target: https://github.com/OCA/server-tools/tree/18.0/tracking_manager
24+
:target: https://github.com/OCA/server-tools/tree/19.0/tracking_manager
2525
:alt: OCA/server-tools
2626
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-tracking_manager
27+
:target: https://translation.odoo-community.org/projects/server-tools-19-0/server-tools-19-0-tracking_manager
2828
:alt: Translate me on Weblate
2929
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=19.0
3131
:alt: Try me on Runboat
3232

3333
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -67,16 +67,16 @@ Usage
6767

6868
|image1|
6969

70-
.. |image| image:: https://raw.githubusercontent.com/OCA/server-tools/18.0/tracking_manager/static/description/model_view.png
71-
.. |image1| image:: https://raw.githubusercontent.com/OCA/server-tools/18.0/tracking_manager/static/description/fields.png
70+
.. |image| image:: https://raw.githubusercontent.com/OCA/server-tools/19.0/tracking_manager/static/description/model_view.png
71+
.. |image1| image:: https://raw.githubusercontent.com/OCA/server-tools/19.0/tracking_manager/static/description/fields.png
7272

7373
Bug Tracker
7474
===========
7575

7676
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
7777
In case of trouble, please check there if your issue has already been reported.
7878
If you spotted it first, help us to smash it by providing a detailed and welcomed
79-
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20tracking_manager%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
79+
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20tracking_manager%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
8080

8181
Do not contact contributors directly about support or help with technical issues.
8282

@@ -94,6 +94,7 @@ Contributors
9494
- Kévin Roche <kevin.roche@akretion.com>
9595
- Sébastien BEAU <sebastien.beau@akretion.com>
9696
- Christopher Rogos <crogos@gmail.com>
97+
- Michel Guiheneuf <mgu@apik.cloud>
9798

9899
Maintainers
99100
-----------
@@ -119,6 +120,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
119120

120121
|maintainer-Kev-Roche| |maintainer-sebastienbeau|
121122

122-
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/18.0/tracking_manager>`_ project on GitHub.
123+
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/19.0/tracking_manager>`_ project on GitHub.
123124

124125
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

tracking_manager/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"name": "Tracking Manager",
77
"summary": """This module tracks all fields of a model,
88
including one2many and many2many ones.""",
9-
"version": "18.0.1.1.0",
9+
"version": "19.0.1.1.0",
1010
"category": "Tools",
1111
"website": "https://github.com/OCA/server-tools",
1212
"author": "Akretion, Odoo Community Association (OCA)",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
- Kévin Roche \<<kevin.roche@akretion.com>\>
22
- Sébastien BEAU \<<sebastien.beau@akretion.com>\>
3-
- Christopher Rogos \<<crogos@gmail.com>\>
3+
- Christopher Rogos \<<crogos@gmail.com>\>
4+
- Michel Guiheneuf \<<mgu@apik.cloud>\>

tracking_manager/static/description/index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ <h1>Tracking Manager</h1>
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375375
!! source digest: sha256:ae03b47c76a9373b925885f6a4674ae97580ce1e189e24d1e3ad100cff03c705
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/18.0/tracking_manager"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-tracking_manager"><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/server-tools&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/19.0/tracking_manager"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-19-0/server-tools-19-0-tracking_manager"><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/server-tools&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>This module allows to track all fields on every model that has a
379379
chatter, including one2many and many2many ones. This excludes the
380380
computed, readonly, related fields by default. In addition, line changes
@@ -412,18 +412,18 @@ <h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
412412
</ul>
413413
</li>
414414
</ul>
415-
<p><img alt="image" src="https://raw.githubusercontent.com/OCA/server-tools/18.0/tracking_manager/static/description/model_view.png" /></p>
415+
<p><img alt="image" src="https://raw.githubusercontent.com/OCA/server-tools/19.0/tracking_manager/static/description/model_view.png" /></p>
416416
<ul class="simple">
417417
<li>Then select the fields to track</li>
418418
</ul>
419-
<p><img alt="image1" src="https://raw.githubusercontent.com/OCA/server-tools/18.0/tracking_manager/static/description/fields.png" /></p>
419+
<p><img alt="image1" src="https://raw.githubusercontent.com/OCA/server-tools/19.0/tracking_manager/static/description/fields.png" /></p>
420420
</div>
421421
<div class="section" id="bug-tracker">
422422
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
423423
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>.
424424
In case of trouble, please check there if your issue has already been reported.
425425
If you spotted it first, help us to smash it by providing a detailed and welcomed
426-
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20tracking_manager%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
426+
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20tracking_manager%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
427427
<p>Do not contact contributors directly about support or help with technical issues.</p>
428428
</div>
429429
<div class="section" id="credits">
@@ -440,6 +440,7 @@ <h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
440440
<li>Kévin Roche &lt;<a class="reference external" href="mailto:kevin.roche&#64;akretion.com">kevin.roche&#64;akretion.com</a>&gt;</li>
441441
<li>Sébastien BEAU &lt;<a class="reference external" href="mailto:sebastien.beau&#64;akretion.com">sebastien.beau&#64;akretion.com</a>&gt;</li>
442442
<li>Christopher Rogos &lt;<a class="reference external" href="mailto:crogos&#64;gmail.com">crogos&#64;gmail.com</a>&gt;</li>
443+
<li>Michel Guiheneuf &lt;<a class="reference external" href="mailto:mgu&#64;apik.cloud">mgu&#64;apik.cloud</a>&gt;</li>
443444
</ul>
444445
</div>
445446
<div class="section" id="maintainers">
@@ -453,7 +454,7 @@ <h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
453454
promote its widespread use.</p>
454455
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
455456
<p><a class="reference external image-reference" href="https://github.com/Kev-Roche"><img alt="Kev-Roche" src="https://github.com/Kev-Roche.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/sebastienbeau"><img alt="sebastienbeau" src="https://github.com/sebastienbeau.png?size=40px" /></a></p>
456-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/18.0/tracking_manager">OCA/server-tools</a> project on GitHub.</p>
457+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/19.0/tracking_manager">OCA/server-tools</a> project on GitHub.</p>
457458
<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>
458459
</div>
459460
</div>

tracking_manager/tests/test_mail_tracking_value.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _test_create_tracking_values_property(self, values):
6464
initial_value = values[p_name][0]
6565
new_value = values[p_name][1]
6666
res = self.MailTracking._create_tracking_values_property(
67-
initial_value, new_value, "title", col_info, self.partner
67+
initial_value, new_value, "name", col_info, self.partner
6868
)
6969
del res["field_info"]
7070
f_name = property_type_mapped[col_info["type"]]
@@ -133,10 +133,6 @@ def test_mail_tracking_value_properties(self):
133133
"property_09": (False, self.partner.id),
134134
"property_10": (False, [self.partner.id, partner_extra.id]),
135135
}
136-
# Test all the property types using as fake title field because there is no
137-
# property field in base to test.
138-
# We do not want to create a FakeModel and add the property field in partner
139-
# because the partner_property module could have conflicts.
140136
# 1- Test the case that all the initial values were empty and now have a value
141137
self._test_create_tracking_values_property(test_properties_01)
142138
# 2- Test the case that all the initial values had something set and now have

tracking_manager/tests/test_tracking_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _get_fields(cls, fields_list):
4343
return cls.partner_model.field_id.filtered(lambda s: s.name in fields_list)
4444

4545
def test_not_tracked(self):
46-
field = self._get_fields(["mobile"])[0]
46+
field = self._get_fields(["phone"])[0]
4747
self.assertFalse(field.native_tracking)
4848
self.assertFalse(field.custom_tracking)
4949

@@ -53,7 +53,7 @@ def test_native_tracked(self):
5353
self.assertTrue(field.custom_tracking)
5454

5555
def test_update_tracked(self):
56-
field = self._get_fields(["mobile"])[0]
56+
field = self._get_fields(["phone"])[0]
5757
self.assertFalse(field.native_tracking)
5858
self.partner_model.automatic_custom_tracking = True
5959
self.partner_model.update_custom_tracking()
@@ -175,7 +175,7 @@ def test_o2m_update_m2m_indirectly(self):
175175
Command.UPDATE,
176176
self.partner.user_ids[0].id,
177177
{
178-
"groups_id": [
178+
"group_ids": [
179179
(
180180
6,
181181
0,

0 commit comments

Comments
 (0)