[FIX] survey: Was browsing a browse record, useless and traceback... https://github...
authorJeremy Kersten <jke@odoo.com>
Tue, 25 Nov 2014 14:06:48 +0000 (15:06 +0100)
committerJeremy Kersten <jke@odoo.com>
Tue, 25 Nov 2014 14:06:59 +0000 (15:06 +0100)
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):