[MIG] base_comment_template: Migration to 15.0

TT35696
This commit is contained in:
Víctor Martínez
2022-09-13 16:43:26 +02:00
committed by Jesús Alan Ramos Rodríguez
parent 61973247ec
commit 1a9d3178f1
23 changed files with 106 additions and 330 deletions

View File

@@ -92,7 +92,7 @@ class TestCommentTemplate(common.TransactionCase):
def test_render_comment_text(self):
expected_text = "Test comment render %s" % self.user.name
self.before_template_id.text = "Test comment render ${object.name}"
self.before_template_id.text = "Test comment render {{object.name}}"
with self.with_user(self.user.login):
self.assertEqual(
self.user.render_comment(self.before_template_id), expected_text
@@ -114,7 +114,7 @@ class TestCommentTemplate(common.TransactionCase):
{"name": "Ambasador", "shortcut": "Amb."}
)
self.user.partner_id.title = partner_title
self.before_template_id.text = "Test comment render ${object.title.name}"
self.before_template_id.text = "Test comment render {{object.title.name}}"
expected_en_text = "Test comment render Ambassador"
expected_ro_text = "Test comment render Ambasador"