diff --git a/addons/gamification/badge.py b/addons/gamification/badge.py
index cd009c189f2..a681caa6ecf 100644
--- a/addons/gamification/badge.py
+++ b/addons/gamification/badge.py
@@ -140,7 +140,7 @@ class gamification_badge(osv.Model):
('everyone', 'Everyone'),
('users', 'A selected list of users'),
('having', 'People having some badges'),
- ('nobody', 'Nobody'),
+ ('nobody', 'No one'),
],
string="User Authorization Rule",
help="Who can grant this badge",
@@ -153,18 +153,19 @@ class gamification_badge(osv.Model):
string='Required Badges',
help="Only the people having these badges can give this badge"),
- 'rule_max': fields.boolean('Limited Sending',
+ 'rule_max': fields.boolean('Monthly Limited Sending',
help="Check to set a monthly limit per person of sending this badge"),
'rule_max_number': fields.integer('Limitation Number',
help="The maximum number of time this badge can be sent per month per person."),
'stat_my_monthly_sending': fields.function(_get_month_my_sent,
+ type="integer",
string='My Monthly Sending Total',
help="The number of time the current user has sent this badge this month."),
'rule_automatic': fields.selection([
- ('manual', 'Given by Users Only'),
- ('goals', 'List of Goals'),
- ('python', 'Python Code'),
+ ('goals', 'List of goals to reach'),
+ ('python', 'Custom python code executed'),
+ ('manual', 'Not automatic'),
],
string="Automatic Rule",
help="Can this badge be automatically rewarded",
@@ -184,16 +185,21 @@ class gamification_badge(osv.Model):
type="many2many", relation="res.users"),
'stat_count': fields.function(_get_global_count, string='Total',
+ type="integer",
help="The number of time this badge has been received."),
'stat_count_distinct': fields.function(_get_unique_global_count,
- string='Unique Count',
+ type="integer",
+ string='Number of users',
help="The number of time this badge has been received by individual users."),
'stat_this_month': fields.function(_get_month_count,
- string='Monthly Count',
+ type="integer",
+ string='Monthly total',
help="The number of time this badge has been received this month."),
'stat_my': fields.function(_get_global_my_count, string='My Total',
+ type="integer",
help="The number of time the current user has received this badge."),
'stat_my_this_month': fields.function(_get_month_my_count,
+ type="integer",
string='My Monthly Total',
help="The number of time the current user has received this badge this month."),
}
diff --git a/addons/gamification/badge_view.xml b/addons/gamification/badge_view.xml
index d3e206b795f..a590308cc5f 100644
--- a/addons/gamification/badge_view.xml
+++ b/addons/gamification/badge_view.xml
@@ -85,27 +85,33 @@
-
+
-
+
+
+
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/gamification/goal_view.xml b/addons/gamification/goal_view.xml
index b892a8d9f03..20846802726 100644
--- a/addons/gamification/goal_view.xml
+++ b/addons/gamification/goal_view.xml
@@ -54,7 +54,7 @@
-
+
@@ -69,13 +69,16 @@
-
+
+
+
+
@@ -166,9 +169,9 @@
- →
+
- reached when lower than
+ reached when lower than
diff --git a/addons/gamification/static/src/css/goal.css b/addons/gamification/static/src/css/goal.css
index 32d2eb2c7d0..82a0d60b903 100644
--- a/addons/gamification/static/src/css/goal.css
+++ b/addons/gamification/static/src/css/goal.css
@@ -1,7 +1,7 @@
/* Kanban views */
.openerp .oe_kanban_view .oe_kanban_card.oe_kanban_goal,
.openerp .oe_kanban_view .oe_kanban_card.oe_kanban_badge {
- width: 200px;
+ width: 220px;
min-height: 200px;
}
.oe_kanban_badge_avatars {
diff --git a/addons/gamification/static/src/js/gamification.js b/addons/gamification/static/src/js/gamification.js
index c743d39282a..44af26550a0 100644
--- a/addons/gamification/static/src/js/gamification.js
+++ b/addons/gamification/static/src/js/gamification.js
@@ -123,7 +123,6 @@ openerp.gamification = function(instance) {
if (self.view.dataset.model === 'gamification.goal' && self.$el.find('.oe_goal_gauge').length == 1) {
var unique_id = _.uniqueId("goal_gauge_");
self.$el.find('.oe_goal_gauge').attr('id', unique_id);
- console.log(self.record);
var g = new JustGage({
id: unique_id,
node: self.$el.find('.oe_goal_gauge').empty().get(0),
diff --git a/addons/hr_evaluation/hr_evaluation_view.xml b/addons/hr_evaluation/hr_evaluation_view.xml
index 5f8f6e599c7..1adff3ccc22 100644
--- a/addons/hr_evaluation/hr_evaluation_view.xml
+++ b/addons/hr_evaluation/hr_evaluation_view.xml
@@ -423,13 +423,16 @@
-
+
+ Goal Plans[('category', '=', 'hr')]
+ gamification.goal.plan
+ kanban,form
-
+
diff --git a/addons/hr_gamification/badge_view.xml b/addons/hr_gamification/badge_view.xml
index 98be93e0279..1f47bd74d6f 100644
--- a/addons/hr_gamification/badge_view.xml
+++ b/addons/hr_gamification/badge_view.xml
@@ -34,7 +34,7 @@
What are you thank for?
-
+