diff --git a/addons/idea/idea.py b/addons/idea/idea.py
index e46115c5639..ba91389246b 100644
--- a/addons/idea/idea.py
+++ b/addons/idea/idea.py
@@ -150,11 +150,10 @@ class idea_idea(osv.osv):
if int(field_value) >= 0:
vote_obj.create(cr, uid, {'idea_id': id, 'user_id': uid, 'score': textual_value })
-
_columns = {
'user_id': fields.many2one('res.users', 'Creator', required=True, readonly=True),
'title': fields.char('Idea Summary', size=64, required=True),
- 'description': fields.text('Description', required=True, help='Content of the idea'),
+ 'description': fields.text('Description', help='Content of the idea'),
'comment_ids': fields.one2many('idea.comment', 'idea_id', 'Comments'),
'create_date': fields.datetime('Creation date', readonly=True),
'vote_ids': fields.one2many('idea.vote', 'idea_id', 'Vote'),
diff --git a/addons/idea/idea_view.xml b/addons/idea/idea_view.xml
index b268a64d991..053aca6f203 100644
--- a/addons/idea/idea_view.xml
+++ b/addons/idea/idea_view.xml
@@ -152,7 +152,12 @@
-
+
+
+
+
+
+
diff --git a/addons/idea/wizard/idea_post_vote.py b/addons/idea/wizard/idea_post_vote.py
index f68496c8ae5..fb36f7945a4 100644
--- a/addons/idea/wizard/idea_post_vote.py
+++ b/addons/idea/wizard/idea_post_vote.py
@@ -89,6 +89,7 @@ class idea_post_vote(osv.osv_memory):
vote_id = context and context.get('active_id', False) or False
vote_pool = self.pool.get('idea.vote')
+ idea_pool = self.pool.get('idea.idea')
comment_pool = self.pool.get('idea.comment')
for do_vote_obj in self.read(cr, uid, ids):
@@ -106,8 +107,9 @@ class idea_post_vote(osv.osv_memory):
'content': comment,
}
comment = comment_pool.create(cr, uid, comment)
-
- vote = vote_pool.create(cr, uid, vote)
+
+ idea_pool._vote_save(cr, uid, vote_id, None, score, context)
+ #vote = vote_pool.create(cr, uid, vote)
return {}
idea_post_vote()