From f77aefc07ace66587bc13f7d2fa55755968437c5 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 20 Dec 2013 15:45:21 +0100 Subject: [PATCH] [REF] gamification: cleaning methods and reports bzr revid: mat@openerp.com-20131220144521-wyu1gx8bcitu6nk4 --- addons/gamification/data/goal_base.xml | 64 +++--- addons/gamification/models/challenge.py | 211 +++++++++++------- addons/gamification/models/goal.py | 1 + addons/gamification/models/res_users.py | 99 ++------ .../static/src/css/gamification.css | 6 +- .../static/src/js/gamification.js | 55 +++-- .../static/src/xml/gamification.xml | 78 +++---- .../templates/badge_received.mako | 17 -- addons/gamification/templates/base.mako | 13 -- .../templates/group_progress.mako | 38 ---- .../templates/personal_progress.mako | 31 --- addons/gamification/templates/reminder.mako | 17 -- addons/gamification/views/challenge.xml | 7 +- addons/gamification/views/goal.xml | 2 +- 14 files changed, 261 insertions(+), 378 deletions(-) delete mode 100644 addons/gamification/templates/badge_received.mako delete mode 100644 addons/gamification/templates/base.mako delete mode 100644 addons/gamification/templates/group_progress.mako delete mode 100644 addons/gamification/templates/personal_progress.mako delete mode 100644 addons/gamification/templates/reminder.mako diff --git a/addons/gamification/data/goal_base.xml b/addons/gamification/data/goal_base.xml index 2b21fbc947f..48dd770bbcc 100644 --- a/addons/gamification/data/goal_base.xml +++ b/addons/gamification/data/goal_base.xml @@ -7,7 +7,7 @@ Set your Timezone Configure your profile and specify your timezone count - checkbox + boolean [('id','=',user.id),('partner_id.tz', '!=', False)] @@ -18,7 +18,7 @@ Set your Company Data Write some information about your company (specify at least a name) count - checkbox + boolean [('user_ids', 'in', [user.id]), ('name', '=', 'Your Company')] lower @@ -29,7 +29,7 @@