diff --git a/addons/gamification/models/goal.py b/addons/gamification/models/goal.py index 0e5d1be83a2de495465e033ab7b6779749b2bba9..51e2bc7aea7ae2b5ab1e4045028cb3b26e6043d8 100644 --- a/addons/gamification/models/goal.py +++ b/addons/gamification/models/goal.py @@ -410,7 +410,7 @@ class Goal(models.Model): If the current value is changed and the report frequency is set to On change, a report is generated """ - vals['last_update'] = fields.Date.today() + vals['last_update'] = fields.Date.context_today(self) result = super(Goal, self).write(vals) for goal in self: if goal.state != "draft" and ('definition_id' in vals or 'user_id' in vals):