Merge branch 'master' of https://github.com/odoo/odoo
[odoo/odoo.git] / addons / survey / wizard / survey_email_compose_message.py
index 22f204b..516c18a 100644 (file)
@@ -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):