diff options
| author | Martin Trigaux <mat@odoo.com> | 2015-08-04 14:15:20 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2015-10-07 16:29:00 +0200 |
| commit | eb18cad599a09da0fe20634d29fe5b1427b08102 (patch) | |
| tree | db079d42e16a1f87420aa5cd73fa368ce6642dd5 /addons/gamification/tests | |
| parent | 9b83dd5894fda3b8fb6a81bd20dd8ea8d6a5b1a4 (diff) | |
[FIX] gamification: avoid name clash with update
update is a method from the ORM with a different signature.
Avoid name clash. Issue 646610
Diffstat (limited to 'addons/gamification/tests')
| -rw-r--r-- | addons/gamification/tests/test_challenge.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/gamification/tests/test_challenge.py b/addons/gamification/tests/test_challenge.py index 2bd268f4226..2b1060b0031 100644 --- a/addons/gamification/tests/test_challenge.py +++ b/addons/gamification/tests/test_challenge.py @@ -59,8 +59,8 @@ class test_challenge(common.TransactionCase): # demo user will set a timezone self.user_obj.write(cr, uid, self.demo_user_id, {'tz': "Europe/Brussels"}, context=context) goal_ids = self.goal_obj.search(cr, uid, [('user_id', '=', self.demo_user_id), ('definition_id', '=', self.definition_timezone_id)], context=context) - - self.goal_obj.update(cr, uid, goal_ids, context=context) + + self.goal_obj.update_goal(cr, uid, goal_ids, context=context) reached_goal_ids = self.goal_obj.search(cr, uid, [('id', 'in', goal_ids), ('state', '=', 'reached')], context=context) self.assertEqual(set(goal_ids), set(reached_goal_ids), "Not every goal was reached after changing timezone") |
