[FIX] email_template: closing wizard on creating new template
authorRifakat Haradwala (Open ERP) <rha@tinyerp.com>
Wed, 27 Apr 2011 10:35:36 +0000 (16:05 +0530)
committerRifakat Haradwala (Open ERP) <rha@tinyerp.com>
Wed, 27 Apr 2011 10:35:36 +0000 (16:05 +0530)
bzr revid: rha@tinyerp.com-20110427103536-ppnufnu1ae8dbgt4

addons/email_template/wizard/email_compose_message.py

index d5289a4..a1f6d62 100644 (file)
@@ -105,7 +105,7 @@ class email_compose_message(osv.osv_memory):
                 'attachment_ids': [(6, 0, [att.id for att in record.attachment_ids])]
             }
             template_pool.create(cr, uid, values, context=context)
-        return True
+        return {'type': 'ir.actions.act_window_close'}
 
 email_compose_message()