From 59aca57293d8c306e2252cd168555bd848b3a99e Mon Sep 17 00:00:00 2001 From: nicolas Date: Fri, 8 Jul 2022 08:31:34 -0300 Subject: [PATCH] [FIX] mail_autosubscribe: fix email template --- mail_autosubscribe/tests/test_mail_autosubscribe.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mail_autosubscribe/tests/test_mail_autosubscribe.py b/mail_autosubscribe/tests/test_mail_autosubscribe.py index 6c16f03..27969c8 100644 --- a/mail_autosubscribe/tests/test_mail_autosubscribe.py +++ b/mail_autosubscribe/tests/test_mail_autosubscribe.py @@ -28,8 +28,8 @@ class TestMailAutosubscribe(TransactionCase): { "model_id": cls.fake_order_model.id, "name": "Fake Order: Send by Mail", - "subject": "Fake Order: ${object.partner_id.name}", - "partner_to": "${object.partner_id.id}", + "subject": "Fake Order: {{object.partner_id.name}}", + "partner_to": "{{object.partner_id.id}}", "body_html": "Hello, this is a fake order", } ) @@ -111,7 +111,7 @@ class TestMailAutosubscribe(TransactionCase): default_composition_mode="comment", ) ) - composer.save().send_mail() + composer.save().action_send_mail() message = self.order.message_ids[0] self.assertEqual(message.partner_ids, self.partner_2 | self.partner_3) @@ -127,6 +127,6 @@ class TestMailAutosubscribe(TransactionCase): default_composition_mode="comment", ) ) - composer.save().send_mail() + composer.save().action_send_mail() message = self.order.message_ids[0] self.assertEqual(message.partner_ids, self.partner_2)