[IMP] use kwargs instead of a new dict

bzr revid: abo@openerp.com-20120924153430-0nb2gxker8v9is5p
This commit is contained in:
Antonin Bourguignon 2012-09-24 17:34:30 +02:00
parent 0195eb407d
commit 7b62802435
1 changed files with 2 additions and 4 deletions

View File

@ -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')