From 67aa009dfc0e2bd4d9f3e2d759142f8149501bae Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 12 Mar 2013 09:30:43 +0100 Subject: [PATCH] [IMP] adapt badge view to new structure of rules bzr revid: mat@openerp.com-20130312083043-748w2k70rho8xka2 --- addons/gamification/badge.py | 3 ++- addons/gamification/badge_view.xml | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/addons/gamification/badge.py b/addons/gamification/badge.py index 76b20ae2738..9d83687e102 100644 --- a/addons/gamification/badge.py +++ b/addons/gamification/badge.py @@ -160,10 +160,11 @@ class gamification_badge(osv.Model): help="The number of time the current user has received this badge this month."), } - _default = { + _defaults = { 'stat_count': 0, 'stat_count_distinct': 0, 'stat_this_month': 0, + 'rule_auth': 'everyone', 'rule_automatic': 'manual', } diff --git a/addons/gamification/badge_view.xml b/addons/gamification/badge_view.xml index c160c264a0b..d45df776d86 100644 --- a/addons/gamification/badge_view.xml +++ b/addons/gamification/badge_view.xml @@ -74,14 +74,18 @@ - - + + - + + + + +