summaryrefslogtreecommitdiff
path: root/addons/gamification
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2019-02-12 16:29:24 +0000
committerThibault Delavallée <tde@odoo.com>2019-02-15 09:57:46 +0000
commitc971b622c01afacf65191e3a4518546844f4d4ca (patch)
tree97ff63c1e11d9522d5fedd959d1aa629cce9c76a /addons/gamification
parent00bf73cd4ab00e13e91593d901ad0099f0cd8691 (diff)
[IMP] gamification, website_slides: add challenges in slides and improve ranks
Purpose of this commit is to add challenges related to slide / elearning module. 5 new challenges with their badges are added. Portal user partner is now also published to have bioutifoul demo data. Commit linked to eLearning tasks [1][2] Co-Authored-By: David Beguin <dbe@odoo.com> Co-Authored-By: Thibault Delavallee <tde@odoo.com> [1] new homepage task: ID 1936153 and PR #30770 [2] new user profile / gamification task: ID 1922159 and PR #30514 and #30988
Diffstat (limited to 'addons/gamification')
-rw-r--r--addons/gamification/data/gamification_karma_rank_data.xml2
-rw-r--r--addons/gamification/data/gamification_karma_rank_demo.xml8
-rw-r--r--addons/gamification/static/img/rank_bachelor_badge.svg1
-rw-r--r--addons/gamification/static/img/rank_doctor_badge.svg1
-rw-r--r--addons/gamification/static/img/rank_master_badge.svg1
-rw-r--r--addons/gamification/static/img/rank_newbie_badge.svg1
-rw-r--r--addons/gamification/static/img/rank_student_badge.svg1
7 files changed, 10 insertions, 5 deletions
diff --git a/addons/gamification/data/gamification_karma_rank_data.xml b/addons/gamification/data/gamification_karma_rank_data.xml
index 25d94ca3739..b91ee3dd4dc 100644
--- a/addons/gamification/data/gamification_karma_rank_data.xml
+++ b/addons/gamification/data/gamification_karma_rank_data.xml
@@ -15,7 +15,7 @@
<field name="description" type="html"><p>You just began the adventure! Welcome!</p></field>
<field name="description_reach_next" type="html"><p>Keep going !</p></field>
<field name="karma_min">1</field>
- <field name="image" type="base64" file="gamification/static/img/rank_newbie.png"/>
+ <field name="image" type="base64" file="gamification/static/img/rank_newbie_badge.svg"/>
</record>
</data>
</odoo>
diff --git a/addons/gamification/data/gamification_karma_rank_demo.xml b/addons/gamification/data/gamification_karma_rank_demo.xml
index 52b1f2c1f50..c34f93b486e 100644
--- a/addons/gamification/data/gamification_karma_rank_demo.xml
+++ b/addons/gamification/data/gamification_karma_rank_demo.xml
@@ -14,7 +14,7 @@
<field name="description" type="html"><p>You begin to understand things ! Keep going!</p></field>
<field name="description_reach_next" type="html"><p>Keep going !</p></field>
<field name="karma_min">100</field>
- <field name="image" type="base64" file="gamification/static/img/rank_student.png"/>
+ <field name="image" type="base64" file="gamification/static/img/rank_student_badge.svg"/>
</record>
<record id="rank_bachelor" model="gamification.karma.rank">
@@ -22,7 +22,7 @@
<field name="description" type="html"><p>Hey ! You're not so dumb after all !</p></field>
<field name="description_reach_next" type="html"><p>Keep going !</p></field>
<field name="karma_min">500</field>
- <field name="image" type="base64" file="gamification/static/img/rank_bachelor.png"/>
+ <field name="image" type="base64" file="gamification/static/img/rank_bachelor_badge.svg"/>
</record>
<record id="rank_master" model="gamification.karma.rank">
@@ -30,7 +30,7 @@
<field name="description" type="html"><p>You're good ! Really Good !</p></field>
<field name="description_reach_next" type="html"><p>Keep going !</p></field>
<field name="karma_min">2000</field>
- <field name="image" type="base64" file="gamification/static/img/rank_master.png"/>
+ <field name="image" type="base64" file="gamification/static/img/rank_master_badge.svg"/>
</record>
<record id="rank_doctor" model="gamification.karma.rank">
@@ -38,7 +38,7 @@
<field name="description" type="html"><p>Ok, RESPECT !</p></field>
<field name="description_reach_next" type="html"><p>Keep going !</p></field>
<field name="karma_min">10000</field>
- <field name="image" type="base64" file="gamification/static/img/rank_doctor.png"/>
+ <field name="image" type="base64" file="gamification/static/img/rank_doctor_badge.svg"/>
</record>
</data></odoo>
diff --git a/addons/gamification/static/img/rank_bachelor_badge.svg b/addons/gamification/static/img/rank_bachelor_badge.svg
new file mode 100644
index 00000000000..6fd78eb62f5
--- /dev/null
+++ b/addons/gamification/static/img/rank_bachelor_badge.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><g fill="none"><circle cx="150" cy="150" r="150" fill="#FFF"/><path fill="#965E3F" d="M150 300C67.157 300 0 232.843 0 150S67.157 0 150 0s150 67.157 150 150-67.157 150-150 150zm0-9.375c77.665 0 140.625-62.96 140.625-140.625 0-77.665-62.96-140.625-140.625-140.625C72.335 9.375 9.375 72.335 9.375 150c0 77.665 62.96 140.625 140.625 140.625zm0-14.063C80.101 276.563 23.437 219.9 23.437 150S80.102 23.437 150 23.437 276.563 80.102 276.563 150 219.899 276.563 150 276.563z"/><path fill="#FFF" d="M169.435 140.543c12 1.957 21.195 6.424 27.587 13.403 6.391 6.978 9.587 15.62 9.587 25.924 0 7.956-2.087 15.293-6.261 22.01-4.174 6.718-10.533 12.098-19.076 16.142-8.544 4.043-19.011 6.065-31.402 6.065-9.653 0-19.142-1.272-28.468-3.815-9.326-2.544-17.25-6.163-23.772-10.859l12.327-24.26c5.217 3.912 11.25 6.945 18.097 9.097a69.746 69.746 0 0 0 21.033 3.228c7.957 0 14.217-1.532 18.783-4.598 4.565-3.065 6.847-7.402 6.847-13.01 0-11.218-8.543-16.827-25.63-16.827h-14.478V142.11l28.174-31.892h-58.305V84.783h95.87v20.543l-30.913 35.217z"/></g></svg> \ No newline at end of file
diff --git a/addons/gamification/static/img/rank_doctor_badge.svg b/addons/gamification/static/img/rank_doctor_badge.svg
new file mode 100644
index 00000000000..91964edd417
--- /dev/null
+++ b/addons/gamification/static/img/rank_doctor_badge.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><g fill="none"><circle cx="150" cy="150" r="150" fill="#FFF"/><path fill="#CB9600" d="M150 300C67.157 300 0 232.843 0 150S67.157 0 150 0s150 67.157 150 150-67.157 150-150 150zm0-9.375c77.665 0 140.625-62.96 140.625-140.625 0-77.665-62.96-140.625-140.625-140.625C72.335 9.375 9.375 72.335 9.375 150c0 77.665 62.96 140.625 140.625 140.625zm0-14.063C80.101 276.563 23.437 219.9 23.437 150S80.102 23.437 150 23.437 276.563 80.102 276.563 150 219.899 276.563 150 276.563z"/><path fill="#FFF" d="M171.326 84.783L171.326 221.739 139.63 221.739 139.63 110.217 112.239 110.217 112.239 84.783z"/></g></svg> \ No newline at end of file
diff --git a/addons/gamification/static/img/rank_master_badge.svg b/addons/gamification/static/img/rank_master_badge.svg
new file mode 100644
index 00000000000..feb63293ce1
--- /dev/null
+++ b/addons/gamification/static/img/rank_master_badge.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><g fill="none"><circle cx="150" cy="150" r="150" fill="#FFF"/><path fill="#AD7624" d="M150 300C67.157 300 0 232.843 0 150S67.157 0 150 0s150 67.157 150 150-67.157 150-150 150zm0-9.375c77.665 0 140.625-62.96 140.625-140.625 0-77.665-62.96-140.625-140.625-140.625C72.335 9.375 9.375 72.335 9.375 150c0 77.665 62.96 140.625 140.625 140.625zm0-14.063C80.101 276.563 23.437 219.9 23.437 150S80.102 23.437 150 23.437 276.563 80.102 276.563 150 219.899 276.563 150 276.563z"/><path fill="#FFF" d="M207.783 189.391v25.826h-103.5v-20.543l52.826-49.891c5.608-5.348 9.391-9.946 11.348-13.794 1.956-3.848 2.934-7.663 2.934-11.446 0-5.478-1.858-9.684-5.576-12.62-3.717-2.934-9.163-4.401-16.337-4.401-6 0-11.413 1.141-16.239 3.424-4.826 2.282-8.87 5.706-12.13 10.271l-23.087-14.87c5.348-7.956 12.717-14.184 22.108-18.684 9.392-4.5 20.153-6.75 32.283-6.75 10.174 0 19.076 1.663 26.707 4.99 7.63 3.325 13.565 8.02 17.804 14.086 4.24 6.065 6.359 13.207 6.359 21.424 0 7.435-1.566 14.413-4.696 20.935-3.13 6.522-9.196 13.956-18.196 22.304l-31.5 29.74h58.892z"/></g></svg> \ No newline at end of file
diff --git a/addons/gamification/static/img/rank_newbie_badge.svg b/addons/gamification/static/img/rank_newbie_badge.svg
new file mode 100644
index 00000000000..66720ce62df
--- /dev/null
+++ b/addons/gamification/static/img/rank_newbie_badge.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><g fill="none"><circle cx="150" cy="150" r="150" fill="#FFF"/><path fill="#6B3275" d="M150 300C67.157 300 0 232.843 0 150S67.157 0 150 0s150 67.157 150 150-67.157 150-150 150zm0-9.375c77.665 0 140.625-62.96 140.625-140.625 0-77.665-62.96-140.625-140.625-140.625C72.335 9.375 9.375 72.335 9.375 150c0 77.665 62.96 140.625 140.625 140.625zm0-14.063C80.101 276.563 23.437 219.9 23.437 150S80.102 23.437 150 23.437 276.563 80.102 276.563 150 219.899 276.563 150 276.563z"/><path fill="#FFF" d="M145.891 129.717c19.305 0 33.555 3.848 42.75 11.544 9.196 7.696 13.794 18 13.794 30.913 0 8.348-2.087 15.946-6.261 22.793-4.174 6.848-10.533 12.326-19.076 16.435-8.544 4.109-19.076 6.163-31.598 6.163-9.652 0-19.141-1.272-28.467-3.815-9.327-2.543-17.25-6.163-23.772-10.859l12.522-24.26c5.217 3.912 11.217 6.945 18 9.097a68.807 68.807 0 0 0 20.934 3.229c7.957 0 14.218-1.566 18.783-4.696 4.565-3.13 6.848-7.5 6.848-13.109 0-5.87-2.38-10.304-7.141-13.304s-13.011-4.5-24.75-4.5h-35.022l7.043-77.087h83.544v25.435h-57.13l-2.153 26.021h11.152z"/></g></svg> \ No newline at end of file
diff --git a/addons/gamification/static/img/rank_student_badge.svg b/addons/gamification/static/img/rank_student_badge.svg
new file mode 100644
index 00000000000..561ea368fc6
--- /dev/null
+++ b/addons/gamification/static/img/rank_student_badge.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><g fill="none"><circle cx="150" cy="150" r="150" fill="#FFF"/><path fill="#7F465B" d="M150 300C67.157 300 0 232.843 0 150S67.157 0 150 0s150 67.157 150 150-67.157 150-150 150zm0-9.375c77.665 0 140.625-62.96 140.625-140.625 0-77.665-62.96-140.625-140.625-140.625C72.335 9.375 9.375 72.335 9.375 150c0 77.665 62.96 140.625 140.625 140.625zm0-14.063C80.101 276.563 23.437 219.9 23.437 150S80.102 23.437 150 23.437 276.563 80.102 276.563 150 219.899 276.563 150 276.563z"/><path fill="#FFF" d="M204.783 186.457L182.478 186.457 182.478 215.217 151.565 215.217 151.565 186.457 77.804 186.457 77.804 165.13 142.37 78.261 175.63 78.261 115.761 160.63 152.543 160.63 152.543 135 182.478 135 182.478 160.63 204.783 160.63z"/></g></svg> \ No newline at end of file