Affichage réponses dans la vue Kanban des thèmes, commencement
authorAlicia FLOREZ <alicflorez@gmail.com>
Wed, 15 May 2013 16:02:23 +0000 (18:02 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Wed, 15 May 2013 16:02:23 +0000 (18:02 +0200)
faq.py

diff --git a/faq.py b/faq.py
index 4b52d0a..9002157 100644 (file)
--- a/faq.py
+++ b/faq.py
@@ -10,7 +10,7 @@ class theme(osv.Model):
         for theme in self.browse(cr, uid, ids, context=context):
             res=[]
             for question in theme.questions:
-                res.append({'id': question.id, 'name': question.name})
+                res.append({'id': question.id, 'name': question.name, 'reponses': question.answer_items})
             result[theme.id] = res
         return result