diff --git a/addons/crm/crm_lead_data.xml b/addons/crm/crm_lead_data.xml index 1607e69799a..e335bd1b2ff 100644 --- a/addons/crm/crm_lead_data.xml +++ b/addons/crm/crm_lead_data.xml @@ -224,7 +224,7 @@ - + Lead/Opportunity Mass Mail diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 5522273e8fa..df28d240a0c 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -597,12 +597,12 @@ 'default_composition_mode': 'mass_mail', 'default_email_to':'{$object.email or \'\'}', 'default_use_template': True, - 'default_template_id': ref('crm.lead_template'), + 'default_template_id': ref('crm.email_template_opportunity_mail'), }"/> - + diff --git a/addons/crm/res_partner_view.xml b/addons/crm/res_partner_view.xml index 9e7fee82555..00a071fa954 100644 --- a/addons/crm/res_partner_view.xml +++ b/addons/crm/res_partner_view.xml @@ -15,18 +15,6 @@ - - res.partner.select.crm - res.partner - - - - - - - - Meetings diff --git a/addons/email_template/res_partner_view.xml b/addons/email_template/res_partner_view.xml index f3f79e1456f..fbcfa8ba6ea 100644 --- a/addons/email_template/res_partner_view.xml +++ b/addons/email_template/res_partner_view.xml @@ -26,9 +26,9 @@ - - + Partner Mass Mail @@ -48,10 +48,10 @@ 'default_composition_mode': 'mass_mail', 'default_partner_to': '${object.id or \'\'}', 'default_use_template': True, - 'default_template_id': ref('partner_template'), + 'default_template_id': ref('email_template_partner'), }"/> - + diff --git a/addons/email_template/wizard/mail_compose_message.py b/addons/email_template/wizard/mail_compose_message.py index 06dd2919672..2215d0705f1 100644 --- a/addons/email_template/wizard/mail_compose_message.py +++ b/addons/email_template/wizard/mail_compose_message.py @@ -22,7 +22,6 @@ from openerp import tools from openerp.osv import osv, fields - def _reopen(self, res_id, model): return {'type': 'ir.actions.act_window', 'view_mode': 'form', @@ -37,7 +36,6 @@ def _reopen(self, res_id, model): }, } - class mail_compose_message(osv.TransientModel): _inherit = 'mail.compose.message' @@ -69,12 +67,6 @@ class mail_compose_message(osv.TransientModel): help="Carbon copy recipients (placeholders may be used here)"), } - _defaults = { - 'partner_to': lambda self, cr, uid, ctx={}: '', - 'email_to': lambda self, cr, uid, ctx={}: '', - 'email_cc': lambda self, cr, uid, ctx={}: '', - } - def onchange_template_id(self, cr, uid, ids, template_id, composition_mode, model, res_id, context=None): """ - mass_mailing: we cannot render, so return the template values - normal mode: return rendered values """ diff --git a/addons/mail/mail_mail.py b/addons/mail/mail_mail.py index 29d71ecbf2e..43d0d707699 100644 --- a/addons/mail/mail_mail.py +++ b/addons/mail/mail_mail.py @@ -59,13 +59,13 @@ class mail_mail(osv.Model): 'recipient_ids': fields.many2many('res.partner', string='To (Partners)'), 'email_cc': fields.char('Cc', help='Carbon copy message recipients'), 'body_html': fields.text('Rich-text Contents', help="Rich-text/HTML message"), - # If not set in create values, auto-detected based on create values (res_id, model, email_from) - 'reply_to': fields.char('Reply-To', help='Preferred response address for the message'), - + 'reply_to': fields.char('Reply-To', + help='Preferred response address for the message'), # Auto-detected based on create() - if 'mail_message_id' was passed then this mail is a notification # and during unlink() we will not cascade delete the parent and its attachments - 'notification': fields.boolean('Is Notification') + 'notification': fields.boolean('Is Notification', + help='Mail has been created to notify people of an existing mail.message') } def _get_default_from(self, cr, uid, context=None):