summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonin Bourguignon <abo@openerp.com>2012-09-24 17:34:30 +0200
committerAntonin Bourguignon <abo@openerp.com>2012-09-24 17:34:30 +0200
commit7b6280243572f4e0c60772be23ba8fc154e541b2 (patch)
treefddc1135bf828feccd7cfabc5a57a6df2c108ceb
parent0195eb407d8f71b7adc878f9bc39d14de8bde38b (diff)
[IMP] use kwargs instead of a new dict
bzr revid: abo@openerp.com-20120924153430-0nb2gxker8v9is5p
-rw-r--r--addons/email_template/email_template.py6
1 files changed, 2 insertions, 4 deletions
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')