From 497ba7dab96a15c965e1e2824d9111772a98210b Mon Sep 17 00:00:00 2001
From: "Mansi Kariya (OpenERP Trainee)"
Dummy body
'}, + {'subject': 'Forget me subject', 'body': 'Dummy body
', 'post': True}, {'default_composition_mode': 'comment', 'default_model': 'mail.group', 'default_res_id': self.group_pigs_id, @@ -101,7 +101,7 @@ class test_message_compose(TestMail): 'default_template_id': email_template_id, 'active_ids': [self.group_pigs_id, self.group_bird_id] } - compose_id = mail_compose.create(cr, uid, {'subject': 'Forget me subject', 'body': 'Dummy body'}, context) + compose_id = mail_compose.create(cr, uid, {'subject': 'Forget me subject', 'body': 'Dummy body', 'post': True}, context) compose = mail_compose.browse(cr, uid, compose_id, context) onchange_res = compose.onchange_template_id(email_template_id, 'comment', 'mail.group', self.group_pigs_id)['value'] onchange_res['partner_ids'] = [(4, partner_id) for partner_id in onchange_res.pop('partner_ids', [])] @@ -145,7 +145,7 @@ class test_message_compose(TestMail): 'default_partner_ids': [p_a_id], 'active_ids': [self.group_pigs_id, self.group_bird_id] } - compose_id = mail_compose.create(cr, uid, {'subject': 'Forget me subject', 'body': 'Dummy body'}, context) + compose_id = mail_compose.create(cr, uid, {'subject': 'Forget me subject', 'body': 'Dummy body', 'post': True}, context) compose = mail_compose.browse(cr, uid, compose_id, context) onchange_res = compose.onchange_template_id(email_template_id, 'mass_mail', 'mail.group', self.group_pigs_id)['value'] onchange_res['partner_ids'] = [(4, partner_id) for partner_id in onchange_res.pop('partner_ids', [])] diff --git a/addons/mail/tests/test_mail_features.py b/addons/mail/tests/test_mail_features.py index 970f07f519e..0688bf02606 100644 --- a/addons/mail/tests/test_mail_features.py +++ b/addons/mail/tests/test_mail_features.py @@ -631,6 +631,7 @@ class test_mail(TestMail): { 'subject': _subject, 'body': '${object.description}', + 'post': True, 'partner_ids': [(4, p_c_id), (4, p_d_id)], }, context={ 'default_composition_mode': 'mass_mail', @@ -684,6 +685,7 @@ class test_mail(TestMail): { 'subject': _subject, 'body': '${object.description}', + 'post': True, 'partner_ids': [(4, p_c_id), (4, p_d_id)], }, context={ 'default_composition_mode': 'mass_mail', diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index 82f01d35e05..1b3f6010893 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -134,8 +134,9 @@ class mail_compose_message(osv.TransientModel): 'body': lambda self, cr, uid, ctx={}: '', 'subject': lambda self, cr, uid, ctx={}: False, 'partner_ids': lambda self, cr, uid, ctx={}: [], - 'post': lambda self, cr, uid, ctx={}: True, - 'same_thread': lambda self, cr, uid, ctx={}: True, + 'post': False, + 'notify': False, + 'same_thread': True, } def check_access_rule(self, cr, uid, ids, operation, context=None): diff --git a/addons/mail/wizard/mail_compose_message_view.xml b/addons/mail/wizard/mail_compose_message_view.xml index ed1a211ce8c..ff1dd96229e 100644 --- a/addons/mail/wizard/mail_compose_message_view.xml +++ b/addons/mail/wizard/mail_compose_message_view.xml @@ -14,20 +14,11 @@
+
+ Delivered
+
Opened
@@ -61,10 +65,6 @@
Replied
-
- Bounced
-
+
+ Delivered
+
Opened
@@ -195,10 +199,6 @@
Replied
-
- Bounced
-
-
+
Sent
-
+
Delivered
-
+
Opened
-
+
Replied
-
- Sent
-
-
- Delivered
-
-
- Opened
-
-
- Replied
-
+
+ Sent
+
+
+ Delivered
+
+
+ Opened
+
+
+ Replied
+
+ Click to define a new mass mailing campaign. +
+ Create a campaign to structure mass mailing and get analysis from email status. +
+- Please choose a mass mailing campaign that will hold the new mailing. -
-- Please choose a model on which you will run the mass mailing. -
-+ Please choose a mass mailing campaign that will hold the new mailing. +
+- Please choose a filter that will be applied on the model - to find the records on which you will run the mass mailing. -
-+ Please choose a model on which you will run the mass mailing. +
+- Please choose the template to use to render the emails - to send. -
-+ Please choose a filter that will be applied on the model + to find the records on which you will run the mass mailing. +
+- Please choose the name of the mailing. -
-+ Please choose the template to use to render the emails + to send. +
++ Please choose the name of the mailing. +
+