diff --git a/mail_autosubscribe/__manifest__.py b/mail_autosubscribe/__manifest__.py index 2a9e5d632..0183c34f3 100644 --- a/mail_autosubscribe/__manifest__.py +++ b/mail_autosubscribe/__manifest__.py @@ -10,6 +10,9 @@ "license": "AGPL-3", "category": "Marketing", "depends": ["mail"], + "external_dependencies": { + "python": ["odoo_test_helper"], + }, "website": "https://github.com/OCA/social", "data": [ "security/ir.model.access.csv", diff --git a/mail_autosubscribe/readme/CONTRIBUTORS.rst b/mail_autosubscribe/readme/CONTRIBUTORS.rst index df7472d00..0024277d9 100644 --- a/mail_autosubscribe/readme/CONTRIBUTORS.rst +++ b/mail_autosubscribe/readme/CONTRIBUTORS.rst @@ -1,3 +1,7 @@ * `Camptocamp <https://www.camptocamp.com>`_ * Iván Todorovich <ivan.todorovich@gmail.com> + +* `Moduon <https://www.moduon.team/>`__ + + * Jairo Llopis diff --git a/mail_autosubscribe/tests/test_mail_autosubscribe.py b/mail_autosubscribe/tests/test_mail_autosubscribe.py index 6c16f0368..27969c827 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) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..fb06c6fa4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +# generated from manifests external_dependencies +odoo_test_helper