From: Amit (OpenERP) Date: Wed, 22 Aug 2012 06:25:55 +0000 (+0530) Subject: [FIX] mail_template : Fixes the duplication problem on email template X-Git-Tag: 7.0-server~1905^2~3 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=0195eb407d8f71b7adc878f9bc39d14de8bde38b;hp=026f76510763b95c59513a3e45754d30947dca12;p=odoo%2Fodoo.git [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 --- diff --git a/addons/email_template/email_template.py b/addons/email_template/email_template.py index b43b7d1..6f48d37 100644 --- a/addons/email_template/email_template.py +++ b/addons/email_template/email_template.py @@ -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):