summaryrefslogtreecommitdiff
path: root/addons/gamification/models
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2016-07-20 15:33:34 +0200
committerYannick Tivisse <yti@odoo.com>2016-08-05 10:18:02 +0200
commitc736465dab5cc6b5763fbe6bd6e2377fca4d0e98 (patch)
tree9f514be7120ff052e4bfa65a61e708bbc3092ede /addons/gamification/models
parent0c649644db0a941353a1db334f17f972ff871191 (diff)
[MIG] gamification: compute_code data and evaluation
Diffstat (limited to 'addons/gamification/models')
-rw-r--r--addons/gamification/models/goal.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/addons/gamification/models/goal.py b/addons/gamification/models/goal.py
index 19d81c4cbde..74b187f153d 100644
--- a/addons/gamification/models/goal.py
+++ b/addons/gamification/models/goal.py
@@ -270,12 +270,9 @@ class Goal(models.Model):
for goal in goals:
# execute the chosen method
cxt = {
- 'self': self.pool['gamification.goal'],
'object': goal,
- 'pool': self.pool,
- 'cr': self.env.cr,
- 'context': dict(self.env.context), # copy context to prevent side-effects of eval
- 'uid': self.env.uid,
+ 'env': self.env,
+
'date': date,
'datetime': datetime,
'timedelta': timedelta,