From caa3510ea434e10c32dcbc134f9c74b2b9f18b2a Mon Sep 17 00:00:00 2001 From: Mahendra Barad Date: Wed, 18 Dec 2013 18:48:05 +0530 Subject: [IMP] Mail Improvements bzr revid: kjo@tinyerp.com-20131218131805-e97d5tmq2tr6pvh2 --- addons/mail/static/src/js/many2many_tags_email.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/mail/static/src/js') diff --git a/addons/mail/static/src/js/many2many_tags_email.js b/addons/mail/static/src/js/many2many_tags_email.js index cc701e8a585..35f5eb8c4b4 100644 --- a/addons/mail/static/src/js/many2many_tags_email.js +++ b/addons/mail/static/src/js/many2many_tags_email.js @@ -44,7 +44,7 @@ instance.web.form.FieldMany2ManyTagsEmail = instance.web.form.FieldMany2ManyTags new instance.web.Model('res.partner').call("search", [[ ["id", "in", ids], ["email", "=", false], - ["notification_email_send", "in", ['all', 'comment']] ]], + ["notification_email_send", "=", 'always'] ]], {context: this.build_context()}) .then(function (record_ids) { // valid partner -- cgit v1.2.3 From 1ac8e7cdfddbf8ac6b7c4b843582392705f10a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 20 Feb 2014 16:29:45 +0100 Subject: [IMP] mail, email_template: mass mailing feature cleaning - now differentiates mass mailing and mass post. - mass mailing is a true mass mailing - using same_thread log a copy in the document, without using message_post (using notification field, + model and res_id) - improved form view of composer, adding a filed explaining a bit the various recipients - removed unnecessary fields coming from the template (partner_to, ...) because they are confusing -> composer should be easier to understand and use - removed some unnecessary code - removed double body computation when using templates (one for tmeplate, then the wizard -> not necessary) This commit will be followed by other to try to improve the mass mailing and mass post. bzr revid: tde@openerp.com-20140220152945-ash0hfkzevzamihq --- addons/mail/static/src/js/mail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/mail/static/src/js') diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 58d44bab50e..3687961bb6a 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -507,7 +507,7 @@ openerp.mail = function (session) { } $.when(recipient_done).done(function (partner_ids) { var context = { - 'default_composition_mode': default_composition_mode, + // 'default_composition_mode': default_composition_mode, 'default_parent_id': self.id, 'default_body': mail.ChatterUtils.get_text2html(self.$el ? (self.$el.find('textarea:not(.oe_compact)').val() || '') : ''), 'default_attachment_ids': _.map(self.attachment_ids, function (file) {return file.id;}), -- cgit v1.2.3 From d5a8905941f6af1245721d985e2a01f76d170a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 17 Mar 2014 13:24:09 +0100 Subject: [IMP] mail_compose_message: added is_log boolean field for internal notes; + removed context hack that did the same thing. Fixed composer form view: internal note, only subject + body is displayed. bzr revid: tde@openerp.com-20140317122409-5fd5d5uwc35oq0hb --- addons/mail/static/src/js/mail.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'addons/mail/static/src/js') diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 96236fd09b9..e597e285bd2 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -512,13 +512,11 @@ openerp.mail = function (session) { 'default_body': mail.ChatterUtils.get_text2html(self.$el ? (self.$el.find('textarea:not(.oe_compact)').val() || '') : ''), 'default_attachment_ids': _.map(self.attachment_ids, function (file) {return file.id;}), 'default_partner_ids': partner_ids, + 'default_is_log': self.is_log, 'mail_post_autofollow': true, 'mail_post_autofollow_partner_ids': partner_ids, 'is_private': self.is_private }; - if (self.is_log) { - _.extend(context, {'mail_compose_log': true}); - } if (default_composition_mode != 'reply' && self.context.default_model && self.context.default_res_id) { context.default_model = self.context.default_model; context.default_res_id = self.context.default_res_id; -- cgit v1.2.3 From 283ce860fc756fab8e3a5ba88491cbb0b296656f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 25 Mar 2014 15:25:35 +0100 Subject: [REM] mail: removed dead code in mail.js bzr revid: tde@openerp.com-20140325142535-rptr14zfxf8ctx27 --- addons/mail/static/src/js/mail.js | 1 - 1 file changed, 1 deletion(-) (limited to 'addons/mail/static/src/js') diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 312e8df2aea..99a7751e15e 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -507,7 +507,6 @@ openerp.mail = function (session) { } $.when(recipient_done).done(function (partner_ids) { var context = { - // 'default_composition_mode': default_composition_mode, 'default_parent_id': self.id, 'default_body': mail.ChatterUtils.get_text2html(self.$el ? (self.$el.find('textarea:not(.oe_compact)').val() || '') : ''), 'default_attachment_ids': _.map(self.attachment_ids, function (file) {return file.id;}), -- cgit v1.2.3 From cfbd8ae9f80b32088171afe45844dcadb0c0f5a6 Mon Sep 17 00:00:00 2001 From: Amit Vora Date: Wed, 9 Apr 2014 15:46:04 +0530 Subject: [IMP] change field name notificatio_email_send to notify_email and none selection key instead of never bzr revid: avo@tinyerp.com-20140409101604-1l8ltrcpjps8pazi --- addons/mail/static/src/js/many2many_tags_email.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/mail/static/src/js') diff --git a/addons/mail/static/src/js/many2many_tags_email.js b/addons/mail/static/src/js/many2many_tags_email.js index 35f5eb8c4b4..5d36262f5b9 100644 --- a/addons/mail/static/src/js/many2many_tags_email.js +++ b/addons/mail/static/src/js/many2many_tags_email.js @@ -44,7 +44,7 @@ instance.web.form.FieldMany2ManyTagsEmail = instance.web.form.FieldMany2ManyTags new instance.web.Model('res.partner').call("search", [[ ["id", "in", ids], ["email", "=", false], - ["notification_email_send", "=", 'always'] ]], + ["notify_email", "=", 'always'] ]], {context: this.build_context()}) .then(function (record_ids) { // valid partner -- cgit v1.2.3