[FIX] mail_template : Fixes the duplication problem on email template

lp bug: https://launchpad.net/bugs/1039645 fixed

bzr revid: amp@tinyerp.com-20120822062555-d7thh474wn5lisnv
This commit is contained in:
Amit (OpenERP) 2012-08-22 11:55:55 +05:30
parent 026f765107
commit 0195eb407d
1 changed files with 4 additions and 0 deletions

View File

@ -236,6 +236,10 @@ 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,
})
return super(email_template, self).copy(cr, uid, id, default, context)
def build_expression(self, field_name, sub_field_name, null_value):