Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
b24252d5
Commit
b24252d5
authored
10 years ago
by
Martin Trigaux
Browse files
Options
Downloads
Patches
Plain Diff
[IMP] gamification: force domain to be in unicode
bzr revid: mat@openerp.com-20140418163837-32nldgj5u04q9kyu
parent
4725d6f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/gamification/models/challenge.py
+2
-3
2 additions, 3 deletions
addons/gamification/models/challenge.py
with
2 additions
and
3 deletions
addons/gamification/models/challenge.py
+
2
−
3
View file @
b24252d5
...
...
@@ -21,14 +21,13 @@
from
openerp
import
SUPERUSER_ID
from
openerp.osv
import
fields
,
osv
from
openerp.tools
import
DEFAULT_SERVER_DATE_FORMAT
as
DF
from
openerp.tools
import
ustr
,
DEFAULT_SERVER_DATE_FORMAT
as
DF
from
openerp.tools.safe_eval
import
safe_eval
as
eval
from
openerp.tools.translate
import
_
from
datetime
import
date
,
datetime
,
timedelta
import
calendar
import
logging
import
functools
_logger
=
logging
.
getLogger
(
__name__
)
# display top 3 in ranking, could be db variable
...
...
@@ -337,7 +336,7 @@ class gamification_challenge(osv.Model):
return
True
def
_get_challenger_users
(
self
,
cr
,
uid
,
domain
,
context
=
None
):
user_domain
=
eval
(
domain
)
user_domain
=
eval
(
ustr
(
domain
)
)
return
self
.
pool
[
'
res.users
'
].
search
(
cr
,
uid
,
user_domain
,
context
=
context
)
def
_recompute_challenge_users
(
self
,
cr
,
uid
,
challenge_ids
,
context
=
None
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment