diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-04-19 17:48:17 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-04-19 17:48:17 +0200 |
| commit | 4fb6e9b682901e02e615936c75bbe8ca6cee8b8b (patch) | |
| tree | 997b4185be29823e9dad6d6943c9bc2b55af993c /addons/gamification | |
| parent | 263124a6f3287934b8e17f89a7f72720a4404e12 (diff) | |
[IMP] display user's badges on employee
bzr revid: mat@openerp.com-20130419154817-rq09s1f5nl6ryhka
Diffstat (limited to 'addons/gamification')
| -rw-r--r-- | addons/gamification/plan.py | 2 | ||||
| -rw-r--r-- | addons/gamification/static/src/css/goal.css | 5 | ||||
| -rw-r--r-- | addons/gamification/static/src/xml/gamification.xml | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/addons/gamification/plan.py b/addons/gamification/plan.py index d40735c71bf..8df348b1af9 100644 --- a/addons/gamification/plan.py +++ b/addons/gamification/plan.py @@ -764,7 +764,7 @@ class gamification_goal_plan(osv.Model): def reward_user(self, cr, uid, user_id, badge_id, context=None): """Create a badge user and send the badge to him""" user_badge_id = self.pool.get('gamification.badge.user').create(cr, uid, {'user_id': user_id, 'badge_id': badge_id}, context=context) - return self.pool.get('gamification.badge').send_badge(cr, uid, badge_id, [user_badge_id], context=context) + return self.pool.get('gamification.badge').send_badge(cr, uid, badge_id, [user_badge_id], user_from=None, context=context) class gamification_goal_planline(osv.Model): diff --git a/addons/gamification/static/src/css/goal.css b/addons/gamification/static/src/css/goal.css index d8f4f7ca3fe..e481a800c79 100644 --- a/addons/gamification/static/src/css/goal.css +++ b/addons/gamification/static/src/css/goal.css @@ -107,12 +107,9 @@ .openerp .oe_mail_wall .oe_mail_wall_aside .oe_user_avatar { width: 32px; } +/* background progress bar */ .openerp .oe_mail_wall .oe_mail_wall_aside .oe_goal_progress { background: rgb(173, 219, 178); -/* background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QQSDDgQbtbJfgAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAAMSURBVAjXY2jY2AoAA2sBt0HZbqoAAAAASUVORK5CYII=); - background-image: url("http://lorempixel.com/20/10/"); - background-repeat: repeat-y; - background-position: 0 50%;*/ } .openerp .oe_mail_wall .oe_mail_wall_aside table progress,.oe_form_field_progressbar { width: 100%; diff --git a/addons/gamification/static/src/xml/gamification.xml b/addons/gamification/static/src/xml/gamification.xml index 29114897153..c6946d6397d 100644 --- a/addons/gamification/static/src/xml/gamification.xml +++ b/addons/gamification/static/src/xml/gamification.xml @@ -51,7 +51,7 @@ </thead> <tbody> <tr t-foreach="planline.goals" t-as="goal" t-attf-class="#{goal.id == planline.own_goal_id ? 'oe_bold' : ''}"> - <div style="background:#fff;"> + <div style="background: #fff;"> <th class="col0"><t t-esc="goal.rank" /></th> <td class="col1"><img class="oe_user_avatar" t-attf-alt="#{goal.user_name}" t-attf-data-id="#{goal.user_id}"/></td> <td class="col2" style="width:150px;"> |
