Skip to content
Snippets Groups Projects
Commit 56f678c8 authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] gamification: on delete goal user, cascade

Otherwise, this is no more possible to delete users with gamification goals
parent fc9fc3e0
No related branches found
No related tags found
No related merge requests found
......@@ -187,7 +187,7 @@ class gamification_goal(osv.Model):
_columns = {
'definition_id': fields.many2one('gamification.goal.definition', string='Goal Definition', required=True, ondelete="cascade"),
'user_id': fields.many2one('res.users', string='User', required=True, auto_join=True),
'user_id': fields.many2one('res.users', string='User', required=True, auto_join=True, ondelete="cascade"),
'line_id': fields.many2one('gamification.challenge.line', string='Goal Line', ondelete="cascade"),
'challenge_id': fields.related('line_id', 'challenge_id',
string="Challenge",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment