diff --git a/addons/email_template/email_template.py b/addons/email_template/email_template.py index 6f48d37c714..cc4b52992a4 100644 --- a/addons/email_template/email_template.py +++ b/addons/email_template/email_template.py @@ -236,9 +236,7 @@ class email_template(osv.osv): default = {} default = default.copy() default['name'] = template.name + _('(copy)') - default.update({ - 'ref_ir_act_window': False, - 'ref_ir_value': False, + default.update(ref_ir_act_window=False, ref_ir_value=False) }) return super(email_template, self).copy(cr, uid, id, default, context) @@ -392,7 +390,7 @@ class email_template(osv.osv): :param bool force_send: if True, the generated mail.message is immediately sent after being created, as if the scheduler was executed for this message only. - :returns: id of the mail.message that was created + :returns: id of the mail.message that was created """ if context is None: context = {} mail_message = self.pool.get('mail.message')