[IMP] use kwargs instead of a new dict
bzr revid: abo@openerp.com-20120924153430-0nb2gxker8v9is5p
This commit is contained in:
parent
0195eb407d
commit
7b62802435
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue