diff options
| author | David Beguin <dbe@odoo.com> | 2019-10-31 16:21:30 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-11-22 14:45:39 +0000 |
| commit | be3f074a910a76275ebaa576dc57f9b72f5ad4ae (patch) | |
| tree | 4eb6bf32e9cc05f0590cc2d2741dccdd373a0923 /addons/website_profile/controllers/main.py | |
| parent | 6f0d36fa67c91d0bd70cf092bd1d41c615e1e8be (diff) | |
[REF] gamification, * : rename challenge.category into challenge.challenge_category
To ease grep in the code, especially that challenge is quite heavily used.
Task ID : 1961053
PR #32594
Diffstat (limited to 'addons/website_profile/controllers/main.py')
| -rw-r--r-- | addons/website_profile/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_profile/controllers/main.py b/addons/website_profile/controllers/main.py index 858efd34f16..cfe1f5a96a4 100644 --- a/addons/website_profile/controllers/main.py +++ b/addons/website_profile/controllers/main.py @@ -168,7 +168,7 @@ class WebsiteProfile(http.Controller): """ domain = [('website_published', '=', True)] if 'badge_category' in kwargs: - domain = expression.AND([[('challenge_ids.category', '=', kwargs.get('badge_category'))], domain]) + domain = expression.AND([[('challenge_ids.challenge_category', '=', kwargs.get('badge_category'))], domain]) return domain @http.route('/profile/ranks_badges', type='http', auth="public", website=True, sitemap=True) |
