summaryrefslogtreecommitdiff
path: root/addons/gamification/tests
diff options
context:
space:
mode:
authorMartin Trigaux <mat@openerp.com>2013-12-24 16:29:02 +0100
committerMartin Trigaux <mat@openerp.com>2013-12-24 16:29:02 +0100
commit90ebde3676b3f4c2a00132313417410ce4ba36b9 (patch)
treeffee68a758be647399c6f25258a1ad37fc21bdaa /addons/gamification/tests
parent13bfaef3a3625deb4ba1d05c50647b6126175c6f (diff)
[FIX] gamification: remove old calls to action_close
bzr revid: mat@openerp.com-20131224152902-i2ozrf41y1ou2vdm
Diffstat (limited to 'addons/gamification/tests')
-rw-r--r--addons/gamification/tests/test_challenge.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/gamification/tests/test_challenge.py b/addons/gamification/tests/test_challenge.py
index 2655a1b26fd..6b93da727ac 100644
--- a/addons/gamification/tests/test_challenge.py
+++ b/addons/gamification/tests/test_challenge.py
@@ -83,7 +83,7 @@ class test_challenge(common.TransactionCase):
# reward for two firsts as admin may have timezone
self.challenge_obj.write(cr, uid, self.challenge_base_id, {'reward_first_id': self.badge_id, 'reward_second_id': self.badge_id}, context=context)
- self.challenge_obj.action_close(cr, uid, self.challenge_base_id, context=context)
+ self.challenge_obj.write(cr, uid, self.challenge_base_id, {'state': 'done'}, context=context)
badge_ids = self.badge_user_obj.search(cr, uid, [('badge_id', '=', self.badge_id), ('user_id', '=', self.demo_user_id)])
self.assertGreater(len(badge_ids), 0, "Demo user has not received the badge") \ No newline at end of file