From ade51a9ea1f52144dc4d6a5ec881c647285d4308 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Tue, 25 Nov 2014 15:06:48 +0100 Subject: [PATCH] [FIX] survey: Was browsing a browse record, useless and traceback... https://github.com/odoo/odoo/issues/2383 --- addons/survey/wizard/survey_email_compose_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/wizard/survey_email_compose_message.py b/addons/survey/wizard/survey_email_compose_message.py index 22f204b9427..516c18af799 100644 --- a/addons/survey/wizard/survey_email_compose_message.py +++ b/addons/survey/wizard/survey_email_compose_message.py @@ -41,7 +41,7 @@ class survey_mail_compose_message(osv.TransientModel): res = dict((id, 0) for id in ids) survey_obj = self.pool.get('survey.survey') for wizard in self.browse(cr, uid, ids, context=context): - res[wizard.id] = survey_obj.browse(cr, uid, wizard.survey_id, context=context).public_url + res[wizard.id] = wizard.survey_id.public_url return res def _get_public_url_html(self, cr, uid, ids, name, arg, context=None):