From 738cc80c0d0bad509596dd6614271d57ce2c5ecc Mon Sep 17 00:00:00 2001 From: "Sunil Sharma (OpenERP)" Date: Fri, 7 Mar 2014 16:23:55 +0530 Subject: [PATCH] [add]:add data badges for website_forum module bzr revid: sunilsharma.sharma07@gmail.com-20140307105355-r7yumuqjz29fjww7 --- addons/website_forum/__openerp__.py | 1 + .../website_forum/data/forum_badges_data.xml | 236 ++++++++++++++++++ 2 files changed, 237 insertions(+) create mode 100644 addons/website_forum/data/forum_badges_data.xml diff --git a/addons/website_forum/__openerp__.py b/addons/website_forum/__openerp__.py index 298140bb472..741dc3b01b0 100644 --- a/addons/website_forum/__openerp__.py +++ b/addons/website_forum/__openerp__.py @@ -35,6 +35,7 @@ Ask questions, get answers, no distractions 'views/website_forum.xml', 'security/ir.model.access.csv', 'security/website_forum.xml', + 'data/forum_badges_data.xml', ], 'qweb': [ 'static/src/xml/*.xml' diff --git a/addons/website_forum/data/forum_badges_data.xml b/addons/website_forum/data/forum_badges_data.xml new file mode 100644 index 00000000000..33a9e8fca99 --- /dev/null +++ b/addons/website_forum/data/forum_badges_data.xml @@ -0,0 +1,236 @@ + + + + + + + Autobiographer + Completed all user profile fields + True + gold + + + + Citizen Patrol + First flagged post + True + silver + + + + Cleanup + First rollback + True + gold + + + + Commentator + Posted 10 comments + True + gold + + + + Critic + First downvote + True + gold + + + + Disciplined + Deleted own post with 3 or more upvotes + True + gold + + + + Editor + First edit + True + gold + + + + Enlightened + First answer was accepted with 3 or more votes + True + silver + + + + Enthusiast + Visited site every day for 30 days in a row + True + silver + + + + Expert + Very active in one tag + True + silver + + + + Famous Question + Asked a question with 500 views + True + gold + + + + Favorite Question + Question favorited by 5 users + True + silver + + + + Good Answer + Answer voted up 6 times + True + silver + + + + Good Question + Question voted up 6 times + True + silver + + + + Great Answer + Answer voted up 15 times + True + gold + + + + Great Question + Question voted up 15 times + True + gold + + + + Guru + Answer accepted with 15 or more votes + True + silver + + + + Necromancer + Answered a question more than 30 days later with at least 2 votes + True + silver + + + Nice Answer + Answer voted up 4 times + True + bronze + + + + Nice Quesiotn + Question voted up 4 times + True + bronze + + + + Notable Question + Asked a question with 250 views + True + silver + + + + Organizer + First retag + True + bronze + + + + Peer Pressure + Deleted own post with 3 or more downvotes + True + gold + + + + Popular Question + Asked a question with 150 views + True + gold + + + + Pundit + Left 10 comments with score of 10 or more + True + silver + + + + Scholar + Asked a question and accepted an answer + True + gold + + + + self-Learner + Answered own question with at least 4 up votes + True + gold + + + + Stellar Question + Question favorited by 25 users + True + bronze + + + Associate Editor + Edited 30 entries + True + silver + + + + Student + Asked first question with at least one up vote + True + gold + + + + Supporter + First upvote + True + gold + + + + Taxonomist + Created a tag used by 15 questions + True + silver + + + + Teacher + Received at least 3 upvote for an answer for the first time + True + gold + + + +