commit
d20ca364cf
@ -10,6 +10,9 @@
|
|||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"category": "Marketing",
|
"category": "Marketing",
|
||||||
"depends": ["mail"],
|
"depends": ["mail"],
|
||||||
|
"external_dependencies": {
|
||||||
|
"python": ["odoo_test_helper"],
|
||||||
|
},
|
||||||
"website": "https://github.com/OCA/social",
|
"website": "https://github.com/OCA/social",
|
||||||
"data": [
|
"data": [
|
||||||
"security/ir.model.access.csv",
|
"security/ir.model.access.csv",
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
* `Camptocamp <https://www.camptocamp.com>`_
|
* `Camptocamp <https://www.camptocamp.com>`_
|
||||||
|
|
||||||
* Iván Todorovich <ivan.todorovich@gmail.com>
|
* Iván Todorovich <ivan.todorovich@gmail.com>
|
||||||
|
|
||||||
|
* `Moduon <https://www.moduon.team/>`__
|
||||||
|
|
||||||
|
* Jairo Llopis
|
||||||
|
@ -28,8 +28,8 @@ class TestMailAutosubscribe(TransactionCase):
|
|||||||
{
|
{
|
||||||
"model_id": cls.fake_order_model.id,
|
"model_id": cls.fake_order_model.id,
|
||||||
"name": "Fake Order: Send by Mail",
|
"name": "Fake Order: Send by Mail",
|
||||||
"subject": "Fake Order: ${object.partner_id.name}",
|
"subject": "Fake Order: {{object.partner_id.name}}",
|
||||||
"partner_to": "${object.partner_id.id}",
|
"partner_to": "{{object.partner_id.id}}",
|
||||||
"body_html": "Hello, this is a fake order",
|
"body_html": "Hello, this is a fake order",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -111,7 +111,7 @@ class TestMailAutosubscribe(TransactionCase):
|
|||||||
default_composition_mode="comment",
|
default_composition_mode="comment",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
composer.save().send_mail()
|
composer.save().action_send_mail()
|
||||||
message = self.order.message_ids[0]
|
message = self.order.message_ids[0]
|
||||||
self.assertEqual(message.partner_ids, self.partner_2 | self.partner_3)
|
self.assertEqual(message.partner_ids, self.partner_2 | self.partner_3)
|
||||||
|
|
||||||
@ -127,6 +127,6 @@ class TestMailAutosubscribe(TransactionCase):
|
|||||||
default_composition_mode="comment",
|
default_composition_mode="comment",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
composer.save().send_mail()
|
composer.save().action_send_mail()
|
||||||
message = self.order.message_ids[0]
|
message = self.order.message_ids[0]
|
||||||
self.assertEqual(message.partner_ids, self.partner_2)
|
self.assertEqual(message.partner_ids, self.partner_2)
|
||||||
|
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# generated from manifests external_dependencies
|
||||||
|
odoo_test_helper
|
Loading…
Reference in New Issue
Block a user