From f1dc3773b83e571e1b1a4da2fb17cf22dcec7117 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 18 Jan 2012 17:22:03 +0100 Subject: [PATCH] [FIX] email_template: properly pass target model in composition wizard reloading action This fixes reloading of the composition wizard after selecting templating options in the new web client. lp bug: https://launchpad.net/bugs/886144 fixed bzr revid: odo@openerp.com-20120118162203-17d1tug4lw40wpex --- addons/email_template/wizard/mail_compose_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/email_template/wizard/mail_compose_message.py b/addons/email_template/wizard/mail_compose_message.py index 61006f96782..beb59ba1eea 100644 --- a/addons/email_template/wizard/mail_compose_message.py +++ b/addons/email_template/wizard/mail_compose_message.py @@ -37,7 +37,7 @@ def _reopen(self,res_id,model): # save original model in context, otherwise # it will be lost on the action's context switch - 'mail.compose.target.model': model, + 'context': {'mail.compose.target.model': model} } class mail_compose_message(osv.osv_memory):