[MOV] gamification, website_forum : move karma data and demo in gamification
As gamification karma-based features can be used outside of forum let us move demo and data directly in gamification. It will be used notably for eLearning.
This commit is contained in:
committed by
Thibault Delavallée
parent
77b5673a0d
commit
b0aa6f654b
@@ -1,6 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<!--Karma-->
|
||||
<record id="base.user_root" model="res.users">
|
||||
<field name="karma">2500</field>
|
||||
</record>
|
||||
<record id="base.user_admin" model="res.users">
|
||||
<field name="karma">2500</field>
|
||||
</record>
|
||||
|
||||
<!--Ranks-->
|
||||
<record id="rank_newbie" model="gamification.karma.rank">
|
||||
<field name="name">Newbie</field>
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo><data>
|
||||
<!-- Set demo karma for test tour as demo user-->
|
||||
<record id="base.user_demo" model="res.users">
|
||||
<field name="karma">20</field>
|
||||
</record>
|
||||
<record id="base.demo_user0" model="res.users">
|
||||
<field name="karma">10</field>
|
||||
</record>
|
||||
|
||||
<!--Ranks-->
|
||||
<record id="rank_student" model="gamification.karma.rank">
|
||||
<field name="name">Student</field>
|
||||
|
||||
@@ -22,14 +22,6 @@
|
||||
<field name="url" eval="'/forum/'+str(ref('website_forum.forum_help'))"/>
|
||||
</record>
|
||||
|
||||
<!-- Set Admin karma -->
|
||||
<record id="base.user_root" model="res.users">
|
||||
<field name="karma">2500</field>
|
||||
</record>
|
||||
<record id="base.user_admin" model="res.users">
|
||||
<field name="karma">2500</field>
|
||||
</record>
|
||||
|
||||
<!-- Answers subtypes -->
|
||||
<record id="mt_answer_new" model="mail.message.subtype">
|
||||
<field name="name">New Answer</field>
|
||||
|
||||
@@ -2,13 +2,7 @@
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<!-- Set demo karma for test tour as demo user-->
|
||||
<record id="base.user_demo" model="res.users">
|
||||
<field name="karma">20</field>
|
||||
</record>
|
||||
<record id="base.demo_user0" model="res.users">
|
||||
<field name="karma">10</field>
|
||||
</record>
|
||||
|
||||
|
||||
<!-- Tag -->
|
||||
<record id="tags_0" model="forum.tag">
|
||||
|
||||
Reference in New Issue
Block a user