[MIG] mail_improved_tracking_value: Migration to 16.0

pull/1163/head
Anna Janiszewska 2023-06-12 11:07:55 +02:00
parent 280f325c33
commit 991ff000a8
2 changed files with 10 additions and 9 deletions

View File

@ -3,7 +3,7 @@
{
"name": "Improved tracking value change",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"summary": "Improves tracking changed values for certain type of fields."
"Adds a user-friendly view to consult them.",
"author": "Camptocamp, Odoo Community Association (OCA)",

View File

@ -7,14 +7,15 @@ from odoo.tests.common import TransactionCase
class TestImproveTrackingValue(TransactionCase):
def setUp(self):
super(TestImproveTrackingValue, self).setUp()
self.model = self.env["mail.tracking.value"]
self.msg = self.env["mail.message"].create({"message_type": "email"})
self.mr = self.env.ref("base.res_partner_title_mister")
self.dr = self.env.ref("base.res_partner_title_doctor")
self.mm = self.env.ref("base.res_partner_title_madam")
self.pf = self.env.ref("base.res_partner_title_prof")
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.model = cls.env["mail.tracking.value"]
cls.msg = cls.env["mail.message"].create({"message_type": "email"})
cls.mr = cls.env.ref("base.res_partner_title_mister")
cls.dr = cls.env.ref("base.res_partner_title_doctor")
cls.mm = cls.env.ref("base.res_partner_title_madam")
cls.pf = cls.env.ref("base.res_partner_title_prof")
def test_change_one2many(self):
"""Test tracking one2many changes"""