[FIX] survey: Was browsing a browse record, useless and traceback... https://github.com/odoo/odoo/issues/2383
This commit is contained in:
parent
a3e578068e
commit
ade51a9ea1
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue