[FIX][15.0] mail_debrand: test_mail_digest update for 15.0

update function calls to use new internal names, use qweb_view engine to be able to specify the template via xmlid
This commit is contained in:
dhx 2022-06-08 12:22:45 +02:00
parent 2147fe9376
commit f71f668899

View File

@ -38,7 +38,7 @@ class TestMailDebrandDigest(common.TransactionCase):
"digest.digest_mail_main",
"digest.digest",
self.mail_digest_id.ids,
engine="qweb",
engine="qweb_view",
add_context={
"title": self.mail_digest_id.name,
"top_button_label": _("Connect"),
@ -48,13 +48,13 @@ class TestMailDebrandDigest(common.TransactionCase):
"tips_count": 1,
"formatted_date": datetime.today().strftime("%B %d, %Y"),
"display_mobile_banner": True,
"kpi_data": self.mail_digest_id.compute_kpis(
"kpi_data": self.mail_digest_id._compute_kpis(
self.env.user.company_id, self.env.user
),
"tips": self.mail_digest_id.compute_tips(
"tips": self.mail_digest_id._compute_tips(
self.env.user.company_id, self.env.user, tips_count=1, consumed=True
),
"preferences": self.mail_digest_id.compute_preferences(
"preferences": self.mail_digest_id._compute_preferences(
self.env.user.company_id, self.env.user
),
},