[FIX] email_template Updated _reopen call according to new function.
authorThibault Delavallée <tde@openerp.com>
Mon, 16 Jul 2012 17:38:37 +0000 (19:38 +0200)
committerThibault Delavallée <tde@openerp.com>
Mon, 16 Jul 2012 17:38:37 +0000 (19:38 +0200)
bzr revid: tde@openerp.com-20120716173837-t12xb8p270uds508

addons/email_template/wizard/mail_compose_message.py

index 0db4dfb..b7111cb 100644 (file)
@@ -159,7 +159,7 @@ class mail_compose_message(osv.osv_memory):
                           'use_template': True})
 
         # _reopen same wizard screen with new template preselected
-        return _reopen(self, record.id, model)
+        return _reopen(self, record.id, record.res_id, record.model)
 
     # override the basic implementation 
     def render_template(self, cr, uid, template, model, res_id, context=None):