diff options
| author | qdp-odoo <qdp@odoo.com> | 2016-12-30 17:20:36 +0100 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2016-12-30 17:21:25 +0100 |
| commit | 4f29b77e3d1677ffc88336cc99fb7f09d49d7dd1 (patch) | |
| tree | 0642a57228cc2e0e3ab04d5afbfb5adf882b689c /addons/gamification/models | |
| parent | 33a413eb2944db4a35d035f42161159ae53dd830 (diff) | |
[MERGE] foward port of 10.0 up to revision 84a650e33aadb29661121410813e3de37a5ad3e9
Diffstat (limited to 'addons/gamification/models')
| -rw-r--r-- | addons/gamification/models/challenge.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/addons/gamification/models/challenge.py b/addons/gamification/models/challenge.py index 028e58e2173..d3b0b0d5983 100644 --- a/addons/gamification/models/challenge.py +++ b/addons/gamification/models/challenge.py @@ -505,11 +505,6 @@ class Challenge(models.Model): goals = Goals.search(domain, order="completeness desc, current desc") for ranking, goal in enumerate(goals): - # bail immediately if any goal of the challenge hasn't been - # reached - if goal.state != 'reached': - return [] - if user and goal.user_id == user: line_data['own_goal_id'] = goal.id elif restrict_top and ranking > restrict_top: |
